スキル一覧に戻る
SPURSGO

writing-plans

by SPURSGO

Other Chinese translations of awesome skills

0🍴 0📅 2026年1月20日
GitHubで見るManusで実行

SKILL.md


name: writing-plans description: 当你有多步骤任务的规范或要求时使用,在接触代码之前

编写计划

概述

编写全面的实施计划,假设工程师对我们的代码库零上下文且品味可疑。记录他们需要知道的一切:每个任务要接触哪些文件、代码、测试、他们可能需要检查的文档、如何测试它。将整个计划作为细粒度任务提供。DRY。YAGNI。TDD。频繁提交。

假设他们是熟练的开发人员,但几乎不知道我们的工具集或问题域。假设他们不太了解良好的测试设计。

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

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

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

细粒度任务粒度

每个步骤是一个操作(2-5 分钟):

  • "编写失败测试" - 步骤
  • "运行它以确保它失败" - 步骤
  • "实施使测试通过的最小代码" - 步骤
  • "运行测试并确保它们通过" - 步骤
  • "提交" - 步骤

计划文档标题

每个计划必须以此标题开始:

# [Feature Name] Implementation Plan

> **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task.

**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

def function(input):
    return expected

Step 4: Run test to verify it passes

Run: pytest tests/path/test.py::test_name -v Expected: PASS

Step 5: Commit

git add tests/path/test.py src/path/file.py
git commit -m "feat: add specific feature"

## 记住
- 始终使用确切文件路径
- 计划中的完整代码(不是"添加验证")
- 带有预期输出的确切命令
- 使用 @ 语法引用相关技能
- DRY、YAGNI、TDD、频繁提交

## 执行交接

保存计划后,提供执行选择:

**"计划完成并保存到 `docs/plans/<filename>.md`。两个执行选项:**

**1. 子代理驱动(此会话)** - 我为每个任务调度新子代理,任务之间审查,快速迭代

**2. 并行会话(单独)** - 使用 executing-plans 打开新会话,批量执行并设置检查点

**哪种方法?"**

**如果选择子代理驱动:**
- **必需子技能:** 使用 superpowers:subagent-driven-development
- 保持在此会话
- 每个任务使用新子代理 + 代码审查

**如果选择并行会话:**
- 指导他们在 worktree 中打开新会话
- **必需子技能:** 新会话使用 superpowers:executing-plans

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です