一键导入
plan-create
Create new plan documents from templates. Use when starting new implementation work, documenting planned features, or organizing development tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create new plan documents from templates. Use when starting new implementation work, documenting planned features, or organizing development tasks.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate cross-reference graph showing relationships between design documents. Use when visualizing doc dependencies, finding related docs, or understanding documentation structure.
Validate design doc structure and frontmatter. Use when checking design docs for compliance, ensuring proper formatting, or verifying metadata before commits.
Comprehensive quality audit for CLAUDE.md context files. Use when performing thorough quality checks, preparing for releases, ensuring context efficiency, or verifying token optimization.
Style rules for LLM context files (CLAUDE.md, AGENTS.md and their .local variants). Fires automatically when these files are opened. Enforces on-demand loading patterns, proper @-reference syntax and lean context structure.
Split large CLAUDE.md into child files. Use when context files exceed word limits, are too verbose, or cover multiple distinct topics that should be separate.
Validate CLAUDE.md structure, formatting, and quality. Use when checking context files for compliance, ensuring proper structure, or verifying before commits.
| name | plan-create |
| description | Create new plan documents from templates. Use when starting new implementation work, documenting planned features, or organizing development tasks. |
| allowed-tools | Read, Write, Bash(mv *) |
| context | fork |
| agent | design-doc-agent |
Creates new plan documents from templates with proper frontmatter and structure.
This skill creates plan documents by:
templates/ (co-located with skill).claude/plans/Create basic plan:
/design-docs:plan-create "Cache Optimization Implementation"
Create plan with module:
/design-docs:plan-create "Cache Optimization" --module=effect-type-registry
Create plan with design doc link:
/design-docs:plan-create "Observability Phase 2" \
--module=effect-type-registry \
--implements=effect-type-registry/observability.md
Create refactoring plan:
/design-docs:plan-create "Refactor Type Loading" --type=refactor
title: Human-readable plan title [REQUIRED]--name: Plan file name (auto-generated from title if omitted)--type: Template type (feature, refactor, docs) [default: feature]--module: Module name (must exist in design.config.json)--implements: Design doc path(s) to link (comma-separated)--owner: Plan owner username--estimated-effort: Time estimate (e.g., "2-3 weeks")If --name not provided, convert title to kebab-case:
Ensure plan doesn't already exist:
.claude/plans/{name}.md.claude/plans/_archive/{name}.mdRead template from templates/ directory:
feature-plan.md - Feature implementation (default)refactor-plan.md - Refactoring or architectural changesdocs-plan.md - Documentation workCreate YAML frontmatter with:
Required Fields:
name: Kebab-case plan identifiertitle: Human-readable titlecreated: Current date (YYYY-MM-DD)updated: Current date (YYYY-MM-DD)status: "ready" (new plans start ready)progress: 0 (new plans have 0% progress)Optional Fields (if provided):
implements: Array of design doc pathsmodules: Array of module namesowner: Plan owner usernameestimated-effort: Time estimatecategories: Auto-set based on template typeAlways Null (for new plans):
started: nullcompleted: nullactual-effort: nulloutcome: nullarchived: nullarchival-reason: nullWrite to .claude/plans/{name}.md with:
Execute .claude/scripts/validate-plan.sh on created file:
Output creation results:
Success:
✓ Plan created: cache-optimization-implementation.md
Title: Cache Optimization Implementation
Type: feature
Module: effect-type-registry
Status: ready (0%)
Path: .claude/plans/cache-optimization-implementation.md
✓ Plan validation passed
Failure:
✗ Plan creation failed: cache-optimization-implementation
Error: Plan file already exists
Path: .claude/plans/cache-optimization-implementation.md
Suggestion: Use a different name or update the existing plan
# Simplest form - just a title
/design-docs:plan-create "My Feature Implementation"
Creates:
my-feature-implementationfeature (default)ready/design-docs:plan-create "Add Caching" --module=effect-type-registry
Links plan to module for organization and discovery.
/design-docs:plan-create "Implement Observability" \
--module=effect-type-registry \
--implements=effect-type-registry/observability.md
Creates bidirectional link:
implements field)/design-docs:plan-create "Phase 2: Advanced Features" \
--name=advanced-features-phase-2
Useful when title doesn't convert well to kebab-case.
/design-docs:plan-create "Refactor Type Loading System" --type=refactor
Uses refactor template with architecture focus.
/design-docs:plan-create "RSPress API Documentation" --type=docs
Uses docs template with writing phases.
/design-docs:plan-create "Cache Optimization" \
--module=effect-type-registry \
--implements=effect-type-registry/cache-optimization.md \
--owner=@spencerbeggs \
--estimated-effort="2-3 weeks"
.claude/design/design.config.jsontemplates/{type}-plan.md.claude/plans/{name}.md✗ Plan file already exists: {name}.md
Path: .claude/plans/{name}.md
Created: {date}
Options:
1. Use a different name: --name=different-name
2. Update the existing plan by editing its frontmatter directly
3. Archive old plan first: mv {path} {archive-path}
✗ Module not found: {module}
Available modules:
- effect-type-registry
- rspress-plugin-api-extractor
- design-doc-system
Fix: Use --module={valid-module} or omit --module flag
✗ Design doc not found: {path}
Searched: .claude/design/{path}
Fix: Verify design doc exists or omit --implements flag
✗ Invalid plan name: {name}
Plan names must be kebab-case: lowercase, hyphens only
Valid examples: my-feature, cache-optimization-v2
Fix: Use --name={valid-name} or let name auto-generate from title
✗ Template not found: {type}-plan.md
Available templates:
- feature-plan.md
- refactor-plan.md
- docs-plan.md
Fix: Use --type=feature|refactor|docs
✓ Plan created: {name}.md
✗ Plan validation failed
Errors (2):
✗ Missing required field: status
✗ progress: must be integer 0-100
The plan file was created but has validation errors.
Fix these errors before committing the plan.
See examples.md for detailed usage examples.
design-docs:plan-validate - Validate plan structuredesign-docs:plan-list - List all plansdesign-docs:design-init - Create design docs