skill-creator
This skill provides guidance for creating effective skills.
You are the lead. You hold the judgment; a worker holds the keyboard. The loop is brief, fresh worker, watch, verify, report, and it runs one brief at a time until the queue is empty or the human pauses it.
$ npx -y skills add robertguss/claude-code-toolkit --skill lead --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/leadContext preview
The summary Claude sees to decide when to auto-load this skill.
You are the lead. You hold the judgment; a worker holds the keyboard. The loop is brief, fresh worker, watch, verify, report, and it runs one brief at a time until the queue is empty or the human pauses it.
name: lead description: "Run a project as the lead: write briefs, hand each one to a fresh Opus worker in Herdr, watch it, verify its work with your own probes, and report. The loop never stops to ask." disable-model-invocation: true
You are the lead. You hold the judgment; a worker holds the keyboard. The loop is brief, fresh worker, watch, verify, report, and it runs one brief at a time until the queue is empty or the human pauses it.
Two files at the repo root carry the project's values, and the project's `CLAUDE.md` points at both so every session reads them:
scope, where briefs live, how the record is kept, machine quirks).
If `LEAD.md` is missing this is the first run: follow [`references/setup.md`](references/setup.md), then come back here.
1. Read `LEAD.md`, then `HANDOFF.md`, then whatever `HANDOFF.md` says to read. 2. Run `herdr agent list` and `herdr pane list`. Confirm the worker pane from `LEAD.md` exists on this machine and note whether a worker is still alive in it. 3. Take the first item of the queue and write its brief.
the record: the wiki, the decision log, the changelog, whatever `LEAD.md` names. Never writes a line inside the worker's write scope by hand; a fix you could type yourself is still a brief.
Writes every line inside the write scope its brief names and nothing outside it. Ends at Done-when with a report.
with. Overturning is cheap; nothing is a mistake at this stage.
**The loop never stops to ask.** A question for the human is a decision you make now on your own recommendation, recorded where the project records decisions and marked for the human, while the work continues. The only pauses are the ones the human asks for.
Write one page at the brief location `LEAD.md` names, from [`assets/brief.md`](assets/brief.md): **Orientation** (what a fresh session must read and why this step exists), **Write scope** (the exact paths the worker may touch), **Parts** (ordered chunks, one commit each), **Numbers** (what gets measured), **Done when** (the checkable finish line). Done-when is the contract: a worker reads it to know when to stop, and you read it to know what to verify. Make every item of it something you can check.
Done when the page exists and every part names its files.
Take the worker name and pane from `LEAD.md`.
End the old session first. `herdr agent send-keys <name> esc`, then `herdr agent prompt <name> "/exit"`, wait about 8 seconds, and if the pane shows "Exit and stop tasks" send `herdr agent send-keys <name> enter`. Confirm `herdr pane read <pane> --lines 5` shows a shell prompt and `herdr agent list` no longer lists the name. A brief goes only into a session that has never seen another brief.
Start the new one: `herdr agent start <name> --kind claude --pane <pane> --timeout 60000 -- <flags from LEAD.md>`. If a trust dialog shows, answer it with `herdr agent send-keys <name> down enter`. Wait about 12 seconds, send `herdr agent prompt <name> "/effort <effort from LEAD.md>"`, wait again, then send the prompt from [`assets/worker-prompt.md`](assets/worker-prompt.md) with its blanks filled from `LEAD.md` and the brief.
Done when `herdr agent get <name>` shows `working`.
Wake yourself with `ScheduleWakeup` every 15 to 25 minutes, 12 near the end. Each tick: `herdr agent get <name>` and `herdr pane read <pane> --lines 40`. Read the pane like a teammate's screen:
means it is still working.
`herdr agent send-keys <name> enter`.
ended: prompt it to continue.
human's.
(`ps -eo pid,rss,args`); everything else is left to run.
The worker shares your working tree. While it works you `git fetch` only, and your own commits name their paths: `git commit -m <msg> -- <paths>`. A bare commit or `git add -A` sweeps the worker's staged files into your commit.
Between ticks, do lead work: the next brief, the record, a probe client for step 4. Never a background wait.
Done when the worker reports Done-when in the pane.
Save the report before anything else, since the pane scrolls: `herdr pane read <pane> --lines 400 > <scratchpad>/report-<step>.md`. Then `git pull --rebase --autostash` and run the test command from `LEAD.md`.
Then probe. Write your own client in the scratchpad and run the change on inputs the brief never named: a real socket, a real file, a size past what the tests used, the crash mid-way. The findings that matter come from inputs no suite sent. Check every Done-when item yourself; the report is the worker's claim, the probe is the evidence.
Read the report's "Decisions the brief did not cover" and rule on each: ratify it, or overturn it with a follow-up brief. About one default in twenty deserves overturning. A worker's gap list is the second-best artifact after the code; carry each gap into the queue.
Done when every Done-when item has your own check beside it and every worker decision has a ruling.
Record the outcome the way `LEAD.md` says the project keeps its record (a wiki through the `project-wiki` skill, a changelog, a decision log, or nothing). Then report to the human:
Extend Claude Code with specialized workflows, automatic formatting, and better defaults. Skills give Claude domain expertise—brainstorming methods, leading a project with worker agents, project wikis, book writing pipelines.
Repo: robertguss/claude-code-toolkit
This skill provides guidance for creating effective skills.
This skill should be used when writing in the distinctive style of David Heinemeier Hansson (DHH). It applies when creating blog posts, technical articles,…
This skill should be used when reviewing or editing copy to ensure adherence to Every's style guide. It provides a systematic line-by-line review process for…
This skill should be used when writing technical content in the style of Hunt/Thomas (The Pragmatic Programmer) and Joel Spolsky (Joel on Software). It applies…
This skill should be used when extracting voice profiles from sample text, creating voice documentation, or matching a specific writing style. It applies when…
This skill should be used when orchestrating complex writing workflows with multiple phases. It provides two-agent orchestration patterns, the two-gate content…