基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CoyoteLeo/superspec --skill ss-writing-plans命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Use before creating features, building components, adding functionality, or modifying behavior to explore user intent, requirements, and design before implementation
Use when executing implementation plans with independent tasks in the current session
Use when starting a new session to understand how superspec skills work and when to invoke them
| name | ss-writing-plans |
| description | Use when you have a spec or requirements for a multi-step task, before touching code |
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.
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 ss-writing-plans skill to create the implementation plan."
Context: Invoked by ss-brainstorming after the design phase. Both Standard and One-shot modes produce a design.md before handing off — use it as the primary reference. The change directory should already exist. In One-shot mode, plan + tasks generation happens in the same continuous pass as the design (no separate user gate between them); the user reviews all three artifacts together afterwards.
Save plans to: changes/YYYY-MM-DD-<topic>/plan.md (in the change directory)
Also generate: changes/YYYY-MM-DD-<topic>/tasks.md — a standalone task checklist extracted from the plan for cross-session persistence. Each task is a - [ ] checkbox line with a brief description. This file is the persistent tracking mechanism that survives across conversations (unlike TodoWrite which is ephemeral).
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.
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.
Also state the PR grouping. Say which tasks land in which PR, what each PR's base is (a stacked PR is based on the previous PR's branch, not on the base branch), and any ordering constraint with its reason — e.g. a backend PR must merge before the frontend PR that calls its new endpoint. The execution skill needs this to open the right PRs; leaving it implicit means the stack gets guessed.
Each step is one action (2-5 minutes):
Note: Do NOT put git steps inside a task's steps. Branching, committing, pushing and opening the PR happen at the PR-group boundary and are the controller's job (see ss-subagent-driven-development → Worktrees and Stacked PRs), not a step an implementer subagent performs. Task steps stay code + test only.
Every plan MUST start with this header:
# [Feature Name] Implementation Plan
> **For agentic workers:** REQUIRED SUB-SKILL: Use ss-subagent-driven-development 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]
---
### 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
After writing the complete plan, dispatch a general-purpose subagent to review it against the spec (if any). Inline self-review is not acceptable — empirically the author rubber-stamps their own work and skips codebase verification. The reviewer must open the repo to verify concrete claims (file paths, symbol names, fixtures, signatures, that referenced types/functions actually exist).
Use the template at plan-document-reviewer-prompt.md. Pass the absolute path of plan.md and, if it exists, design.md.
When the subagent returns:
plan.md so the user can adjudicate), then re-dispatch the reviewer on the updated file. Loop until approved.Calibration: the reviewer is instructed to flag only issues that would cause an implementer to build the wrong thing or get stuck. Minor wording is not an issue.
After writing the plan, generate a tasks.md file in the same change directory. This file extracts the high-level task checklist from the plan:
# Tasks: [Feature Name]
**Change:** changes/YYYY-MM-DD-<topic>/
**Plan:** /abs/path/to/plan.md
**Design:** design.md *(omit this line if no design.md exists)*
## Execution State
*(scaffold this block empty — the execution skill fills it in)*
**Worktree:** _not started_
**PRs:** _none yet_
## Tasks
- [ ] Task 1: [Component Name] — [one-line summary]
- [ ] Task 2: [Component Name] — [one-line summary]
- [ ] Task 3: [Component Name] — [one-line summary]
...
Each task line corresponds to a ### Task N section in the plan. The execution skill marks these - [x], annotates each one with its commit range and review verdict, and keeps the Execution State block current — together that makes tasks.md the change's record of what has actually happened, not just what is left.
The Plan: line is absolute. After execution starts, tasks.md is read from a worktree, from another terminal, or in a session that has forgotten where it came from — a repo-relative path resolves to the wrong file or to nothing.
Do not split this into a second progress file. One file per change is the record; a sibling ledger duplicates the task list and the two drift.
After saving the plan and tasks.md:
/abs/path/to/changes/YYYY-MM-DD-<topic>/plan.md. Tasks tracked in tasks.md." Use the absolute path — the user often opens these from a different terminal or worktree.REQUIRED SUB-SKILL: Use ss-subagent-driven-development.