Index of every page on this site: llms.txt
All skills
tkhq avatar

/conforming-to-agents-md

@6fd5c16
by Turnkeytkhq/tk72 stars
3
Run it yourself

Use when a tk branch is about to be marked ready for review, or when asked to check a PR against AGENTS.md, remove dead code, de-slop, or clean up a branch before merge. Covers Rust code, docs, skills, and help text. Also use after finishing any feature work in this repo, before opening or un-drafting the PR.

  • 2 files
  • 10.3 KB
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/tkhq/tk/conforming-to-agents-md

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

slop-rules.md

≈778 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Slop rules

Checklist for the slop reviewer. Each heading is a rule name; cite it in the rule field of a finding. A finding must match one rule exactly. If it does not, it is not slop.

Comment restates code

A comment that says what the next line does in English. // increment the counter above count += 1. Delete it. A comment earns its place by saying why.

Change narration

// Added to support X, // Previously ..., // Now we ..., // Refactored to .... This belongs in the commit message. Delete it.

Doc comment on untouched item

A /// or //! added to or expanded on an item the branch did not create. Also a doc comment on a private item that only restates its signature. Delete it.

Section banner

// ---- Helpers ----, // Step 3:, // Setup, // Act, // Assert, or any comment that labels a block instead of explaining it. Delete it.

Hedging comment

Note:, Important:, a TODO with no owner or issue link, or "should", "probably", "for now", "hopefully", "in theory" inside a comment. Either resolve the uncertainty in code or delete the comment.

Impossible-state handling

unwrap_or_default on a value that is always present, if let Some on an infallible path, a match arm that errors on a variant callers cannot produce, a check the type system already guarantees. Remove the handling. If the state is reachable, that is a correctness bug, not slop; report it under the AGENTS.md rule it violates.

Name-only helper

A function with one caller whose body is shorter than its signature plus call site, and whose name adds nothing the call site does not already say. Inline it.

Test name says nothing

test_works, test_basic, test_happy_path, it_works, or a name that repeats the function under test with no behavior stated. Rename to the behavior asserted.

Weak assertion

assert!(value.is_some()) or assert!(value.is_none()) where the inner value is available and could be compared. Replace with an equality on the value.

Duplicated test setup

The same three or more lines of arrangement in three or more tests. Move to a shared fixture or the existing Run helpers.

Error message slop

A message that repeats the error type's name, ends with "please try again", contains an exclamation mark, or apologizes. Rewrite to state what failed and what the user can change.

Leftover scaffolding

Commented-out code. Delete it.

Prose filler

A sentence in a doc, skill, or help text that announces, summarizes, or transitions instead of stating a fact or directing an action: "This section explains", "In summary", "Note that", "As mentioned above".

Prose hedging

"May", "might", "should generally", or "in most cases" in a doc or skill where the code gives one behavior. State the behavior.

Negative parallelism

"Not just X, but Y", "It's not X. It's Y.", or "not merely X" in a doc or skill. State Y directly.

Stale reference

A command, flag, path, record field, error code, or skill name in a touched doc or skill that the tree no longer has, or that a later change on the branch renamed.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 6fd5c16. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated last month

README badge

README badge for tkhq/tk/conforming-to-agents-md