agentleFS
stephen-tataristephen-tatari/claude-skills/create-plan/SKILL.md

create-plan

Skill0 starsChanged 10 months agoMITView on GitHub

Create implementation plan documents in ai_docs/plans/ following decision record schema. Generates YYYY-MM-DD-<feature>.md with phases, alternatives, and success criteria. Use before starting significant feature work.

48 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use support-ticket-triage, codebase-migrate and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ComposioHQSkill

    support-ticket-triage

    Triage customer support tickets/emails/chats into categories, priority, and next action; draft responses and create reproducible steps; use for Zendesk/Intercom/Help Scout exports or pasted threads.

    Also in 5 projects that use this

  • ComposioHQSkill

    codebase-migrate

    Run large codebase migrations and multi-file refactors. Uses the Composio CLI to coordinate issue tracking, batched PRs, and CI verification while the agent executes the transforms locally across hundreds of files.

    Also in 5 projects that use this

  • corticalstackSkill

    iterate-plan

    Revise an existing implementation plan in flow/plans/ based on feedback, researching when needed. Explicit-only; run only when invoked via /iterate-plan or explicitly asked.

    Also in 4 projects that use this

  • petestewartSkill

    datadog-logs

    Query Datadog logs via the Logs Search API v2. Use when the user asks to "check the logs", "search logs", "find errors in Datadog", "look up logs for", "show me production logs", "check for errors", "search Datadog", or any request involving log search, error investigation, or production debugging that requires Datadog log data.

    Also in 3 projects that use this

  • +7 more from ComposioHQ

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. 0 are common, 11 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 46 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create structured implementation plan documents in ai_docs/plans/ following the Decision Records with AI Assistance schema.

    line 19
  2. Distinctive:

    Before starting significant feature work

    line 31
  3. Distinctive:

    When planning multi-phase implementations

    line 32
  4. Distinctive:

    When you need to document alternatives considered

    line 33
  5. Distinctive:

    When work requires human review before proceeding

    line 34
  6. Very specific:

    Repo-level config: Read $REPO_ROOT/AGENTS.md and $REPO_ROOT/CLAUDE.md (if they exist)

    line 62
  7. Very specific:

    Parent directory config: Read $REPO_ROOT/../AGENTS.md and $REPO_ROOT/../CLAUDE.md (if they exist) — this covers workspace-level pointers …

    line 63
  8. Distinctive:

    System context: Check any CLAUDE.md content already loaded in conversation context (system-reminder blocks)

    line 64
  9. Very specific:

    Verify the directory exists and contains a plans/ subdirectory

    line 76
  10. Very specific:

    Check if $REPO_ROOT/ai_docs/plans/ exists or is configured locally

    line 81
  11. Very specific:

    If so, set PLANS_DIR to ai_docs/plans/ and run /init-ai-docs if needed

    line 82
  12. Distinctive:

    Ask the user for:

    line 90
  13. Distinctive:

    Read all referenced files completely: - Don't skim, read in full

    line 101
  14. Distinctive:

    Find 3 similar patterns: - Use parallel sub-agents to locate existing implementations that mirror what you're building

    line 102
  15. Very specific:

    Use Task tool with subagent_type: Explore to search in parallel (preferred) or sequential Glob/Grep if Task unavailable:

    line 107
  16. Distinctive:

    Remove special characters except hyphens

    line 128
  17. Distinctive:

    Before finalizing the plan, verify:

    line 302
  18. Distinctive:

    After creating the plan, remind the user with mode-appropriate messaging:

    line 318
  19. Very specific:

    If the plan involves a significant architectural decision, consider also running /create-research to document the ADR separately.

    line 374

“Common” is measured: kept by at least 6 in 10 of the 46 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Create Implementation Plan

Create structured implementation plan documents in ai_docs/plans/ following the Decision Records with AI Assistance schema.

Announce at start: "I'm using the create-plan skill to create an implementation plan."

CRITICAL: The deliverable of this skill is a MARKDOWN FILE written to disk using the Write tool. Always resolve the output path first (Step 2), then write the complete plan to that path (Step 6). If the output path is ambiguous, ask the user to confirm it before proceeding. Do NOT present the plan inline as conversation output — it MUST be written to a file.

When to Use

  • Before starting significant feature work
  • When planning multi-phase implementations
  • When you need to document alternatives considered
  • When work requires human review before proceeding

Process

Step 1: Initialize Directory Structure

Invoke the init-ai-docs skill to ensure the directory structure exists:

/init-ai-docs

This is idempotent and safe to run even if structure already exists.

Fallback if skill unavailable:

mkdir -p ai_docs/plans ai_docs/research ai_docs/handoffs

Step 2: Detect Output Location

REPO_ROOT=$(git rev-parse --show-toplevel)

