AGENT SKILL

实施计划生成

plan

根据 PRD、技术探索(tech spike)或功能规范生成实施计划,并保存到 context/plans/。用于规划工作、分解 PRD,或根据规范创建实施计划。

License 许可
MIT
所属仓库
drn/dots
最近更新
2026-11-12
Stars
★ 23
Forks
4

01 前言 Front Matter

name
plan
description
Generate an implementation plan from a PRD, tech spike, or feature spec and save it to context/plans/. Use for planning work, breaking down a PRD, or creating an implementation plan from a spec.

02 资源文件 1

03 SKILL.md 正文

Implementation Plan

Read a PRD, tech spike, or feature spec and produce a concrete implementation plan saved to context/plans/.

Arguments

  • $ARGUMENTS - Required: path to a PRD/spike/spec file, a URL, or inline description of what to plan

Context

  • Project type: !find . -maxdepth 1 \( -name go.mod -o -name Gemfile -o -name package.json -o -name Cargo.toml -o -name pyproject.toml -o -name CLAUDE.md -o -name AGENTS.md \) 2>/dev/null | head -10
  • Directory structure: !find . -maxdepth 2 -type d -not -path './.git/*' -not -path './node_modules/*' -not -path './vendor/*' 2>/dev/null | head -30
  • Recent commits: !git log --oneline -10 2>/dev/null | head -10
  • Prior plans: !find .context/plans -name "*.md" 2>/dev/null | head -10
  • Prior spikes: !find context/spikes -name "*.md" 2>/dev/null | head -10
  • Phase artifacts: !command ls -t .context/phases/*.md 2>/dev/null | head -10

Phase Protocol

This skill participates in a phase chain. Read ~/.claude/skills/_shared/resources/phase-protocol.md for the full protocol.

Before starting: Check .context/phases/ for prior artifacts:

  • If critique-*.md exists → read the latest critique. This is a second pass — incorporate the critique's concerns into a refined plan. Write output as plan-{ts}.md.
  • If no critique exists → this is a first pass (thinking/exploration). Write output as think-{ts}.md.

After completing Step 4: Write the phase artifact to .context/phases/:

mkdir -p .context/phases

Use the artifact format from the phase protocol. The Handoff section should include: key decisions, implementation phases, open questions, and risks — everything /dev needs to start building.

Instructions

Step 1: Ingest the source material

Parse $ARGUMENTS to locate the input:

  1. File path — Read the file directly.
  2. URL — Fetch the content.
  3. Inline text — Use the arguments as the spec.

IF $ARGUMENTS is empty or unclear, ask the user to provide a PRD, spike, or spec.

Extract from the source:

  • Goal: What is being built or changed?
  • Requirements: Functional and non-functional requirements, acceptance criteria.
  • Constraints: Technical constraints, dependencies, timeline signals.
  • Open questions: Anything unresolved in the source material.

Present a brief summary of what you understood and ask the user to confirm before proceeding.

Step 2: Explore the codebase

Investigate the current codebase to ground the plan in reality:

  1. Find relevant code — Search for files, modules, and patterns related to the requirements.
  2. Understand existing architecture — Read key files to understand conventions, patterns, and boundaries.
  3. Identify integration points — Where does the new work connect to existing code?
  4. Check for prior art — Look at prior plans and spikes in context/ for related work.

Step 3: Write the plan

Ensure context/plans/ directory exists (create if needed).

Save the plan to context/plans/<date>-<slug>.md where <date> is today in YYYY-MM-DD format and <slug> is a short kebab-case summary.

Use this format:

# Plan: <title>

**Date:** <YYYY-MM-DD>
**Source:** <path or URL to the PRD/spike/spec>
**Status:** Draft
**Current Phase:** Phase 1

## Goal

<1-2 sentence summary of what this plan achieves>

## Background

<current state, why this work is needed, link to source material>

## Requirements

### Must Have
- <requirement with acceptance criteria>

### Should Have
- <requirement>

### Won't Do (this iteration)
- <explicitly excluded scope>

## Technical Approach

<high-level strategy: what patterns to follow, key design decisions>

## Decisions

| Decision | Rationale |
|----------|-----------|
| <what was decided> | <why — constraints, trade-offs, alternatives rejected> |

## Implementation Steps

### Phase 1: <name>
**Status:** pending

- [ ] <task> — `path/to/file` — <what to do>
- [ ] <task> — `path/to/file` — <what to do>

### Phase 2: <name>
**Status:** pending

- [ ] <task> — `path/to/file` — <what to do>

### Phase 3: <name> (if needed)
**Status:** pending

- [ ] <task> — `path/to/file` — <what to do>

## Testing Strategy

- <what tests to write, what to verify>
- <edge cases to cover>

## Risks & Open Questions

| Risk | Mitigation |
|------|------------|
| <risk> | <how to handle> |

- <open question from source material>
- <open question discovered during exploration>

## Dependencies

- <external dependency or prerequisite>

## Errors Encountered

| Error | Attempt | Resolution |
|-------|---------|------------|

## Estimated Scope

**Phases:** <N>
**Tasks:** <N>
**Files touched:** <N>

Step 4: Report

Print the plan summary (goal, phases, task count) and the file path where the full plan was saved. Offer to:

  1. Print the full plan
  2. Start implementation (suggest /dev with the plan as input)

Updating Progress

The plan is the single source of truth for progress. Any agent or session can pick up where the last one left off.

Read before decide

At the start of each session, read the plan file. This refreshes goals and progress in your attention window. Check the Current Phase field and scan checkboxes to orient.

Update after act

After completing a task:

  1. Check off the task: - [ ] to - [x]
  2. When all tasks in a phase are done, update its **Status:** from pending to complete
  3. Update **Current Phase:** at the top to the next phase
  4. Log any decisions made to the Decisions table with rationale
  5. Log any errors hit to the Errors Encountered table — this prevents future sessions from repeating the same failures

04 同仓库更多 Skills

drn
drn/dots

batch-pr-review

Review a batch of pull requests together, describe every change in plain language, and build a private Claude artifact that eases human review, with a severity-tagged and verified findings list. Use when asked to review several PRs, a stack of PRs, PRs listed in a Slack thread or message, or to summarize a batch of PRs for a reviewer.

★ 23
drn
drn/dots

Codex 目标设置包生成

plannotator-setup-goal

为长时间运行的 /goal 工作创建经过审查的 Codex 目标设置包。当用户想把想法、待办清单、项目使命或模糊目标,转化为项目 goals slug 文件夹下的持久化目标文件时使用;包含 Plannotator 审查关卡,覆盖简报、带验收标准的叙述性计划、验证方案、阻碍项,以及最终的 /goal 提示词。

项目经理任务规划与分解
★ 23
drn
drn/dots

plannotator-annotate

Open Plannotator's annotation UI for a markdown file, converted HTML file, URL, or folder and then respond to the returned annotations.

★ 23
drn
drn/dots

Claude 技能编写

write-skill

创建或改进 Claude Code 技能/斜杠命令,遵循结构、动态上下文和安全性方面的最佳实践。用于创建新技能、改进现有技能,或学习技能编写。

AI 工程师插件与技能管理
★ 23
drn
drn/dots

会话收尾检查

wrapup

会话结束时的检查清单,用于检测遗漏事项——未提交的变更、未合并的分支、需记录的经验教训、需完成的交接——并路由到相应的技能。用于会话收尾、结束工作、一天结束,或“还有其他要记录的吗”。

软件开发工程师编码会话复盘
★ 23
drn
drn/dots

文本转语音朗读

tts

使用文本转语音(text-to-speech)大声朗读文本。当用户说“读给我听”“念给我听”“大声朗读这个”“说出这个”“朗读摘要”,或要求听到某内容被朗读时使用。

普通用户音频与语音处理
★ 23