Write the requirements before you write the code. Spec First gives you a workflow with three steps. First, define what to build. Then implement it from the spec. Last, generate the documentation. All steps run in your terminal.
> /plugin marketplace add bitcraft-apps/spec-first> /plugin install sf@spec-first
What's inside
Write the requirements before you write the code. Spec First gives you a workflow with three steps. First, define what to build. Then implement it from the spec. Last, generate the documentation. All steps run in your terminal.
Give an agent a vague prompt, and the agent decides the requirements for you. You find out what it decided when you read the diff. A wrong decision then costs you the whole change.
Spec First puts the requirements in a file first. You read that file and correct it. The agent builds from the file you approved.
Use Spec First if you want your coding agent to build from clear requirements.
On Claude Code, add the marketplace. Then install the plugin:
claude plugin marketplace add bitcraft-apps/spec-first
claude plugin install sf@spec-first
On another host, install the skills with ./scripts/install.sh. The host
table below gives the command for each host.
New to Spec First? Getting Started walks through your first spec.
Each command gives the same steps and the same checks to every host.
/sf:spec writes .sf/spec.md. You read that file and
correct it before the agent writes code./sf:spec and /sf:document run as workflow scripts.
Every other host does the same steps in order.The spec stays on your machine. Team Workflow shows how a team shares it through the ticket.
The table shows the typical range for each phase. The example is a small CLI tool with approximately 500 lines.
| Phase | Input tokens | Output tokens |
|---|---|---|
| spec | 10k–30k | 2k–6k |
| implement | 30k–120k | 5k–30k |
| document | 20k–60k | 3k–10k |
By default, /sf:spec uses one schema-checked research call and one synthesis call. Set the
workflow input parallelResearch: true to use separate scope, criteria, and risk calls in
parallel.
Your token counts change with the size of the codebase, the complexity of the feature, and the number of iterations. For current prices, see Claude pricing.
| Command | Purpose |
|---|---|
/sf:spec [REQUIREMENTS] | Define what to build and why |
/sf:implement [--isolate] [SPEC_OR_PATH] | Build the minimal working solution |
/sf:document [PATHS] | Generate documentation for the change |
| Host | Install | What runs |
|---|---|---|
Claude Code — reads ~/.claude/skills | claude plugin install sf@spec-first | The three commands, workflow subagents, and validation hooks |
Hosts that read .agents/skills: pi, opencode, Codex CLI, GitHub Copilot CLI, Gemini CLI, Cursor, Zed, Amp, Goose, Crush, Kilo Code, Warp, Factory Droid, OpenHands | ./scripts/install.sh | The three commands in order. The skills call the validation scripts, so the same checks run. |
Hosts that read their own directory: Cline (~/.cline/skills), Qwen Code (~/.qwen/skills), iFlow CLI (~/.iflow/skills) | ./scripts/install.sh --dir <that directory> | Same as above |
| Any other host with a skills directory | ./scripts/install.sh --dir <dir> | Same as above |
Supported hosts gives the directory each host reads, the documentation it
came from, and the version it was read at. A host not listed there: check its skill documentation
for the directory it reads, then pass that with --dir.
FAQ
sf is a Claude Code plugin with 3 hand-picked skills for development work, indexed on Flowy. Install it with the command on its page. It includes document, implement, spec. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it