Determine where plans are stored by checking multiple sources in order. Stop as soon as a valid path is found:

  1. Repo-level config: Read $REPO_ROOT/AGENTS.md and $REPO_ROOT/CLAUDE.md (if they exist)
  2. Parent directory config: Read $REPO_ROOT/../AGENTS.md and $REPO_ROOT/../CLAUDE.md (if they exist) — this covers workspace-level pointers like ~/code/work/CLAUDE.md
  3. System context: Check any CLAUDE.md content already loaded in conversation context (system-reminder blocks)

What to search for (not just a "Decision Records" heading):

  • Paths containing ai-docs (e.g., ai-docs-sre/, ../ai-docs/plans/)
  • Phrases like "central documentation repository", "centralized at", "central repo"
  • Explicit paths ending in /plans/
  • References to a shared docs directory used across repos

Once a candidate path is found:

  • Resolve it to an absolute path relative to $REPO_ROOT
  • Verify the directory exists and contains a plans/ subdirectory
  • Set PLANS_DIR to that plans/ path

If no central repo is detected:

  • Check if $REPO_ROOT/ai_docs/plans/ exists or is configured locally
  • If so, set PLANS_DIR to ai_docs/plans/ and run /init-ai-docs if needed

If no output location can be determined:

  • Ask the user where plans should be stored — do NOT silently default to ai_docs/plans/

Step 3: Gather Context

Ask the user for:

  1. Feature name: Brief, descriptive name (will become filename)
  2. Overview: What does this plan achieve?
  3. Constraints: Technical or business constraints
  4. Alternatives: What options were considered?

Step 4: Research Phase

Before writing the plan, gather context systematically:

  1. Read all referenced files completely - Don't skim, read in full
  2. Find 3 similar patterns - Use parallel sub-agents to locate existing implementations that mirror what you're building
  3. Identify conventions - Note testing patterns, file organization, naming conventions

Research approach:

Use Task tool with subagent_type: Explore to search in parallel (preferred) or sequential Glob/Grep if Task unavailable:

Search GoalParallel (Task tool)Sequential (fallback)
Similar featuresTask(Explore): "Find implementations of [feature type]"Grep for key terms, then Read matches
Test templatesTask(Explore): "Find tests for [similar feature]"Glob for **/test* patterns
Helper utilitiesTask(Explore): "Find utility functions for [domain]"Grep for common function names

No open questions rule: Research or ask the user before writing. The plan document must be complete - questions are allowed during context gathering (Step 2), but not left unresolved in the final document.

Step 5: Generate Filename

DATE=$(date +%Y-%m-%d)
FILENAME="${PLANS_DIR}/${DATE}-<feature-name>.md"

Kebab-case conversion rules (apply manually - no external tools needed):

  1. Convert to lowercase
  2. Replace spaces with hyphens
  3. Remove special characters except hyphens
  4. Collapse multiple hyphens to single hyphen
InputOutput
"OAuth2 Implementation"oauth2-implementation
"Add User Auth"add-user-auth
"Fix Bug #123"fix-bug-123

Naming convention:

  • YYYY-MM-DD-<topic>.md (default)
  • YYYY-MM-DD-<project>-<topic>.md (recommended when project-specific in a central repo)

Example: ai_docs/plans/2026-02-02-oauth2-implementation.md

Step 5b: Gather Git Metadata

REPO_ROOT=$(git rev-parse --show-toplevel)
GIT_COMMIT=$(git rev-parse --short HEAD)
GIT_BRANCH=$(git branch --show-current)
GIT_REPO=$(basename "$REPO_ROOT")

Step 6: Write the Plan Document

Use this template:

<!-- Keep in sync: templates also appear in init-ai-docs, init-central-docs, and create-*/SKILL.md -->
---
schema_version: 1
date: [YYYY-MM-DD]
type: plan
status: draft
topic: "[Feature Name] Implementation Plan"

# Accountability
author: [git-user]              # Human owner (run: git config user.name)
ai_assisted: true
ai_model:                                # optional: which model

# Linking
related_prs: []
related_issue:
superseded_by:                           # Link to replacement doc if superseded

# Project
project:                                 # Logical project/service name
repo:                                    # GitHub org/repo
# repos: []                             # Uncomment for cross-repo docs

# Git Context
git_commit: [short-sha]
branch: [branch name]
repository: [repo name]

# Classification
tags: [relevant, tags]
data_sensitivity: internal
---

# Plan: [Feature Name]

## Desired End State

[Describe what success looks like. What will exist when this is done? How will users/developers interact with it?]

## Overview

[1-2 paragraph summary of what this plan achieves]

## What We're NOT Doing

- [Explicitly list out-of-scope items to prevent scope creep]
- [Things that might seem related but are excluded]
- [Future enhancements deferred to later]

## Assumptions

- [Assumption 1]
- [Assumption 2]

## Constraints

- [Constraint 1]
- [Constraint 2]

## Alternatives Considered

### Option A: [Name]

**Pros:** [benefits]
**Cons:** [drawbacks]

