AgentSkillsCN

plan

在启动新功能或重大变更时,可借助 Codex 的专业建议制定实施计划。触发条件包括:“/plan”“规划这件事”“制定计划”“实施计划”。

SKILL.md
--- frontmatter
name: plan
description: |
  Create implementation plan with Codex consultation. Use when starting
  new features or significant changes. Triggers: "/plan", "plan this",
  "create a plan", "implementation plan".
metadata:
  short-description: Implementation planning with Codex

Plan Skill - Implementation Planning

Create comprehensive implementation plans with Codex consultation.

Workflow

  1. Gather Context

    • Explore codebase for related code
    • Understand existing patterns
    • Identify dependencies
  2. Consult Codex for Design

    code
    Task(subagent_type="general-purpose", prompt="""
    Consult Codex for implementation plan:
    
    codex exec --model o3 --sandbox read-only --full-auto "
    Plan implementation for: {feature}
    
    Context:
    - Existing codebase structure: {structure}
    - Related files: {files}
    - Requirements: {requirements}
    
    Provide:
    1. High-level approach
    2. Key components to create/modify
    3. Potential challenges
    4. Recommended order of implementation
    "
    
    Return concise plan summary.
    """)
    
  3. Create Task List

    • Break down into actionable tasks
    • Set dependencies
    • Estimate scope (not time)
  4. Review with User

    • Present plan
    • Gather feedback
    • Adjust as needed

Output Format

markdown
## Implementation Plan: {feature}

### Overview
{Brief description of approach}

### Components
1. {Component 1} - {what it does}
2. {Component 2} - {what it does}

### Tasks
- [ ] Task 1
- [ ] Task 2 (depends on Task 1)
- [ ] Task 3

### Considerations
- {Risk or consideration 1}
- {Risk or consideration 2}

### Codex Recommendation
{Summary of Codex's advice}

When to Use

  • Starting new features
  • Significant refactoring
  • Architecture changes
  • Complex bug fixes

Example Usage

User: "/plan Add user authentication"

Response:

  1. Explore existing auth-related code
  2. Consult Codex for auth design
  3. Create task breakdown
  4. Present plan for approval