Repository navigation
Quickstart
You need Claude Code, Python 3.11 or newer as python3, and a git repository. CI tests Python 3.11, 3.12 and 3.13. With an older python3 the hooks stay silent and do nothing, and the CLI says which version it needs. herd pr also needs gh.
/plugin marketplace add Beovulfo/herd-sdlc
/plugin install herd@herd-sdlc
The same from a terminal:
claude plugin marketplace add Beovulfo/herd-sdlc
claude plugin install herd@herd-sdlcOptional, and recommended: Superpowers. Herd works without it and uses it for planning, test-first work and subagents when present:
claude plugin install superpowers@claude-plugins-officialSince 0.14.0 the design and the build run on different models: by default Sonnet designs (criteria, a "be specific" second look, the six attacks) and Haiku builds. Herd tells your session which step to run itself and which to hand to its herd-designer or herd-builder subagent (herd status prints it). Change the models with [models] in herd.toml (Settings).
One message, in a new session inside your project:
/herd:run <goal>. Criteria: <what must be true when it is done>. <options>
| Part | Required | What to write | What Herd does with it |
|---|---|---|---|
| Goal | yes | What to change, in one or two sentences. Name the file, command, function or endpoint if you know it. | Becomes goal in .herd/tasks/<slug>/task.toml. |
| Criteria | no, but recommended | Outcomes someone could check from outside: "Given X, when Y, then Z", or "Output must be ...". | Each one is quoted word for word as a human criterion and never reworded, narrowed or dropped. Herd writes a runnable check for it. |
| What must not change | no | An API, an output format, a schema, a file. | Becomes a criterion with a check, so a regression fails the task. |
| Constraints | no | "standard library only", "no new dependencies", "ASCII only". | Recorded with your request; Herd keeps the build within it. |
| Options | no | "quick fix", "in its own worktree", "open a PR" or "open a draft PR", "confirm the criteria first". | Switch the route and the opt-in steps (see below). |
You do not write task.toml, tests or checks yourself: Herd writes them, fills in 3 to 6 criteria in all (its own are marked agent-proposed), and shows you the table. It asks no clarifying questions; it states its assumptions instead (How Herd fills the gaps). Only a high-risk change (for example under migrations/**, auth/** or billing/**) stops once for your approval before building.
- Every, any, all, each: Herd tests many generated cases, random ones included, not one example.
- Big, large, thousands: Herd adds a scale check with a time limit.
-
One concrete example ("so
slugify("Hello, World!")returns"hello-world"") gives Herd an exact expected answer to test against.
| Weak | Strong |
|---|---|
/herd:run Improve the export. |
/herd:run Add a --json flag to the export command. Criteria: the output must be valid JSON with every row. The CSV output must not change. |
/herd:run Fix the login bug. |
/herd:run Fix: login with an email in upper case fails with "user not found". Criteria: Given a user "ana@example.com", when that user logs in as "Ana@Example.com", then login succeeds. |
/herd:run Make it faster. |
/herd:run Make search faster. Criteria: searching 100000 products returns in under 200 ms. Results must not change. |
Copy one, then change the names to match your project.
A new CLI option
/herd:run Add a --json flag to the export command. Criteria: the output must be valid JSON with every row. With no rows it prints [] and exits 0. The default CSV output must not change.
A new function, with an exact example
/herd:run Add a slugify(text) function in textutil.py with unittest tests. Criteria: Given 'Hello, World!', when slugify runs, then it returns 'hello-world'. ASCII text only. Standard library only.
A bug fix from a reproduction
/herd:run Fix: parse_date("2026-02-30") returns March 2 instead of failing. Criteria: an impossible date raises ValueError with the date in the message. Every valid date from 2000 to 2030 still parses as before.
An HTTP endpoint
/herd:run Add GET /health to the API. Criteria: it returns status 200 and the JSON {"status": "ok"}. It needs no authentication. Every existing route keeps its current responses.
A data pipeline step
/herd:run Drop duplicate orders in clean_orders.py, keeping the latest by updated_at. Criteria: no two output rows share an order_id. Every order_id in the input is in the output. The output columns must not change.
A refactor that must keep behaviour
/herd:run Split report.py into report/load.py and report/render.py. Criteria: every existing test passes unchanged. The public import `from report import build_report` still works.
A trivial change: quick route
/herd:run quick fix: rename the --verbos flag to --verbose in cli.py.
One file, no new behaviour, one existing check that can fail first: Herd skips triage, the criteria, the gate and the six attacks, but still runs red first, verify and herd done.
Isolated, ending in a pull request
/herd:run In its own worktree, add a --json flag to the export command. Criteria: the output must be valid JSON with every row. Open a draft PR when done.
The task then runs on a new branch in its own worktree, cut from the branch you are on, and ends with a pull request whose description is the evidence (herd pr --draft, and --milestone NAME for a milestone). Every later herd verify refreshes that description. Switch both on for every task in herd.toml (Settings).
You want to see the criteria before any code
/herd:run Add a created_by column to the orders table with a migration. Criteria: existing rows get NULL. The migration can be rolled back. Confirm the criteria with me first.
Herd creates the task, writes criteria with checks and shows them to you, runs them once to see them fail, logs the six attacks before the build, builds on a herd/<slug> branch, tries to break the result, verifies, and ends with a six-line report. It links the full evidence: command output, commit SHA and timestamps, in .herd/tasks/<slug>/evidence.md. The Stop gate keeps the session from finishing while a check fails.
- Review the evidence, not the process: read the criteria table and the check output first. A real run: Example.
- Drop a task: say so, and Herd runs
herd cancelwith your reason. - Continue a finished task in a later session: ask for it; Herd runs
herd reopen <slug>instead of starting a new one. - Not sure what can prove a change in your project (a web app, an API, a pipeline)? Run
/herd:evidencefirst: it asks up to 5 questions and drafts criteria with you.