ワンクリックで
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when you have a spec or requirements for a multi-step task, before touching code
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Use when creating or refactoring a page module in this repository, especially under src/pages, when deciding folder layout, file naming, shared page state, exports, or how to avoid prop drilling
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs; in this repository, completion verification must include running npx tsc --noEmit and confirming the output before making any success claims
Use when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".
Use when preparing git operations, finishing development work, or considering pushing branches to a remote for this repository
| name | 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. Frequent commits.
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.
Language rule: Unless the user explicitly requests another language, every generated plan document MUST be written in Simplified Chinese. This includes the title, section headings, task names, step descriptions, explanatory prose, and execution handoff text. Keep file paths, commands, code, APIs, and commit messages in their original language when needed, but all surrounding narration MUST remain in Simplified Chinese.
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
docs/plans/ or session workspace).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.
Each step is one action (2-5 minutes):
Every plan MUST start with this header(默认使用简体中文):
# [功能名称] 实施计划
> **给代理执行者:** 必须使用 superpowers:subagent-driven-development(推荐)或 superpowers:executing-plans 按任务逐步实现本计划。步骤使用复选框(`- [ ]`)语法跟踪,执行时必须把本文件同步更新为最新状态。
**目标:** [用一句话描述这次要实现什么]
**架构:** [用 2-3 句话说明实现方式]
**技术栈:** [关键技术或库]
---
### 任务 N:[组件名称]
**文件:**
- 新建:`exact/path/to/file.py`
- 修改:`exact/path/to/existing.py:123-145`
- 测试:`tests/exact/path/to/test.py`
- [ ] **步骤 1:先写失败测试**
```python
def test_specific_behavior():
result = function(input)
assert result == expected
```
- [ ] **步骤 2:运行测试并确认它失败**
运行:`pytest tests/path/test.py::test_name -v`
预期:FAIL,并出现 "function not defined"
- [ ] **步骤 3:写最小实现**
```python
def function(input):
return expected
```
- [ ] **步骤 4:再次运行测试并确认通过**
运行:`pytest tests/path/test.py::test_name -v`
预期:PASS
- [ ] **步骤 5:提交**
```bash
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
```
Plans are living execution records, not static proposals.
- [ ] to - [x]执行记录:... note with the real command result or environment limitationAfter writing the complete plan:
Review loop guidance:
After saving the plan, offer execution choice(默认使用简体中文):
“计划已完成并保存到 docs/superpowers/plans/<filename>.md。有两种执行方式:
1. 子代理驱动(推荐) - 我按任务分派新的子代理执行,每步 review 后再推进,迭代更快
2. 当前会话内执行 - 我在这个会话里使用 executing-plans 直接批量执行,并在检查点汇报
你想用哪一种?”
If Subagent-Driven chosen:
If Inline Execution chosen: