一键导入
writing-plans
当已经有明确规格、需求或多步骤实现目标时使用,用来拆成可执行计划。不要作为普通 bug 修复、小改动或日常执行的默认入口;不要假设必须使用未安装的 superpowers execution skills。在 OpenCode 中,计划应交接给当前可用的 todo、task、验证命令和最小改动流程。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
当已经有明确规格、需求或多步骤实现目标时使用,用来拆成可执行计划。不要作为普通 bug 修复、小改动或日常执行的默认入口;不要假设必须使用未安装的 superpowers execution skills。在 OpenCode 中,计划应交接给当前可用的 todo、task、验证命令和最小改动流程。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use this skill when the task is specifically about AI search, AI Overviews, LLM citations, answer-engine optimization, or improving visibility in AI-generated answers. Good fit for AEO, GEO, LLMO, AI citations, zero-click AI visibility, and optimization for ChatGPT, Perplexity, Claude, Gemini, or similar systems. Do NOT use as the default for broad SEO audits or for pure schema implementation.
在创造性产品或设计工作之前使用此技能:创建新功能、构建新组件、添加新能力,或有意改变既定产品行为。在实现前先探索用户意图、需求和设计。不要用于 bug 修复、测试失败、构建失败、回归修复、恢复已有行为,或预期行为已经明确的实现任务;这些情况优先使用 systematic-debugging、test-driven-development 和 verification-before-completion。
Unified Impeccable frontend design skill. Use when the goal is to design, build, redesign, or improve a frontend interface — web pages, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, empty states, responsive behavior, typography, spacing, layout, color, motion, UX copy, accessibility, or UI-perceived performance. Also use for Impeccable command-style requests aimed at frontend work, such as `impeccable craft`, `shape`, `init`, `document`, `extract`, `critique`, `audit`, `polish`, `bolder`, `quieter`, `distill`, `harden`, `onboard`, `animate`, `colorize`, `typeset`, `layout`, `delight`, `overdrive`, `clarify`, `adapt`, `optimize`, `live` (`teach` is only a deprecated alias for `init`). Do NOT use for backend or non-frontend code audits, docs, or reviews; live-site design-language extraction; static poster or cover art; HTML slide decks; PowerPoint / PDF / Word / spreadsheet deliverables; or specialized React/Next performance work.
遇到 bug、测试失败、构建失败、生产事故或异常行为时使用;在提出修复方案之前先找根因,不要凭直觉打补丁。 / Use for bugs, test failures, build failures, production incidents, or unexpected behavior — investigate the root cause before proposing a fix; do not patch symptoms.
在实现新功能、有意的行为变更,或非平凡 bug 修复时使用——先写一个会失败的测试,再写实现代码。例外:一次性原型、生成代码、配置文件、单行 trivial 修改、纯文案/排版/样式调整,以及没有可测行为的改动。 / Use when implementing new features, intentional behavior changes, or non-trivial bug fixes — write a failing test before implementation. Exceptions: throwaway prototypes, generated code, config files, trivial single-line patches, copy / typography / pure style edits, and changes with no testable behavior.
当确实需要与当前工作区隔离时使用,例如并行开发、临时 hotfix、PR 检查、多方案实验或执行大型实现计划。不要作为日常小修、普通 bug 修复、只读调查或单文件改动的默认流程。
| name | writing-plans |
| description | 当已经有明确规格、需求或多步骤实现目标时使用,用来拆成可执行计划。不要作为普通 bug 修复、小改动或日常执行的默认入口;不要假设必须使用未安装的 superpowers execution skills。在 OpenCode 中,计划应交接给当前可用的 todo、task、验证命令和最小改动流程。 |
| version | 1.0.0 |
| license | MIT |
| metadata | {"hermes":{"tags":["planning","documentation"]}} |
Use this skill on demand for implementation planning, not as the default entry for every coding task.
Trigger it when the task clearly involves one of these goals:
Do not trigger it for:
OpenCode compatibility:
superpowers:subagent-driven-development or superpowers:executing-plans unless those skills are actually installed and availabletodowrite, task when useful, direct edits, and verification commands编写全面的实现计划,假设工程师对我们的代码库零上下文,且品味存疑。记录他们需要知道的一切:每个任务要修改哪些文件、代码、测试、可能需要查阅的文档、如何测试。将整个计划拆成小步骤任务。DRY。YAGNI。TDD。频繁 commit。
假设他们是有经验的开发者,但对我们的工具链和问题领域几乎一无所知。假设他们不太擅长测试设计。
开始时宣布: "我正在使用 writing-plans 技能创建实现计划。"
上下文: 此技能应在专用 worktree 中运行(由 brainstorming 技能创建)。
计划保存位置: docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md
如果规格涵盖了多个独立子系统,它应该在头脑风暴阶段就被拆分为子项目规格。如果没有,建议将其拆分为独立的计划——每个子系统一个。每个计划应该能独立产出可工作、可测试的软件。
在定义任务之前,先列出将要创建或修改的文件以及每个文件的职责。这是锁定分解决策的地方。
此结构决定了任务分解。每个任务应产出独立的、有意义的变更。
每步是一个操作(2-5 分钟):
每个计划必须以此头部开始:
# [功能名称] 实现计划
> **面向 AI 代理的工作者:** 按下述任务清单逐项执行;进度用复选框(`- [ ]`)跟踪。每个任务完成后运行对应的验证命令并核对预期输出,再进入下一项。
**目标:** [一句话描述要构建什么]
**架构:** [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:Commit**
```bash
git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"
```
每个步骤都必须包含工程师需要的实际内容。以下是计划缺陷——绝不要写出来:
编写完整计划后,以全新视角审视规格并对照检查计划。这是你自己执行的检查清单——不是子代理调度。
1. 规格覆盖度: 浏览规格中的每个章节/需求。你能指出实现它的任务吗?列出所有遗漏。
2. 占位符扫描: 搜索计划中的红旗——上方"禁止占位符"章节中的任何模式。修复它们。
3. 类型一致性: 后续任务中使用的类型、方法签名和属性名是否与前面任务中定义的一致?任务 3 中叫 clearLayers() 但任务 7 中叫 clearFullLayers() 就是 bug。
如果发现问题,直接内联修复。无需重新审查——修好继续推进。如果发现规格中的需求没有对应任务,就添加任务。
保存计划后,按当前 agent 环境可用的方式逐任务推进,不要假设某个特定的执行子 skill 必须存在:
如果 agent 环境装了专用的执行链 skill(例如 superpowers:subagent-driven-development 或 superpowers:executing-plans),可以用,但不是必需的。