AgentSkillsCN

plan

重述需求、评估风险,并制定分步实施计划。在触碰任何代码之前,请务必等待用户的确认。

SKILL.md
--- frontmatter
name: plan
description: Restate requirements, assess risks, and create step-by-step implementation plan. WAIT for user CONFIRM before touching any code.

Plan Command

This skill invokes the planner agent to create a comprehensive implementation plan before writing any code.

What This Skill Does

  1. Restate Requirements - Clarify what needs to be built
  2. Identify Risks - Surface potential issues and blockers
  3. Create Step Plan - Break down implementation into phases
  4. Wait for Confirmation - MUST receive user approval before proceeding

When to Use

Use /plan when:

  • Starting a new feature
  • Making significant architectural changes
  • Working on complex refactoring
  • Multiple files/components will be affected
  • Requirements are unclear or ambiguous

How It Works

The planner agent will:

  1. Analyze the request and restate requirements in clear terms
  2. Break down into phases with specific, actionable steps
  3. Identify dependencies between components
  4. Assess risks and potential blockers
  5. Estimate complexity (High/Medium/Low)
  6. Present the plan and WAIT for your explicit confirmation

Example Output

markdown
# Implementation Plan: Real-Time Notifications

## Requirements Restatement
- Send notifications when markets resolve
- Support multiple channels (in-app, email, webhook)
- Ensure reliable delivery

## Implementation Phases

### Phase 1: Database Schema
- Add notifications table
- Add user_notification_preferences table
- Create indexes for performance

### Phase 2: Notification Service
- Create notification service
- Implement notification queue
- Add retry logic

## Risks
- HIGH: Email deliverability
- MEDIUM: Performance with many users
- LOW: Real-time subscription overhead

## Estimated Complexity: MEDIUM

**WAITING FOR CONFIRMATION**: Proceed with this plan? (yes/no/modify)

Important Notes

CRITICAL: The planner agent will NOT write any code until you explicitly confirm the plan with "yes" or "proceed".

If you want changes, respond with:

  • "modify: [your changes]"
  • "different approach: [alternative]"
  • "skip phase 2 and do phase 3 first"

Integration with Other Commands

After planning:

  • Use /tdd to implement with test-driven development
  • Use /build-fix if build errors occur
  • Use /code-review to review completed implementation