/syv-skills:writing-plansfrom syv-skills
Writes an implementation plan from a spec or agreed requirements, listing files to touch, ordered tasks, and verification steps. Useful when changes span multiple files or when another session will execute the plan.
Ships in syv-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write a plan that a skilled engineer with no context on this codebase could follow: which files to touch, in what order, what behaviour each task produces, and how to check it.
If the change fits in one sentence, skip the written plan and do it. Write a full plan when the change spans several files, the order of work matters, the approach needs agreement, or another session will execute it. A three-task change needs a short list, not a document.
Don't build or scratch-implement while planning. Read the code you need to decide files, names and tests, and write those decisions down.
Where plans are saved, and whether they are kept at all, comes from the project's instructions file (AGENTS.md or CLAUDE.md). If it says nothing, look for an existing convention (a plans folder, plans attached to work items). If still unclear, ask with your harness's question tool (plain text if it has none) and offer to record the answer as a short section in the instructions file. A plan can live only in the conversation when it won't be executed elsewhere.
If the spec covers several independent subsystems, suggest one plan per subsystem. Each plan should produce working, testable software on its own.
Map the files first. Before the tasks, list the files to create or modify and what each is responsible for. This is where decomposition gets decided:
Then name one owner per rule. A file map splits work by file, so a rule that several files need can end up written into each of them. List every rule the plan introduces or relies on that more than one file needs: a format (what counts as a link, an id, a valid name), a lookup (where a folder or record is found), an invariant (what must hold after every write), an ordering or a constant. Name the one function or module that owns each; every other file calls it. A rule both sides of a boundary need (client and server, two processes, two services) lives in code both sides import.
Two tasks that each write their own version of a rule mean two owners, and they will drift: an index parser in one process and a link renderer in another, each with its own regex for "a link to a note", disagree on the first odd link. Plan text like "keep in step with", "mirrors" or "same as in Task N" marks the same problem. So does "every caller must call X, and a test catches the ones that forget": find the one point every caller passes through and enforce the rule there.
Say what the plan deletes. When a task adds a new way to do something the codebase already does, list the old paths it replaces and delete them in a task. Any that stay are named, with the reason and a follow-up.
Start with a short header:
# <Feature> implementation plan
**Goal:** <one sentence: what this builds>
**Approach:** <2–3 sentences>
**Stack:** <key technologies>
**Spec:** <where it lives, or "none">
## Global constraints
<The spec's project-wide requirements (version floors, dependency limits, naming
or copy rules, platform requirements), one line each, exact values copied from
the spec. Every task implicitly includes this section.>
## Review focus
<Up to five input classes or failure modes the spec implies but no task's tests
exercise, most likely to bite a user first, each with the behaviour a user would
expect.>
The executor reads the spec alongside the plan, and conflicts inside the plan resolve against the spec (with no spec, against what the user asked for). Global constraints copy what the spec says; don't invent process rules there.
Write the review focus with the spec in front of you: its silence on an input (empty, a duplicate, a very large file, a second run) is not permission for that input to break the program, and each line gets a test in the task that owns the code.
Then the tasks. A task is the smallest unit that carries its own test cycle. Fold setup, configuration and documentation into the task whose result needs them, and split only where a reviewer could reject one task while approving its neighbour.
### Task N: <name>
**Files:** create `path/new.py` · modify `path/existing.py:120-145` · test `tests/path/test_x.py`
**Interfaces:** consumes `parse_token(raw: str) -> Token` (Task 2) · produces `check_expiry(token: Token, now: datetime) -> bool`
**Behaviour:** <what this task makes true, stated so it can be checked>
- [ ] Write a failing test for <behaviour>
- [ ] Implement until it passes
- [ ] Verify: `pytest tests/path/test_x.py -v` → passes
```python
def test_rejects_expired_token():
assert check_expiry(token(expires="2026-01-01T00:00Z"), now=dt("2026-01-01T00:01Z")) is False
```
The Interfaces line gives the exact signatures this task uses from earlier tasks and the exact names and types later tasks rely on. An implementer often sees only their own task; this is how they learn what the neighbours call things.
Add a commit step per task only if the project commits per task.
End with end-to-end verification: the commands or actions that prove the whole feature works as a user would use it, with the expected result.
A step is done when the implementer can write exactly one reasonable thing from it. Unambiguous, not complete:
Give exact file paths and line ranges for modifications, and point to another task's Interfaces line rather than repeating its code. A plan longer than the code it describes has written the code.
These are gaps, not plans: "TBD", "add error handling", "handle edge cases", "write tests for the above" without saying which, "similar to Task N" when the tasks may be read out of order, and names used in one task but never defined.
Before showing the plan to the user, check it against the spec with the checklist in plan-document-reviewer-prompt.md and fix what you find. When another session or agent will execute the plan, or it spans several subsystems, hand that prompt to a reviewer subagent with a fresh context instead, and repeat until it approves.
Once the plan is saved, give its location and ask the user to read the plan itself before execution starts. Agreeing on the idea or the scope is not approving a plan they haven't read. If they want changes, revise and ask again. Then continue with executing-plans (which works through the plan task by task) in this session, or use handoff (which writes the context down for a fresh session) to run it in a new one. For a plan with real either/or decisions left open, visual-plan can render it for review first.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syv-ai/agentic-coding-playbook --plugin syv-skills20 skills in this plugin
/brainstormingThinks an idea through with the user before anything is built — new angles and radical alternatives, their thoughts organised and drawn, every open decision settled — and ends in an agreed design. Use when a feature or behaviour change is underspecified, when several approaches are plausible, when the user wants to explore an idea or think a design through, or wants their thinking organised or mapped. To only be questioned on a plan that already exists, use grill-me./executing-plansExecutes a written implementation plan task by task, verifying each step and reviewing the result against the plan before calling it done. Use when there is an existing plan to implement, in this session or one started fresh from a handoff./grill-meInterviews the user relentlessly about an idea, plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when the user wants to stress-test a plan, get grilled on an idea or design, or mentions "grill me". It is the interview inside brainstorming; when the idea also needs alternatives or a written design, use brainstorming./guardrailsReviews what a coding agent could damage in this repo, notes the controls already in place, and asks which remaining risks to cover./handoffCompacts the current conversation into a handoff document so another agent can pick up the work. Use when you want to hand off to a fresh session, or when continuing in a clean context would work better than carrying this one forward./improve-codebase-architectureFind deepening opportunities in a codebase — refactors that turn shallow modules into deep ones — and present them as a visual HTML report. Use when the user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.Other plugins' skills for the same job