/superskills:write-planfrom Superskills
Produces detailed engineering plans from specs or requirements before coding. Includes TDD tasks, DRY/SOLID/YAGNI principles, a Test Plan & Verification section, and a coverage target. Automatically triggers an independent engineering review.
Ships in Superskills. 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.
None: SKILL.md is the whole skill.
Write comprehensive implementation plans assuming the engineer has zero context for our codebase and questionable taste. Document everything they need to know: which files to touch for each task, code, testing, docs they might need to check, how to test it. Give them the whole plan as bite-sized tasks. DRY. SOLID. YAGNI. TDD. Frequent commits. Every plan ends with a required Test Plan & Verification section and a coverage target, then gets an automatic second-pass engineering review (/plan-eng-review) before any code is written.
Assume they are a skilled developer, but know almost nothing about our toolset or problem domain. Assume they don't know good test design very well.
Announce at start: "I'm using the writing-plans skill to create the implementation plan."
Context: This should be run in a dedicated worktree (created by brainstorming skill).
Save plans to: docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md
Rate the incoming requirements first: can the goal be stated in one sentence, and does the request name at least one checkable success criterion?
/deep-interview once, in one line ("the requirements are fuzzy on X — want an interview to sharpen them, or should I plan on stated assumptions?"). If the user declines — or no interactive user is available (a one-shot request that expects the plan in the reply, a scheduled run) — proceed, never stall, and record every guess in the plan's Assumptions line (header below): statement, basis, reversible or not. A plan built on unrecorded guesses is a plan nobody can audit.For a one-shot request that asks for the plan in the reply, repeat those recorded guesses in a clearly labeled Assumptions: section of the final reply, with each statement's basis and whether it is reversible.
If the spec covers multiple independent subsystems, it should have been broken into sub-project specs during brainstorming. If it wasn't, suggest breaking this into separate plans — one per subsystem. Each plan should produce working, testable software on its own.
If the spec is a user-facing feature, scope the plan as a vertical slice: one branch containing every layer the feature needs to work — UI, API, business logic, data, and tests — independently shippable and safely reversible (full definition in DEVELOPER_WORKFLOW.md in the superskills install). If it's a bugfix, refactor, or single-layer change, scope only the layers it actually touches — do not add layers to make the slice look complete; that's a YAGNI violation.
Before defining tasks, map out which files will be created or modified and what each one is responsible for. This is where decomposition decisions get locked in.
This structure informs the task decomposition. Each task should produce self-contained changes that make sense independently.
This skill operationalizes the superskills quality standard (TDD, DRY, SOLID, YAGNI) at plan time;
/qa-fullenforces it at ship time. The principles are defined inline in the sections below — work from those. The canonical written copy isENGINEERING_STANDARDS.mdin the superskills install (not in the project you're planning for), so you don't need to fetch it.
The plan must show it respects these — not as a checkbox, but by naming where each applies in the File Structure and tasks:
If satisfying these requires restructuring existing code, scope that restructure as its own task — don't smuggle it into a feature task.
Threat modeling is a design-time activity — it must shape the plan, not be discovered at the ship gate. If this feature does any of the following, run /cso (OWASP Top 10 + STRIDE) on the design before writing tasks, and fold the result in:
What to fold into the plan:
/orders/:id"), so /qa-full's /defense step has something concrete to verify against.If the feature crosses no trust boundary, state that in one line and skip — don't manufacture security tasks (YAGNI applies here too).
Each step is one action (2-5 minutes):
High-quality task lists — every task names its artifact and its completion signal (these one-liners are the task list; inside each task, the Task Structure rules below still apply — failing-test-first steps, exact files, code, and commands):
Add /exports/<model> route returning StreamingHttpResponse
Serialize chosen columns via values_list(*cols).iterator()
Stream 500-row pages; write the CSV header before the first page
Cap exported rows at 500k; test truncation at the cap
Test: 3-column export of 1,200 rows streams all rows plus header
Write failing test: parse_duration("90s") → 90_000
Implement unit tokenizer for s/m/h suffixes
Handle m:ss and h:mm:ss behind the same entrypoint
Fuzz round-trip: format(parse(x)) stable for 10k samples
Replace the three ad-hoc parsers with the new helper
Add POST /api/tokens issuing scoped, 24h refresh tokens
Reject unsigned requests with 401 plus a machine-readable error code
Rotate the refresh token on use; invalidate the old one atomically
Test concurrent refresh: one winner, the loser gets 401
Load-test 1k concurrent refreshes against the rotation lock
Filler to avoid — no artifact, no completion signal, no reader can tell done from not-done:
Create export feature
Add CSV generation
Convert to output
Add duration parsing
Save the result
Make parsing robust
Build token endpoint
Run quick sanity check
Summarize usage instructions
Every plan MUST start with this header:
# [Feature Name] Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use subagent-driven-development (recommended) or executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Tech Stack:** [Key technologies/libraries]
**Assumptions:** [Every guess the spec forced on you: statement — basis — reversible or not. "None: the spec was complete" when it didn't]
---
### Task N: [Component Name]
**Files:**
- Create: `exact/path/to/file.py`
- Modify: `exact/path/to/existing.py:123-145`
- Test: `tests/exact/path/to/test.py`
- [ ] **Step 1: Write the failing test**
```python
def test_specific_behavior():
result = function(input)
assert result == expected
```
- [ ] **Step 2: Run test to verify it fails**
Run: `pytest tests/path/test.py::test_name -v`
Expected: FAIL with "function not defined"
- [ ] **Step 3: Write minimal implementation**
```python
def function(input):
return expected
```
- [ ] **Step 4: Run test to verify it passes**
Run: `pytest tests/path/test.py::test_name -v`
Expected: PASS
- [ ] **Step 5: Commit**
```bash
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
```
Every step must contain the actual content an engineer needs. These are plan failures — never write them:
After the tasks, every plan MUST end with a ## Test Plan & Verification section. A plan without it is incomplete. This is the rollup that /qa-full, /qa, /qa-only, and /verify consume, and the artifact /plan-eng-review double-checks. The per-task TDD steps stay where they are; this section ties them to coverage, critical paths, and acceptance criteria.
## Test Plan & Verification
**Coverage target:** [concrete, e.g. "≥90% lines on new modules; every new public function and error path has a test"]
**Critical paths (must pass before ship):**
- [end-to-end flow] → [how it's verified]
**Edge cases & error paths:**
- [input/state] → [expected handling] → [test that covers it]
**Regression guards:**
- [existing behavior that must not break] → [test protecting it]
**Verification commands:**
- Unit: `[exact command]` — expected: all pass
- Coverage: `[exact command]` — expected: ≥ target above
- E2E (if applicable): `[exact command]`
**Acceptance criteria (from spec):**
- [ ] [criterion] → covered by [task / test name]
The coverage-target line is exactly what /qa-full Step 9 checks and /verify confirms — make it concrete, not "good coverage."
## Test Plan & Verification section and a coverage targetAfter writing the complete plan, look at the spec with fresh eyes and check the plan against it. This is a checklist you run yourself — not a subagent dispatch.
1. Spec coverage: Skim each section/requirement in the spec. Can you point to a task that implements it? List any gaps.
2. Placeholder scan: Search your plan for red flags — any of the patterns from the "No Placeholders" section above. Fix them.
3. Type consistency: Do the types, method signatures, and property names you used in later tasks match what you defined in earlier tasks? A function called clearLayers() in Task 3 but clearFullLayers() in Task 7 is a bug.
4. TDD & test-plan completeness: Does every task that writes code have a failing-test-first step? Is the ## Test Plan & Verification section present with a concrete coverage target, critical paths, edge cases, and exact verification commands? If any task ships code with no test, fix it.
5. Principles check (DRY / SOLID / YAGNI): For each new unit, can you name its single responsibility (SRP) and the existing helper it reuses (DRY)? Any duplicated logic across tasks, god-object, or speculative extensibility (YAGNI)? Fix or justify inline.
6. Trust-boundary check: Does the feature cross any trust boundary (auth, untrusted input, sensitive data, new endpoint/integration, deserialization)? If yes, did you run /cso and turn each material threat into a design task and a negative test? If it crosses none, is that stated? Fix gaps — a trust-boundary feature with no security tasks is an incomplete plan.
If you find issues, fix them inline. No need to re-review — just fix and move on. If you find a spec requirement with no task, add the task.
Once the plan passes self-review, hand it to /plan-eng-review for an independent engineering double-check before any code is written. This is automatic — don't ask permission, just run it:
/plan-eng-review on the saved plan file. It locks in architecture and data flow, pressure-tests edge cases and test coverage, and writes a Test Plan Artifact that /qa, /qa-only, and /qa-full consume as primary test input.## Test Plan & Verification section or the DRY/SOLID structure./plan-eng-review is satisfied do you offer the execution handoff below.Full chain: /write-plan (DRY · SOLID · YAGNI · TDD · Test Plan · coverage) → self-review → /plan-eng-review (double-check + Test Plan Artifact) → execution.
After saving the plan, offer execution choice:
"Plan complete and saved to docs/superpowers/plans/<filename>.md. Two execution options:
1. Subagent-Driven (recommended) - I dispatch a fresh subagent per task, review between tasks, fast iteration
2. Inline Execution - Execute tasks in this session using executing-plans, batch execution with checkpoints
Which approach?"
If Subagent-Driven chosen:
If Inline Execution chosen:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ariadoss/superskills --plugin superskills48 skills in this plugin
/a11yAccessibility audit for frontend changes — WCAG 2.2 AA, screen-reader
compatibility, keyboard navigation, focus management, ARIA correctness, color
contrast, and reduced-motion. Static diff-scoped analysis (safe to auto-run) plus
an optional dynamic axe pass against a running app. Use when asked to "check
accessibility", "a11y audit", "screen reader check", "WCAG", "is this
accessible", "keyboard navigation", "ARIA review", or after heavy frontend work.
/articleExtract clean article content from URLs (blog posts, articles, tutorials) and save as readable text. Use when user wants to download, extract, or save an article/blog post from a URL without ads, navigation, or clutter./basic-reviewRead-only correctness review of pending changes, needing no external
install: correctness, security, reliability/performance and contract risk,
each finding cited as file:line with why it is wrong and a fix. The fallback
when gstack's /review is unavailable (not installed, or its install is
broken); /qa-full and /daily-qa call it automatically then. Applies a
vendored copy of gstack's pre-landing checklist. Use when asked for
a "basic review", a "quick review without gstack", or a review in a tool where
/review is missing. Not for quality cleanups (use /clean-code), and not the
first choice when /review is installed: /review goes deeper and applies fixes.
Other plugins' skills for the same job