Before you write code for multi-step features, this generates a detailed implementation plan that assumes whoever executes it knows nothing about your codebase. It breaks work into tiny TDD steps with actual code snippets, exact file paths, and specific test commands. Each task includes the literal code to write, not placeholders like "add appropriate error handling." The plan lives in a markdown file with checkboxes to track progress, and you can either execute it yourself with executing-plans or hand each task to a fresh subagent. It's opinionated about small focused files and frequent commits. The self-check process at the end forces you to verify every spec requirement maps to a task and that there are no hand-wavy TODOs left behind.

skills.sh installs
1.1K
GitHub stars
8.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add jnmetacode/superpowers-zh --skill writing-plans --agent claude-code

Installs into .claude/skills of the current project.

Files

编写计划

概述

为一位没见过这个代码库、也没见过这份规格的工程师编写实现计划。假设他们一旦知道确切的接口和确切的测试,就能用项目所用的语言写出地道的代码;也假设在计划留出选择余地的地方,他们会做出合理的选择。他们无从知道的,是你已经决定了什么:哪些文件、哪些名字和签名、规格里的哪些取值、哪些测试证明每个任务。把这些记下来。将整个计划拆成小步骤任务。DRY。YAGNI。TDD。频繁 commit。

开始时宣布: "我正在使用 writing-plans 技能创建实现计划。"

上下文: 此技能应在专用 worktree 中运行(由 brainstorming 技能创建)。

计划保存位置: docs/superpowers/plans/YYYY-MM-DD-<feature-name>.md

  • (用户对计划位置的偏好优先于此默认值)

范围检查

如果规格涵盖了多个独立子系统,它应该在头脑风暴阶段就被拆分为子项目规格。如果没有,建议将其拆分为独立的计划——每个子系统一个。每个计划应该能独立产出可工作、可测试的软件。

文件结构

在定义任务之前,先列出将要创建或修改的文件以及每个文件的职责。这是锁定分解决策的地方。

  • 设计边界清晰、接口定义良好的单元。每个文件应有一个明确的职责。
  • 你对能一次放入上下文的代码推理得最好,文件越专注你的编辑越可靠。优先选择小而专注的文件,而非承担过多功能的大文件。
  • 一起变更的文件应放在一起。按职责拆分,而非按技术层级拆分。
  • 在现有代码库中,遵循已有模式。如果代码库使用大文件,不要单方面重构——但如果你正在修改的文件已经变得难以管理,在计划中包含拆分是合理的。

此结构决定了任务分解。每个任务应产出独立的、有意义的变更。

任务粒度定界

一个任务是能独立承载自己那一轮测试循环、且值得一个全新审查者把关的最小单元。划任务边界时:把搭建、配置、脚手架和文档这些步骤,折进那个真正需要它们的交付物所在的任务里;只在「审查者有可能否掉这个任务、同时批准它旁边那个」的地方才拆开。每个任务都以一个可独立测试的交付物结束。

步骤粒度

每步是一个操作,并有一个可检查的结果:

  • "编写失败的测试" - 一步
  • "运行它确认失败" - 一步
  • "实现最少代码让测试通过" - 一步
  • "运行测试确认通过" - 一步
  • "Commit" - 一步

计划文档头部

每个计划必须以此头部开始:

# [功能名称] 实现计划

Sponsors

Details

Repository
github.com/jnmetacode/superpowers-zh
Category
Documentation
First seen
Jun 3, 2026

More from jnmetacode/superpowers-zh

All 20
1inference-sh avatarcase-study-writinginference-sh/skillsB2B case study writing with STAR framework, data visualization, and research. Covers structure, customer quotes, metrics presentation, and distribution formats.1.1Kskills.sh installs
2poemswe avataracademic-writingpoemswe/co-researcherYou must use this when producing any research prose — literature reviews, syntheses, analyses, methodology descriptions, discussion sections, abstracts, or any 1Kskills.sh installs
3ar9av avatarwiki-importar9av/obsidian-wikiImport a wiki knowledge graph into the current vault — either from a graph.json export file (stubs) or from an OKF (Open Knowledge Format) markdown bundle (full1Kskills.sh installs
4inference-sh avatarpress-release-writinginference-sh/skillsPress release writing in AP style with inverted pyramid structure. Covers formatting, datelines, quotes, boilerplates, and fact-checking. Use for: product launc1Kskills.sh installs
5davila7 avatarquality-documentation-managerdavila7/claude-code-templatesSenior Quality Documentation Manager for comprehensive documentation control and regulatory document review. Provides document management system design, change 971skills.sh installs
6zechenzhangagi avatarml-paper-writingzechenzhangagi/ai-research-skillsml paper writing922skills.sh installs