Skip to content
GitHub

Skills and human decisions

Open

Look up what each skill in Shepherd's pack does, and how Shepherd decides whether to act, act and tell you, or stop and ask.

Shepherd installs as a pack of skills you run from your coding agent. The shepherd skill runs the loop and loads the others it needs. The Command reference lists the skills you can run on their own.

Find a skill in the first column to see what it does:

SkillWhat it does
shepherdRuns the loop from your coding agent: review rounds until dry, then CI, then the CI review’s verdict. Owns state, model choice, and when to ask you.
swarmRuns the repo’s own checks, then the router, correctness and every matching team lens in parallel, with a second wave for risky hunks the router hands on. Verifies serious findings, and posts inline comments plus one summary comment.
triageEnds every review thread fixed, resolved, or deferred. Never replies, never touches a thread a human is in.
ci-repairWorks on the pull request’s own head on a clean checkout. Diagnoses failing checks to the leaf job. Under fixes.mode: push it updates a stale branch, merges base conflicts it can settle, makes one verified fix and reruns flaky jobs once; under local and suggest it changes nothing on GitHub. A risky fix waits for a second model.
incidentAfter merge: turns a red default-branch run or a production error into an incident issue, a reproducing test, the pull request that caused it (by bisecting with that test), and a fix pull request the loop then takes over. On a public repository, a security failure stops before any issue or test.
git-archaeologyTraces how code reached its current state: when a line, function or file changed or left, and what it looked like before.
pairThe act / act-and-say / stop-and-ask ladder that decides when to ask you.
review-correctnessBugs: data, concurrency, performance, API contracts, frontend state, tests.
review-securityExploitable source-to-sink paths, each with its data flow and fix.
review-simplicityThe four rules of simple design; what to delete and what replaces it.
review-maintainabilityCoupling, rollout safety, observability, naming, and the repo’s own written rules.
review-slopLow-signal code and prose: thrown-away types, defensive noise, tests that cannot fail, padded pull request text.
review-specThe change against its issue or spec: requirements missing, built wrong, or not asked for.
branch-reviewA two-axis review (Standards and Spec) of work since a commit, branch or tag. It is Matt Pocock’s code-review with this repository’s GitHub issues as its tracker, so it needs no setup.
code-review, diagnosing-bugs, pr, retro, writing-for-agentsMatt Pocock’s skills, copied unchanged. review-spec runs code-review’s Spec axis, review-simplicity adds its smell baseline, ci-repair diagnoses with diagnosing-bugs, shepherd writes pull request bodies with pr when the repo has no pull request skill, and garden sorts causes with retro and writes skill text by writing-for-agents.
lens-importConverts any skill, rule set or style guide into a lens with one id per rule, severity tags, Fix guidance and the source’s licence, then registers and validates it.
gardenThe outer loop: scores shepherd’s recent runs from GitHub and opens pull requests with skill edits and lint rules for findings that keep recurring.

The pair skill puts every action on a ladder. Shepherd acts, acts and tells you, or stops and asks:

flowchart TD
    X[Something to do] --> P{pair ladder}
    P -- clearly better, one sensible way --> A[Do it]
    P -- more than one reasonable answer --> AS[Do it, then say so]
    P -- breaks simple design, unclear, or changes relied-on behaviour --> SA[Stop and ask]