一键导入
spec-writer
Transform ideas into detailed implementation specifications. Creates specs with requirements, design, and implementation steps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Transform ideas into detailed implementation specifications. Creates specs with requirements, design, and implementation steps.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Thoroughly reviews a GitHub pull request and posts inline review comments anchored to the exact lines it has feedback on. Spawns review sub-agents (parallel lenses for bugs, security, edge cases, tests, design), scores findings by confidence, filters false positives, and posts one PR review with per-line comments plus a summary. Works against github.com AND GitHub Enterprise Server. Use this whenever the user wants to review a PR, generate line-level feedback on a PR, "leave comments on" or "critique" a pull request, or produce actionable review comments to then process with pr-review-handler. Reach for this for arbitrary PR URLs and Enterprise hosts; for reviewing your own current branch on github.com, the built-in /code-review --comment is a lighter alternative.
Processes PR review comments by assessing feedback, planning actions, implementing changes, and responding to reviewers. Use when a PR has review comments that need to be addressed.
Rebases the current branch on the latest default branch (main, master, etc.), resolving any merge conflicts automatically. Detects the default branch and remote, fetches latest, performs rebase, and handles conflicts file-by-file.
You MUST use this skill for ANY changes you make within to the iOS app. Senior iOS engineer with visual feedback capabilities via simulator MCP tools.
Create and bootstrap a git worktree for isolated development work.
Collaborative exploration to refine ideas into clear requirements before spec writing. Explores user intent, requirements and design through iterative dialogue.
| name | spec-writer |
| description | Transform ideas into detailed implementation specifications. Creates specs with requirements, design, and implementation steps. |
Interactive specification writer that transforms ideas into actionable implementation plans through collaborative dialogue.
topic (positional): The topic or idea to write a spec for--mode=<interactive|autonomous>: Operating mode (default: interactive)--services=<svc1,svc2>: Limit spec to specific services--template=<path>: Use a custom template file--output=<path>: Override output locationCheck for .claude/spec-workflow/config.yaml in the project:
paths:
specs: "./specs" # Where specs are saved
services: # Your technology stack (optional)
backend:
path: "./backend"
patterns: "./backend/AGENTS.md" # Architecture docs to reference
frontend:
path: "./frontend"
spec:
naming: "{date}-{topic}-spec.md" # Spec file naming pattern
If .claude/spec-workflow/philosophy/spec-standards.md exists, read it and incorporate its guidance. This file contains the user's standards for what makes a good spec.
Use template from (in priority order):
--template argument.claude/spec-workflow/templates/spec.md in projectThis skill operates in three modes:
Trigger: User invokes spec-writer directly
Announce at start: "I'm using the spec-writer skill to create the implementation plan."
Trigger: Invoked by spec-orchestrator with { mode: "autonomous", request: string }
Announce at start: "I'm writing a spec autonomously for orchestrator review."
Trigger: Invoked by spec-orchestrator with { mode: "revision", currentSpec: string, feedback: object, iteration: number }
Announce at start: "I'm revising the spec based on reviewer feedback (iteration N)."
| Phase | Interactive | Autonomous | Revision |
|---|---|---|---|
| Understanding | Ask questions | Infer from context | Skip (spec exists) |
| YAGNI checkpoint | User validates | Self-assess, document reasoning | N/A |
| Design alternatives | Present options, user chooses | Choose best, document alternatives | Address feedback |
| Section checkpoints | Pause for validation | Continue without pause | N/A |
| Review Discussion | N/A (first draft) | N/A (first draft) | Update with feedback |
| Revision Notes | N/A | N/A | Required |
This skill is typically used after the idea-explorer skill has refined an idea into an understood problem space and success criteria, but before any implementation work begins. The output is a detailed spec file that the spec-executor skill can implement.
If the idea being presented is not yet well understood or has ambiguity, encourage the user to use the idea-explorer skill first.
Understand before writing spec
This skill prioritizes:
Mode note: In autonomous mode, infer answers from context and document assumptions. In revision mode, skip this phase.
When the user describes a feature or change:
Examine current state
Service awareness (if configured)
services.<name>.patterns)Apply YAGNI checkpoint
After gathering initial requirements, explicitly ask:
**Scope Check:** Based on what you've described, I'm considering these features:
- [Feature 1] - Essential / Nice-to-have / Not needed?
- [Feature 2] - Essential / Nice-to-have / Not needed?
- [Feature 3] - Essential / Nice-to-have / Not needed?
Let's mark "Nice-to-have" items as future work and focus on essentials.
Mode note: In autonomous mode, choose the best approach and document alternatives. In revision mode, focus on addressing feedback.
When there are multiple valid approaches:
**Design Decision: [Topic]**
I see 2-3 viable approaches. Here's my analysis:
---
**Recommended: Option A - [Name]**
[2-3 sentence description]
Pros:
- [Advantage 1]
- [Advantage 2]
Cons:
- [Tradeoff 1]
---
**Alternative: Option B - [Name]**
[2-3 sentence description]
Pros:
- [Advantage 1]
Cons:
- [Tradeoff 1]
- [Tradeoff 2]
---
**My recommendation:** Option A because [specific reasoning].
Does this align with your thinking, or would you prefer a different direction?
Mode note: In autonomous mode, skip validation checkpoints. In revision mode, use the Revision Mode Workflow below.
Present design in digestible sections (100-300 words each):
(Interactive mode only) After EACH section:
**Checkpoint: [Section Name]**
Does this design approach work for you? Any questions before we continue?
When invoked with { mode: "revision", currentSpec, feedback, iteration }:
Review the feedback object:
For each piece of feedback:
Add or update the Review Discussion section in the spec:
## Review Discussion
### Key Feedback Addressed
- **[Issue]** ([Reviewer]): [How it was resolved]
### Tradeoffs Considered
- **[Alternative]**: [Why it was rejected or deferred]
### Dissenting Perspectives
- **[Concern]** ([Reviewer]): [Why not fully addressed, reasoning]
This section accumulates across iterations—add to it, don't replace.
At the end of the spec, append:
---
## Revision Notes (Iteration N)
### Addressed
- [Feedback item]: [How addressed]
### Intentionally Not Addressed
- [Feedback item]: [Reasoning — this may trigger escalation]
### Other Changes
- [Any additional improvements]
If you believe feedback is incorrect:
If reviewers disagree with each other:
Save specs using the configured naming pattern. Default: {specs-path}/{date}-{topic}-spec.md
Example: ./specs/2024-12-21-user-notifications-spec.md
Use the template from configuration or the built-in template.
User Request
│
▼
┌─────────────────────────────────┐
│ PHASE 1: UNDERSTANDING │
│ • Examine current state │
│ • Ask questions (one at a time) │
│ • Apply YAGNI checkpoint │
└─────────────────────────────────┘
│
▼
┌─────────────────────────────────┐
│ PHASE 2: DESIGN │
│ • Present 2-3 approaches │
│ • Lead with recommendation │
│ • Validate each section │
└─────────────────────────────────┘
│
▼
┌─────────────────────────────────┐
│ PHASE 3: SPECIFICATION │
│ • Generate spec document │
│ • Save to configured location │
│ • Include parallelization if │
│ work is parallelizable │
└─────────────────────────────────┘
│
▼
Ready for Implementation
Mode note: Skip this phase in autonomous and revision modes—the orchestrator handles the workflow.
Ask these questions one at a time:
Ask if the user would like to create a worktree for this work. If yes:
/create-worktree with a suitable nameAsk if the user would like to make a commit