AgentSkillsCN

writing-plans

将经批准的规格转化为循序渐进、小而精的实施任务,并辅以验证步骤。每一项任务均严格遵循TDD原则。

SKILL.md
--- frontmatter
name: writing-plans
description: Transforms approved specifications into sequenced, bite-sized implementation tasks with verification steps. Every task follows TDD.

Writing Plans

When This Skill Activates

  • An approved specification exists (from brainstorming)
  • User says "let's plan this" or "break this down"
  • User approves a spec and is ready to implement
  • The /plan command is invoked

Prerequisites

  • An approved spec MUST exist. If not, activate the brainstorming skill first.

Process

Step 1: Analyze the Spec

Read the approved spec carefully. Identify:

  • All components that need to be built
  • Dependencies between components (what must come first)
  • Existing code patterns to follow
  • Test infrastructure (test runner, conventions, locations)

Step 2: Generate the Plan

Use the plan-writer subagent via Task tool:

code
Task tool → subagent_type: plan-writer

Provide it with the approved spec and repo path.

Step 3: Review the Plan

Before showing to user, verify:

  • Tasks are ordered correctly (dependencies respected)
  • Every implementation task has a preceding test task (TDD)
  • Verification commands are real and will work
  • No task is too large (> 5 minutes of work)
  • The final task is always a full verification pass

Step 4: Present for Approval

Show the plan task-by-task. For each task, show:

  • What will be done
  • Which files are affected
  • How it will be verified

Ask: "Ready to execute this plan? Want to adjust anything?"

Step 5: Save the Plan

Save to .factory/docs/plans/[feature-name].md.

Output

An approved, numbered task list ready for subagent-driven-development.