Butter Workflow
Portable issue-based Spec-Driven Development for AI coding agents that support Agent Skills.
What It Provides · Workflow Design · Installation · Usage · Track Model · Planning · Preference Capture
Butter Workflow keeps the working context in repository files so a task can move between tools, models, and sessions without depending on chat history.
See Workflow Design for the full methodology and handoff model.
What It Provides
- Three shared workflow stages: start, implement, and code-review.
- One shared skill set (
skills/) for agents supporting the Agent Skills format (SKILL.md) — no tool-specific command wrappers. - Track A/B/C routing for small changes, planned changes, and high-risk changes.
- Parallel repository research behind every plan, and a separate validation pass before a plan reaches you.
- A design dialogue at start that puts the decisions only you can make to you, one question at a time, instead of guessing.
- Development methods picked per task during implementation — test first, only what is needed, root cause before fixes — with verification before anything is called done.
- Short handoff spec documents under
docs/specs/{TASK-ID}/for every track, with the decision history kept in00-META.md. - Shared user preference memory under
~/.agents/preferences/preferences.md, captured automatically as you work.
Installation
Install directly from this GitHub repository with the skills.sh CLI. No clone required:
npx skills add ypjun100/butter-workflow -g
The -g flag makes the workflow available across projects. Update the global
installation to the latest version later with:
npx skills update -g
The CLI supports Claude Code, Codex, and the other agents in its supported-agent list. Agent-specific skill features may vary. Trade-off to know: unlike a plugin marketplace, this installation path has no version pinning or changelog UI — it installs whatever is on the default branch, so check this repository's commit history before updating if that matters to you. Restart the tool or start a new session after installing so the newly loaded skills are available.
Usage
Start a workflow by naming the start skill. This is the only stage that requires it:
/butter-workflow-start <task context> # Claude Code and similar
$butter-workflow-start <task context> # Codex
Use the butter-workflow-start skill with <task context>
The remaining stages run from plain language:
Looks good, start implementing. -> butter-workflow-implement
Review this PR: <PR URL> -> butter-workflow-code-review
Ordinary requests inside a running workflow stay ordinary. "Fix this line in the spec" edits the spec document; "apply this feedback" applies it, commits, and pushes. Neither advances a stage — only asking for the next stage's work does.
Skills
| Skill | Role |
|---|---|
butter-workflow-start |
Opens or resumes a draft, clarifies the task, writes and validates the plan, then waits for approval. |
butter-workflow-implement |
Blocks unfinished drafts, builds the approved plan, verifies changes, commits, pushes, and opens a PR. |
butter-workflow-code-review |
Reviews a PR or branch diff with issue, plan, task, decision, and risk-target context, verifies review feedback against the code before applying it, then closes out the workflow. |
All three stages also capture preferences while they run. See Preference Capture.
Track Model
- Track A: small low-risk changes; plays its understanding back once, writes a lightweight spec (
00-META.md+01-SPEC.md), and pauses for approval before implementing. - Track B: planned feature or fix within existing architecture; creates the full
docs/specs/{TASK-ID}/set. - Track C: high-risk Track B work involving auth, security, payment, permissions, shared core, architecture, migration, or broad refactor risk; adds
Risk Review Targets.
Planning
For Track B and Track C, the start stage launches four repository research axes together, plus an external-context axis when the task references an issue, PR, or ticket. When fewer agent slots are available, the axes are grouped across those slots and still launched in one batch.
reuse what already does this, and who calls it
convention how this repository writes this kind of code
impact what the change touches, and what depends on it
verification build, test, and lint commands, and where tests live
external the referenced issue, PR, or ticket, when present
The design dialogue runs while they do: you are asked about what only you can decide, one question at a time, and the spec fills in as each part is confirmed. Later questions build on what the research found. Each angle anchors findings to its source — repository locations for repository research and source links or identifiers for external context — and a search that came up empty is stated rather than left silent.
The finished plan then goes to a read-only agent that did not write it. That agent independently inspects the repository while checking reuse, minimal change, architecture fit, convention, and document format, and it returns the decisions only you can make as questions:
"add a date formatter" -> src/lib/date.ts:40 already has one
"add a config layer" -> one caller; inline it
"put the client here" -> every other client lives in src/api/
"add a tests/ folder" -> tests sit beside the source in this repo
A clean verdict has to say what it searched for and did not find; an empty pass does not count. Its questions come to you before the plan is re-checked. Findings get applied and the plan is re-checked once rather than looped, so the gate cannot stall. Anything left unapplied is reported with its reason when the stage pauses for your approval.
Preference Capture
Every stage watches for preferences in what you say and records them as it goes, so nothing depends on remembering to run a wrap-up step.
~/.agents/preferences/
preferences.md # everything captured, applied to your work from the next task on
A request that contradicts an entry already in the file replaces it, since your latest word is the current one — the swap is reported so you can put it back. Asking for an entry to be dropped removes it.
The bar is low on purpose. Anything that would help write a better plan, change, or review next time gets captured, and the rule is extracted from whatever you happened to be talking about at the time:
"Write the plan in Korean, not English"
-> plan documents are written in Korean from now on
"This component's logic is too complicated, unpack it"
-> favor simple, direct code over defensive handling for unlikely cases
Neither of those is phrased as a preference, and both name something specific. Both are captured, because the rule is what matters and the rule generalizes.
The judging runs in a separate agent alongside your actual request, so a message carrying thirty pieces of feedback does not turn into thirty pieces of deliberation you have to sit through. Each record, replacement, or removal is reported in a single line at the end of the response, so you can correct a bad capture right away.
Tool Rules
- Use available Jira/GitHub MCP tools first for issues, PRs, and review comments.
- Use
ghonly for GitHub PR work when MCP is unavailable. - Use
gitfor repository work: branch, status, diff, commit, and push. - Do not modify issue bodies or comments without user approval.
Repository Outputs
Every track creates a spec directory. Track A writes a lightweight spec:
docs/specs/{TASK-ID}/
00-META.md
01-SPEC.md
Track B/C add the plan and task files:
docs/specs/{TASK-ID}/
00-META.md
01-SPEC.md
02-PLAN.md
03-TASK-*.md
00-META.md is the current workflow state source of truth and keeps the decision history. Its Status moves drafting → planned → implemented → reviewed, ending at reviewed; it stays drafting while the design dialogue is open. You review 00-META.md, 01-SPEC.md, and 02-PLAN.md; the 03-TASK-*.md files are written for the implementing agent. Preference data never lives in the spec directory; it lives in ~/.agents/preferences/preferences.md.
