agentleFS
kendrickkendrick/skills/AGENTS.md

skills

AGENTS.md1 starsChanged 2 months agoMITView on GitHub

A collection of agent skills, each installed on its own with npx skills add kendrick/skills --skill <name>. The README.md says what each one does; this file says how the repo works and what a change to it has to satisfy. One fact drives most of the rules below: a skill lands alone. A user installs jd-file and gets that directory and nothing else, so a skill may never import from a sibling. Shared code is vendored, and shared behavior is…

The file

We split this AGENTS.md into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run every suite a change could touch, not only the one named for the skill.

    line 54
  2. Very specific:

    A README.md or the root README.md: Every claim is true of the SKILL.md as it actually stands.

    line 133
  3. Very specific:

    A ledger: Every contested choice in the diff has a row.

    line 135

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

A collection of agent skills, each installed on its own with npx skills add kendrick/skills --skill <name>. The README.md says what each one does; this file says how the repo works and what a change to it has to satisfy.

One fact drives most of the rules below: a skill lands alone. A user installs jd-file and gets that directory and nothing else, so a skill may never import from a sibling. Shared code is vendored, and shared behavior is described in prose that names the other skill without depending on it.

What a skill ships

Four artifacts. The first two are universal; the last two are the bar a new skill meets, and several early skills predate them:

  • <skill>/SKILL.md — the agent's document. Frontmatter, then the steps or reference the agent runs.
  • <skill>/README.md — the human's document. Why the skill exists, the mechanism, install.
  • _maintenance/<skill>/RATIONALE.md — the decision ledger. Every contested choice gets a row saying why, tiered [E] measured, [P] reasoned from prior art, [C] convention. Sections: Where This Came From, Decision Ledger, Deliberately Not Built, Known Limitations.
  • tests/<skill>-smoke.sh — the pin. Runs standalone from the repo root.

SKILL.md and README.md are the only files at a skill's top level, joined by an AGENTS.md where the skill carries its own review rules, and everything else goes in references/, scripts/, or assets/. databricks-api is the exception: it is a router, and each domain it routes to is a directory of its own.

_maintenance/<skill>/EVALS.md joins them where a skill needs live subagents to prove it works, since a smoke test cannot. PROVENANCE.md joins them where a skill is derived from an upstream project, as handoff and technical-writing are.

Four skills predate the bar. databricks-api and eli5 carry no RATIONALE.md, and databricks-api and eli5 have no smoke test. The repetition there is load-bearing: tests/repo-docs-smoke.sh parses both exception sets out of that sentence, and a pronoun or a summary phrase in place of either list empties a set and stops the suite. inbox-to-memory carries a partial ledger covering scripts/collapse-vtt.sh, scripts/bench-fixture.sh, scripts/migrate-scope.sh, the link check, the CR strip in the fence tests, the files pass one reads, and the dismissed-amend and landed-working-state subtractions from unpromoted_candidates in scripts/lint-scope.sh, scripts/split-raw.sh, scripts/find-candidates.sh, phase 2.5's handling of a restated proposed record, where the confirmation stamping call sits, scripts/stale-records.sh, the size ceiling on SKILL.md, the --to-ltm migration with the memory-bank.yaml it writes, the Exception template's constrained_by rule link, the record key order shared with long-term-memory-kit, the Decision template's body, the stakeholder roster, the note type baseline, scripts/dispose-source.sh, scripts/new-record.sh, scripts/normalize-entities.sh, scripts/crystallize-line.sh, and scripts/detect-scope.sh. technical-writing carries one covering references/review-correspondence.md and the repairs its arrival forced, the change-outline guidance in references/pr-descriptions.md, scripts/lint-message.py, and scripts/check-refs.py. Each arrived when a change reached that part, and the rest of both skills is unledgered. Hold new work to the full bar, and leave the rest alone until someone is changing it anyway. A partial ledger grows one section at a time, in whichever part of a skill a change touches.

Invocation

disable-model-invocation: true makes a skill user-invoked, which strips its description from the agent's reach and costs zero context. Choose by the asymmetry: when a misfire is expensive and a miss costs the user one word, take user-invoked. handoff, eli5, jira-refine, and work-wave are user-invoked for that reason, and each says so in its own body. Everything else carries a trigger-bearing description.

