AgentSkillsCN

planning

为新功能、设计任务及架构决策提供支持。在“理解→研究→设计→交接”各阶段中,构建起结构化的流程体系。

SKILL.md
--- frontmatter
name: planning
description: Load for new features, design tasks, and architecture decisions. Provides structured workflow for UNDERSTAND → RESEARCH → DESIGN → HANDOFF phases.

Planning

Merged Skills

  • requirements: Clarifying scope, boundaries, acceptance criteria
  • architecture: High-level design decisions, component structure

⚠️ Critical Gotchas

CategoryPatternSolution
Premature codeImplementing without designCreate blueprint FIRST in .project/
External firstSearching web before localCheck docs/ + codebase BEFORE external
Scope creepExpanding beyond boundariesDefine scope in blueprint, stick to it
ComplexityUnderestimating 6+ file changesComplex tasks MUST use planning phase
HandoffNo clear transition to BUILDEnd planning with task list + skill annotations

Rules

RulePattern
Blueprint firstCreate .project/{feature}.md before any code
Local researchgrep docs/ + codebase before external search
Scope boundariesDefine what's IN and OUT in blueprint
Task decompositionBreak into <3 file tasks where possible
Skill annotationTag tasks with [skill-name] for BUILD phase

Avoid

❌ Bad✅ Good
Start coding immediatelyCreate blueprint first
Research externally firstCheck local docs/ first
Undefined scopeExplicit IN/OUT boundaries
Monolithic tasksDecomposed to <3 files each
Untracked design changesUpdate blueprint as design evolves

Patterns

markdown
# Blueprint: {Feature Name}

## Scope
- **Goal:** One sentence describing outcome
- **IN:** What this feature includes
- **OUT:** What this feature excludes
- **Files:** Estimated file count and locations

## Design
- **Approach:** High-level solution strategy
- **Components:** Key parts and their responsibilities
- **Dependencies:** External services, libraries, other features

## Tasks
1. [ ] Task description [backend-api]
2. [ ] Task description [frontend-react]
3. [ ] Task description [testing]

## Research Notes
- {Finding 1}
- {Finding 2}

Workflow

PhaseActionOutput
UNDERSTANDClarify requirements, ask questionsClear scope statement
RESEARCHLocal first, then externalResearch notes in blueprint
DESIGNCreate blueprint with approach.project/{feature}.md
HANDOFFTransition to BUILD phaseTask list with skills

Commands

TaskCommand
Create blueprinttouch .project/{feature}.md
Find existing patternsgrep -r "pattern" docs/ backend/ frontend/
Check similar featuresls .project/