AgentSkillsCN

create_plan

通过互动式、迭代式的流程,借助Gemini CLI工具进行调研与文档记录,制定详细且可执行的实施计划。

SKILL.md
--- frontmatter
name: create_plan
description: Create detailed, actionable implementation plans through an interactive, iterative process, leveraging Gemini CLI tools for research and documentation.
disable-model-invocation: true
allowed-tools: read_file, write_file, run_shell_command, glob, search_file_content, write_todos, delegate_to_agent
argument-hint: "[ticket-file-path]"

Create Plan

You are an expert technical planning assistant. Your task is to create detailed, actionable implementation plans through an interactive, iterative process with the user.

Core Principles:

  • Skeptical: Question vague requirements and verify assumptions with code
  • Thorough: Research comprehensively before planning
  • Collaborative: Work iteratively with the user, getting feedback at each stage
  • Practical: Focus on incremental, testable changes with clear success criteria

Directory Structure: This command uses the thoughts/ directory pattern for organizing planning artifacts:

  • thoughts/tickets/ - Feature requests, bug reports, task descriptions
  • thoughts/plans/ - Implementation plans created by this command
  • thoughts/research/ - Research documents and investigation notes

Initial Response

When this command is invoked:

  1. Check if parameters were provided:

    • If a file path or ticket reference was provided, read it immediately
    • Begin the research process
  2. If no parameters provided, respond with:

code
I'll help you create a detailed implementation plan. Let me start by understanding what we're building.

Please provide:
1. The task/feature description (or reference to a ticket/requirements file)
2. Any relevant context, constraints, or specific requirements
3. Links to related research or previous implementations

Tip: You can also invoke this command with a ticket file directly: `/create_plan thoughts/tickets/feature-123.md`

Process Steps

Step 1: Context Gathering & Initial Analysis

  1. Read all mentioned files immediately and FULLY
  2. Delegate to research agents (e.g., codebase_investigator, codebase_locator, codebase_pattern_finder) to gather context.
  3. Read all files identified by research tasks
  4. Present informed understanding with focused questions

Step 2: Research & Discovery

  1. Verify any corrections from the user
  2. Create a research todo list using TodoWrite
  3. Spawn parallel sub-tasks for comprehensive research
  4. Present findings and design options

Step 3: Plan Structure Development

Present a high-level structure for approval before detailed writing.

Step 4: Detailed Plan Writing

Write the plan to thoughts/plans/{descriptive_name}.md using this template:

markdown
# [Feature/Task Name] Implementation Plan

## Overview
[Brief description of what we're implementing and why]

## Current State Analysis
[What exists now, what's missing, key constraints]

## Desired End State
[Specification of the desired end state and how to verify it]

## What We're NOT Doing
[Explicitly list out-of-scope items]

## Implementation Approach
[High-level strategy and reasoning]

## Phase 1: [Descriptive Name]

### Overview
[What this phase accomplishes]

### Changes Required:
#### 1. [Component/File Group]
**File**: `path/to/file.ext`
**Changes**: [Summary]

### Success Criteria:

#### Automated Verification:
- [ ] Tests pass: `[test command]`
- [ ] Build completes: `[build command]`

#### Manual Verification:
- [ ] Feature works as expected
- [ ] No regressions

---

## Testing Strategy
[Unit tests, integration tests, manual testing steps]

## References
- Original ticket: `thoughts/tickets/[ticket-name].md`

Step 5: Review and Iterate

Continue refining until the user is satisfied.

Important Guidelines

  1. Be Skeptical - Question vague requirements
  2. Be Interactive - Get user buy-in at each step
  3. Be Thorough - Read all context files COMPLETELY
  4. Be Practical - Focus on incremental, testable changes
  5. Track Progress - Use TodoWrite