One condition outranks the asymmetry: a skill another skill has to reach is model-invocable or it is unreachable, because a stripped description is stripped from siblings too, not only from the agent. divvy-up, work-issue, and adversarial-review are model-invocable for that reason—work-issue reaches divvy-up at its Step 0 and adversarial-review at its Step 4, and a wave reaches work-issue once per lane. Model-invocation only adds agent discovery and never takes the human's away, so the cost is context load rather than lost control, and the guard against a misfire moves to the skill's own confirmation step.

A description that summarizes the workflow becomes a shortcut the model takes instead of reading the body. Write triggers, and let the steps live in the file.

Vendoring

Shared code is copied byte-identically with a provenance comment naming the source, the date, and the rule that upstream is authoritative: fix the bug there, then re-copy. Give each contiguous range of the source its own header and # end vendored close, because tests/repo-docs-smoke.sh fails any copy whose text between header and close is not verbatim in the named source. scaffold_digest.py lives in three skills this way, and paths_overlap runs in adversarial-review, divvy-up, work-issue, and work-wave.

Copy the docstrings with the code. They record the incidents that set each rule, and a reader who trims them re-introduces the bug they describe.

Scripts

Standard library only, Python 3, so a skill stays copy-in portable.

A script exists where a job wants a diff tool rather than a fresh act of judgment every run. Where judgment is the job, leave it in the prose.

A script that gates a run, rather than producing an artifact, follows the validator convention check-territories.py set and check-waves.py, check-plan.py, and check-inflight.py follow: exit 0 pass, 1 semantic failure with one line per problem on stderr, 3 usage or unreadable input. The Johnny.Decimal scripts predate it and use their own codes.

Smoke tests

Two kinds of assertion, and the second is the one people forget. require_text pins a load-bearing string. refute_text pins a mechanism that was deliberately cut, because every cut in this repo is a reasonable-sounding idea and a well-meaning edit is exactly how it comes back. Each refute should correspond to a row in that skill's Deliberately Not Built table.

There is no CI. Tests run by hand from the repo root:

bash tests/divvy-up-smoke.sh

Run every suite a change could touch, not only the one named for the skill. A vendored-predicate edit reaches two suites.

Prose

Route by artifact, and invoke the skill rather than applying it from memory:

  • SKILL.md, AGENTS.md, anything an agent consumes → the writing-for-agents skill. It governs alone; a prose-audit pass on top would sand off the precision it asks for.
  • README.md, commit messages, PR descriptions, review correspondence, code comments → the technical-writing skill, which dispatches to a per-artifact profile and ends in its own audit.

Comment the WHY. A comment that restates well-named code costs a reader attention and buys nothing; a comment naming the constraint that forced this shape earns its line.

Commits and branches

Conventional Commits, scope is the skill name: feat(divvy-up):, fix(jd-file):, docs(inbox-to-memory):. Lowercase after the colon, no trailing period, imperative mood. Bodies and PR descriptions are never hard-wrapped, and carry no attribution trailer or generated-by footer.

Branch before committing when on main. Push when the user asks.


Code Review Rules

<!-- work-issue review rules v1 begin -->

These rules come from work-issue, which builds this repo's agent-authored pull requests and answers their review threads. A finding that applies one cites it by its bold label.

Declared limits. A limitation the PR body's "Left out" section or the skill's Known Limitations already names is a decision the author recorded, so it is settled for this PR. Raise it again only when the change loses data or writes outside the files it was handed, and quote the declaration the finding overrides. Safe path: cite the declaration and review the rest of the diff.

Heuristic scripts. For a script whose own docs call it a heuristic, a finding built on a constructed edge case is P1. Input that a real caller in this repo produces stays P0, whatever the finding's wording. Safe path: name the caller that produces the input, or band the finding P1.

Writes outside a task's files. A change that lets a script write, delete, or overwrite a path the caller didn't hand it, or lose data, is P0. In the finding, name the exact path that gets overwritten or the data that gets lost, and cite this rule. Safe path: refuse the write, or restore without following links.

Repeat findings. Each finding states whether its line changed since the last commit you reviewed on this PR, as changed since last review, unchanged since last review, or last review unknown when you cannot tell which commit that was. The author reads an unchanged line as a new edge case in old code and a changed one as a repair that broke. Safe path: tag every finding.

