Create plan

From atomicinnovation/accelerator · View interactive version

Create plan is an AI agent skill from the GitHub repository atomicinnovation/accelerator. Create detailed implementation plans through interactive, iterative collaboration. Use when the user needs to plan a feature, refactoring, or task.

How to use this skill

Skill file

Implementation Plan

!accelerator config context --skill create-plan --fail-safe

!accelerator config agents --fail-safe

If no "Agent Names" section appears above, use these defaults:

accelerator:reviewer, accelerator:codebase-locator,

accelerator:codebase-analyser, accelerator:codebase-pattern-finder,

accelerator:documents-locator, accelerator:documents-analyser,

accelerator:web-search-researcher.

Plans directory: !accelerator config path plans --fail-safe

Work items directory: !accelerator config path work --fail-safe

You are tasked with creating detailed implementation plans through an

interactive, iterative process. You should be skeptical, thorough, and work

collaboratively with the user to produce high-quality technical specifications.

Initial Response

When this command is invoked:

  1. Check if parameters were provided:

default message

  1. If no parameters provided, respond with:
I'll help you create a detailed implementation plan. Let me start by understanding what we're building.

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

I'll analyze this information and work with you to create a comprehensive plan.

Tip: You can also invoke this command with a work item file directly: `/create-plan @meta/work/eng-1234.md` (where the work items directory is shown above)
For deeper analysis, try: `/create-plan think deeply about @meta/work/eng-1234.md`

Then wait for the user's input.

Process Steps

Step 1: Context Gathering & Initial Analysis

  1. Read all mentioned files immediately and FULLY:

entire files

the main context

  1. Spawn initial research tasks to gather context:

Before asking the user any questions, use specialized agents to research in

parallel:

work item or task

implementation works

documents about this feature

These agents will:

  1. Read all files identified by research tasks:
  1. Analyze and verify understanding:
  1. Present informed understanding and focused questions:

```

Based on the work item and my research of the codebase, I understand we need to [accurate summary].

I've found that:

Questions that my research couldn't answer:

```

Only ask questions that you genuinely cannot answer through code

investigation.

Step 2: Research & Discovery

After getting initial clarifications:

  1. If the user corrects any misunderstanding:
  1. Create a research todo list using TodoWrite to track exploration tasks
  1. Spawn parallel sub-tasks for comprehensive research:

For deeper investigation:

handle [specific component]")

how [system] works")

For historical context:

area

documents

Each agent knows how to:

  1. Wait for ALL sub-tasks to complete before proceeding
  1. Present findings and design options:

```

Based on my research, here's what I found:

Current State:

Design Options:

1. [Option A] - [pros/cons]

2. [Option B] - [pros/cons]

Open Questions:

Which approach aligns best with your vision?

```

Step 3: Plan Structure Development

Once aligned on approach:

  1. Create initial plan outline:

```

Here's my proposed plan structure:

## Overview

[1-2 sentence summary]

## Implementation Phases:

1. [Phase name] - [what it accomplishes]

2. [Phase name] - [what it accomplishes]

3. [Phase name] - [what it accomplishes]

Does this phasing make sense? Should I adjust the order or granularity?

```

  1. Get feedback on structure before writing details

Step 4: Detailed Plan Writing

After structure approval:

  1. Write the plan to

!accelerator config path plans --fail-safe``/YYYY-MM-DD-ENG-XXXX-description.md

  1. Use this template structure:

!accelerator config template plan --fail-safe

Step 5: Populate frontmatter

Before writing the plan file, capture metadata and substitute the

unified base fields into the template's frontmatter block:

  1. Invoke accelerator corpus metadata derive

to obtain Current Date/Time (UTC):, Current Revision:, and

Repository Name:.

  1. Substitute every field below with the indicated value:

.md), always quoted as a YAML string

(config → VCS user → prompt)

Fill in this form when invoked with a work item argument; otherwise

omit the key entirely (do not carry an empty placeholder).

Optional linkage/lifecycle keys are omit-by-default: the

template shows each as ""/[], but write a key into the artifact

only when it has a value, and omit it entirely otherwise (do not

carry the empty placeholder through). By default a new plan draft

names none of them.

("work-item:NNNN"). Fill when the plan is owned by a work item;

otherwise omit the key.

(["plan:NNNN", ...]). Fill when blocking edges are explicit;

otherwise omit the key.

one. Prefer writing the canonical blocks: on the other side; emit

blocked_by: only when the canonical side cannot be written, and

omit it otherwise.

was informed by (["codebase-research:NNNN", ...]). Fill when the

plan derives from research; otherwise omit the key.

Fill when relationships are explicit; otherwise omit the key.

to fill; omit the key on a fresh draft until the plan is reviewed.

  1. Write the file with the substituted frontmatter block.

Validate the frontmatter: after writing, run `corpus frontmatter

validate` over the plan you just wrote:

accelerator corpus frontmatter validate --file <path>

If it exits non-zero, the plan document violates the canonical frontmatter

standard; report the emitted violation and fix the frontmatter before

completing.

Step 6: Sync and Review

  1. Present the draft plan location:

```

I've created the initial implementation plan at:

{configured plans directory}/YYYY-MM-DD-ENG-XXXX-description.md

Please review it and let me know:

```

  1. Iterate based on feedback - be ready to:
  1. Continue refining until the user is satisfied

Important Guidelines

  1. Be Skeptical:
  1. Be Interactive:
  1. Be Thorough:
  1. Be Practical:
  1. Track Progress:
  1. No Open Questions in Final Plan:

Success Criteria Guidelines

Always separate success criteria into two categories:

  1. Automated Verification (can be run by execution agents):
  1. Manual Verification (requires human testing):

Format example:

### Success Criteria:

#### Automated Verification:

- [ ] Database migration runs successfully: `make migrate`
- [ ] All unit tests pass: `go test ./...`
- [ ] No linting errors: `golangci-lint run`
- [ ] API endpoint returns 200: `curl localhost:8080/api/new-endpoint`

#### Manual Verification:

- [ ] New feature appears correctly in the UI
- [ ] Performance is acceptable with 1000+ items
- [ ] Error messages are user-friendly
- [ ] Feature works correctly on mobile devices

Common Patterns

For Database Changes:

For New Features:

For Refactoring:

Sub-task Spawning Best Practices

When spawning research sub-tasks:

  1. Spawn multiple tasks in parallel for efficiency
  2. Each task should be focused on a specific area
  3. Provide detailed instructions including:
  1. Be EXTREMELY specific about directories:
  1. Specify read-only tools to use
  2. Request specific file:line references in responses
  3. Wait for all tasks to complete before synthesizing
  4. Verify sub-task results:

Example of spawning multiple tasks:

# Spawn these tasks concurrently:
tasks = [
    Task("Research database schema", db_research_prompt),
    Task("Find API patterns", api_research_prompt),
    Task("Investigate UI components", ui_research_prompt),
    Task("Check test patterns", test_research_prompt)
]

Example Interaction Flow

User: /create-plan
Assistant: I'll help you create a detailed implementation plan...

User: We need to add parent-child tracking for Claude sub-tasks. See {work_dir}/eng-1478.md
Assistant: Let me read that work item file completely first...

[Reads file fully]

Based on the work item, I understand we need to track parent-child relationships for events in the webhook daemon. Before I start planning, I have some questions...

[Interactive process continues...]

!accelerator config instructions create-plan --fail-safe

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.