gsd-2-agent-framework — Claude Code skill
A skill that documents the GSD 2 CLI, which walks a spec through milestone, slice and task levels and writes the code unattended. Handy when you want a long job to run while you are away.
npx skills add reason-machines/trending-skills --skill gsd-2-agent-framework -a claude-codeWhat gsd-2-agent-framework does
GSD 2 is a separate command-line tool: feed it a structured spec and it produces a working project. The skill covers how its loop is wired. Every task gets its own fresh context window instead of one endless conversation where edits start contradicting each other. Position lives in .gsd/STATE.md, architecture choices accumulate in .gsd/DECISIONS.md, and token spend is tracked per unit in .gsd/costs/ledger.json.
The hierarchy is strict. A milestone is a shippable version, a slice is one demonstrable vertical capability, and a task is a chunk of work that fits one context window. If it does not fit, you split it. That is why a crash does not wipe the whole run: a lock file in .gsd/LOCK drives recovery. Git is handled for you — a branch per milestone, a commit per task, then a single squash merge into main.
Before any of this runs you need Node.js 18+ and the gsd-pi package installed globally; the underlying model is Claude through the Pi SDK, so Anthropic access is required. Done means the must-haves pass: shell commands and file checks written into the task plan. Set --budget on auto runs, otherwise spending keeps going past the point you had in mind.
What it helps with
- split a large feature into context-sized tasks
- take an API from spec to working code without watching the terminal
- resume an agent run after the process dies
- cap token spending at a chosen budget
- keep git history readable with one commit per task
Example prompts for the agent
- Build the
.gsd/directory from myROADMAP.mdandPROJECT.md, then run/gsd init - Start
/gsd auto --milestone M1 --budget 5.00and pause if the spend crosses the limit - Tell me which slice we are on and what it has cost so far with
/gsd status
How to install gsd-2-agent-framework
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill gsd-2-agent-framework -a claude-code2Manually: put the files in place
~/.claude/skills/gsd-2-agent-framework/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/gsd-2-agent-framework/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill gsd-2-agent-framework -a codex2Manually: put the files in place
.agents/skills/gsd-2-agent-framework/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill gsd-2-agent-framework -a cursor2Manually: put the files in place
.cursor/skills/gsd-2-agent-framework/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/trending-skills gsd-2-agent-framework2Manually: put the files in place
.github/skills/gsd-2-agent-framework/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill gsd-2-agent-framework -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/trending-skills --path skills/gsd-2-agent-frameworkManually: put the files in place
.devin/skills/gsd-2-agent-framework/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill gsd-2-agent-framework -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about gsd-2-agent-framework
How do I install gsd-2-agent-framework in Claude Code?
Run npx skills add reason-machines/trending-skills --skill gsd-2-agent-framework -a claude-code. The skill lands at ~/.claude/skills/gsd-2-agent-framework/SKILL.md.
What does gsd-2-agent-framework do?
It documents the GSD 2 autonomous loop: research, plan, execute, verify against must-haves, then move to the next slice. State and costs sit in the .gsd/ directory.
What is needed to run GSD 2?
Node.js 18+ and the gsd-pi package installed globally (npm install -g gsd-pi). It uses Claude as the model via the Pi SDK, so Anthropic access is required.