Evidence. Each finding names the file and line, quotes the text it is about, and states what breaks. Where running something can check the finding, run it and paste the real output. Safe path: when the diff is clean, say so plainly, since zero findings is a complete review.

<!-- work-issue review rules v1 end -->

For an agent reviewing a pull request against this repo. You are reviewing the diff, not the repo, so a pre-existing problem the diff did not touch belongs in a comment at most.

Scope

Review what the diff changes, plus anything the diff makes wrong. That second half is where the real findings are here, because this repo's documents cross-reference each other: a step in a SKILL.md naming a script flag, a README.md describing a mechanism, a smoke test pinning a string, a ledger row justifying a choice. A change to one leaves the other three describing something that no longer exists, and every one of those is a live defect rather than a style note.

The same holds inside one document. A sentence added to a bullet can be refuted by that bullet's own list four lines above, and a paragraph's opening instruction can be undone by its closing one. The diff shows the changed line; the contradiction lives in what that line now sits beside, so read the whole bullet or paragraph it lands in and the section around it.

Sweep a confirmed claim across every place it appears, the file it surfaced in included. A sweep that stops at the first file is how one error ships twice: found in the README.md, then cleared in the SKILL.md on the strength of a nearby line that happened to be right.

Out of scope: the choice of what to build, taste disagreements with a decision that has a ledger row, vendored code that matches its upstream, and prose style that follows the house rules above.

Severity

P0 — blocks merge. The change makes an agent do the wrong thing at runtime. A script that fails on valid input a real caller in this repo produces, or passes on invalid input one produces. A constructed edge case in a script its docs call a heuristic is left to the block's Heuristic scripts. rule. A step that contradicts another document in the same skill, or the document it sits in. A smoke test that passes while the behavior it names is gone. A SKILL.md claiming something its script does not implement. A vendored copy that has drifted from its upstream. Anything that would make a skill destructive or lossy on a user's files.

P1 — fix before merge, or record why not. The repo's own discipline is broken, though nothing misbehaves yet. A contested choice with no ledger row. A cut feature with no refute pinning it. A new skill missing one of its four artifacts. A load-bearing string no test pins. A script reaching outside the standard library. Prose that skipped the skill that owns it.

P2 — non-blocking. Consistency and craft. Wording that drifts from sibling skills, a heading shape that doesn't match, a comment explaining what rather than why, a test assertion that would pass on unrelated prose.

Codex surfaces P0 and P1 on a pull request and holds P2 back, so the third band is for a reviewer running somewhere that shows everything.

Rank findings most severe first. No quota: zero findings is a real answer, and a manufactured P2 spends the author's attention for nothing.

Evidence

A claim about a comment, a docstring, or a commit message is a claim about the code, so verify it against the code.

A suite you did not run is a suite nobody ran. At minimum:

bash tests/<skill>-smoke.sh

A finding you cannot reproduce is reported as unverified, with what you tried, rather than dropped or promoted.

What to check, by artifact

A new or changed SKILL.md. Frontmatter matches the invocation the body describes. Steps end on completion criteria a reader could fail the agent against. The description carries triggers rather than a summary of the steps. Every file, flag, and command it names exists at this commit.

A script. Feed it a malformed input and confirm it fails rather than passing quietly.

A smoke test. Each refute corresponds to a real cut in Deliberately Not Built. Each assertion string is distinctive enough that it cannot pass on unrelated prose. The suite exits non-zero when the thing it pins is removed, which you can check by removing it in a scratch copy.

A README.md or the root README.md. Every claim is true of the SKILL.md as it actually stands. Counts and lists are correct against the directory tree.

A ledger. Every contested choice in the diff has a row. A row's tier matches its evidence: [E] means something was measured, so a row claiming [E] for reasoning is itself a finding.

What not to flag

  • Vendored code that matches its upstream. Divergence is the bug; duplication is the design.
  • Em dashes chained flush against the text, title-case headings, and lists that keep their bullets. These are house style.
  • A decision you would have made differently that carries a ledger row explaining it. Argue with the row if you must, as a P2.
  • Missing tests or ledgers on the skills named above as predating the bar, unless the diff is already changing that skill.
  • The absence of CI.

Output

Group findings by severity, most severe first. For each: the file and line, one sentence saying what is wrong, the quoted evidence, and the command that shows it where one exists. Close with what you ran and what you could not check.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.