From superpowers-ccg
Creates detailed implementation plans with bite-sized tasks, exact file paths, and TDD steps. Auto-activates when given specs or requirements for multi-step coding work.
How this skill is triggered — by the user, by Claude, or both
Slash command
/superpowers-ccg:writing-plansThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Writing Plans](#writing-plans)
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. YAGNI. TDD. Frequent commits.
Follow the [CP Protocol Threshold] injected by hooks:
If unmet -> immediately perform the CP assessment, then continue the flow right away; do not stop or interrupt.
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."
Hard reminder: before your first Task tool call, you must output a standalone 【CP1 Assessment】 block (fixed format with fields).
► Checkpoint 1 (Task Analysis): Before writing the plan, apply checkpoint logic from coordinating-multi-model-work/checkpoints.md:
Context: This should be run in a dedicated worktree (created by brainstorming skill).
Save plans to: docs/plans/YYYY-MM-DD-<feature-name>.md
Each step is one action (2-5 minutes):
Every plan MUST start with this header:
# [Feature Name] Implementation Plan
> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.
**Goal:** [One sentence describing what this builds]
**Architecture:** [2-3 sentences about approach]
**Tech Stack:** [Key technologies/libraries]
---
### 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
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
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
## Remember
- Exact file paths always
- Complete code in plan (not "add validation")
- Exact commands with expected output
- Reference relevant skills with @ syntax
- DRY, YAGNI, TDD, frequent commits
## Multi-Model Task Routing
**Related skill:** superpowers:coordinating-multi-model-work
When writing plans, you can optionally annotate tasks with model hints to guide execution. However, these hints are **suggestions only** - actual execution uses semantic analysis.
**Task annotation format (optional):**
```markdown
### Task N: [Component Name]
**Model hint:** `auto` | `codex` | `gemini` | `cross-validation`
**Files:**
- Create: `exact/path/to/file.py`
...
Routing hint meanings:
auto - Executor determines routing through semantic analysis (default)codex - Suggests backend focus (API, database, algorithms)gemini - Suggests frontend focus (components, styles, interactions)cross-validation - Suggests critical task needing dual-model verificationHow execution handles hints:
During plan execution (via executing-plans or developing-with-subagents):
Executor reads the Model hint if present
Applies semantic routing using coordinating-multi-model-work/routing-decision.md:
Routes task to optimal model (MCP tools):
mcp__gemini__gemini)mcp__codex__codex)Example with hints:
### Task 1: Create API endpoint
**Model hint:** `codex`
**Files:**
- Create: `server/api/users.go`
- Test: `server/api/users_test.go`
...
### Task 2: Create user profile component
**Model hint:** `gemini`
**Files:**
- Create: `src/components/UserProfile.tsx`
- Create: `src/components/UserProfile.css`
...
### Task 3: Integrate API with component
**Model hint:** `cross-validation`
**Files:**
- Modify: `src/components/UserProfile.tsx`
- Modify: `server/api/users.go`
...
Important notes:
auto hint → Executor performs full semantic analysisHard reminder: before claiming the plan is complete/ready to hand off for execution, you must output a standalone 【CP3 Assessment】 block (fixed format with fields).
► Checkpoint 3 (Quality Gate): Before handoff, apply checkpoint logic from coordinating-multi-model-work/checkpoints.md:
After saving the plan, offer execution choice:
"Plan complete and saved to docs/plans/<filename>.md. Two execution options:
1. Subagent-Driven (this session) - I dispatch fresh subagent per task, review between tasks, fast iteration
2. Parallel Session (separate) - Open new session with executing-plans, batch execution with checkpoints
Which approach?"
If Subagent-Driven chosen:
If Parallel Session chosen:
npx claudepluginhub bryanhoo/superpowers-ccg --plugin superpowers-ccgGenerates detailed, bite-sized implementation plans from specs or requirements. Designed for complex multi-step tasks before any code is written, with TDD structure and exact file paths.
Creates detailed implementation plans from specs or requirements, breaking work into bite-sized TDD tasks with exact file paths, commands, and expected outputs.
Generates detailed implementation plans from specs with bite-sized tasks, exact file paths, TDD steps, and commands. Best used before coding a multi-step feature.