### Option B: [Name]

**Pros:** [benefits]
**Cons:** [drawbacks]

**Decision:** [Which option and why]

## Implementation Phases

### Phase 1: [Name]

**Goal:** [What this phase achieves]

**Tasks:**

Each task is ONE action (2-5 minutes):

- [ ] **Step 1:** Write failing test for [specific behavior]
  - File: `tests/path/to/test.py`
  - Run: `pytest tests/path/test.py::test_name -v`
  - Expected: FAIL with "[specific error]"

- [ ] **Step 2:** Verify test fails correctly
  - Run the test command above
  - Confirm failure message matches expected

- [ ] **Step 3:** Write minimal implementation
  - File: `src/path/to/file.py:45-67`
  - Add: [specific code or description]

- [ ] **Step 4:** Verify test passes
  - Run: `pytest tests/path/test.py::test_name -v`
  - Expected: PASS

- [ ] **Step 5:** Commit
  - `git add <files> && git commit -m "feat: add specific feature"`

#### Success Criteria

**Automated Verification:**

- [ ] Tests pass: `pytest tests/path/ -v`
- [ ] Lint passes: `make lint` or project equivalent

**Manual Verification:**

- [ ] [Description of manual check]
- [ ] [Another manual verification step]

### Phase 2: [Name]

**Goal:** [What this phase achieves]

**Tasks:**

- [ ] **Step 1:** [action with file:line reference]
- [ ] **Step 2:** [action]
- [ ] ...

#### Success Criteria

**Automated Verification:**

- [ ] [command to run]

**Manual Verification:**

- [ ] [manual check description]

## Critical Files

- `path/to/file.ext:line-range` - Description of relevance
- `tests/path/to/test.ext` - Test file to mirror
- `path/to/similar/impl.ext:50-75` - Similar pattern to follow

Step 7: Quality Checklist

Before finalizing the plan, verify:

  • No open questions - All ambiguities resolved through research or asking
  • Desired end state is clearly described
  • Out-of-scope items are explicitly listed
  • Assumptions are explicitly listed
  • Alternatives were considered with pros/cons
  • Each task is one action (2-5 minutes, single verb)
  • File:line references included for all code changes
  • Success criteria split into automated vs manual
  • TDD cycle explicit in task steps (test → verify fail → impl → verify pass → commit)
  • No secrets or sensitive data included
  • 3 similar patterns identified and referenced in Critical Files

Step 8: Remind About Review and Offer Execution

After creating the plan, remind the user with mode-appropriate messaging:

Local mode:

Plan created at: ai_docs/plans/YYYY-MM-DD-feature-name.md

IMPORTANT: Commit this plan so it merges with your branch:
git add ai_docs/plans/YYYY-MM-DD-feature-name.md && git commit -m "docs: add plan for feature-name"

NOTE: Human accountability is provided through PR review. Ensure the plan
is reviewed as part of the normal PR process before merging.
Update `related_prs` when the implementing PR is created.

Central mode:

Plan created at: $PLANS_DIR/YYYY-MM-DD-feature-name.md

Commit directly to the docs repo — no PR required for documentation.
Reference this plan from the implementing code PR.
Update `related_prs` when the implementing PR is created.

Then offer execution options:

## Execution Options

Once reviewed, choose an implementation approach:

**1. Subagent-Driven (this session)** - requires Task tool
- Dispatch fresh subagent per task
- Review between tasks
- Fast iteration with code review checkpoints

**2. Parallel Session (separate)** - requires `executing-plans` skill
- Open new session with executing-plans skill
- Batch execution with checkpoints
- Good for longer implementations

**3. Manual Execution (always available)**
- Work through phases sequentially in current session
- Follow TDD cycle for each task
- Commit after each phase passes verification

Which approach would you prefer?

STOP: Wait for the user to choose an execution option before proceeding. This skill's scope ends here — implementation is a separate step. Do NOT auto-select an option or begin implementation.

Related Skills

If the plan involves a significant architectural decision, consider also running /create-research to document the ADR separately.

Cross-Referencing

Reference other decision records depending on mode:

Local mode — use @ai_docs/ prefix:

Based on constraints in @ai_docs/research/2026-01-10-auth-options.md

Central mode — use relative sibling paths:

Based on constraints in ../<ai-docs-repo>/research/2026-01-10-auth-options.md

Both syntaxes are grep-able and parseable by AI agents.

Task Granularity Guide

Each step is ONE action (2-5 minutes):

Good (one action)Bad (multiple actions)
Write the failing testWrite tests and implement
Run test to verify it failsTest and fix
Write minimal implementationImplement feature
Run test to verify it passesMake it work
CommitFinish phase

TDD cycle in tasks:

Step 1: Write failing test
Step 2: Run test to verify it fails
Step 3: Write minimal implementation
Step 4: Run test to verify it passes
Step 5: Commit

Repeat for each behavior/feature within the phase.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.