agentleFS
justincordovajustincordova/agents/skills/plan/SKILL.md

plan

Skill1 starsChanged 4 months agoMITView on GitHub

Use only when the user explicitly requests an implementation plan or invokes /plan. Do not trigger merely because a design or spec exists or implementation is about to start.

184 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use context-optimize, codex-system and 10 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.
  • SireJeffSkill

    context-optimize

    Context Optimization - Orchestrate RPI workflow TODO generation with interactive scoping

    Also in 4 projects that use this

  • gaebalaiSkill

    codex-system

    PROACTIVELY consult Codex CLI, your highly capable supporter with exceptional reasoning and task completion abilities. Codex is a trusted expert you should ALWAYS consult BEFORE making decisions on: design choices, implementation approaches, debugging strategies, refactoring plans, or any non-trivial problem. When uncertain, consult Codex. Don't hesitate - Codex provides better analysis. Explicit triggers: "think deeper", "analyze", "second opinion", "consult codex".

    Also in 4 projects that use this

  • gaebalaiSkill

    design-tracker

    PROACTIVELY track and document project design decisions without being asked. Activate automatically when detecting architecture discussions, implementation decisions, pattern choices, library selections, or any technical decisions. Also use when user explicitly says "記録して", "設計どうなってる", "record this". Do NOT wait for user to ask - record important decisions immediately.

    Also in 4 projects that use this

  • math-incSkill

    heartmula

    Set up and run HeartMuLa, the open-source music generation model family (Suno-like). Generates full songs from lyrics + tags with multilingual support.

    Also in 10 projects that use this

  • math-incSkill

    minecraft-modpack-server

    Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.

    Also in 6 projects that use this

  • aboylabsSkill

    touchdesigner-mcp

    Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.

    Also in 7 projects that use this

  • +3 more from gaebalai
  • +2 more from math-inc

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 9 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 170 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create a detailed implementation plan from the spec.

    line 10
  2. Distinctive:

    Do not invoke it automatically after design approval, from another skill, or just because work spans multiple files.

    line 20
  3. Very specific:

    If the approved design already specifies the approach, boundaries, and verification, execute it directly with the execute skill.

    line 21
  4. Distinctive:

    If execution reveals a consequential gap, ask the specific unresolved question.

    line 22
  5. Distinctive:

    If the user's instructions are ambiguous or imply design decisions, stop and ask whether brainstorm is needed before continuing.

    line 50
  6. Distinctive:

    Only introduce phases when there are real stage gates — points where one group of work must be complete before another can start.

    line 90
  7. Distinctive:

    Do NOT use phases just to organize tasks into groups.

    line 111
  8. Distinctive:

    Before presenting the plan to the user, walk through this checklist.

    line 162
  9. Distinctive:

    If any item fails and you can't fix it from context, stop and ask the user rather than guessing.

    line 173
  10. Distinctive:

    If executing: use the execute skill.

    line 179

“Common” is measured: kept by at least 6 in 10 of the 170 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

Writing Plans

Overview

Create a detailed implementation plan from the spec. The plan must be specific enough that an executing agent can implement it without making architectural or design decisions. Include file paths, code shapes, patterns to follow, and exact test expectations.

Announce at start: "Using plan skill to create the implementation plan."

Save plans to: docs/plans/<feature-name>-plan.md

When to Use This Skill

This skill is opt-in: use it only when the user explicitly requests an implementation plan or invokes /plan. A request to implement an approved design is not a request to plan.

  • Do not invoke it automatically after design approval, from another skill, or just because work spans multiple files.
  • If the approved design already specifies the approach, boundaries, and verification, execute it directly with the execute skill. Do not duplicate it in docs/plans/.
  • If execution reveals a consequential gap, ask the specific unresolved question. Do not turn that gap into an unsolicited planning document.

Philosophy

The plan is a handoff document. It's written after brainstorming, then executed by any agent. The executing agent should be able to follow the plan without guessing about architecture, file locations, or implementation approach. Be specific and detailed.

Inputs: Three Starting Modes

The plan skill handles three starting situations. Detect which applies, then follow the matching input list.

Mode A: Design doc exists (post-brainstorm)

Used only after an explicit planning request when a design doc exists. Design approval alone does not trigger this mode.

  1. docs/designs/<feature-name>.md — the approved design. Primary input.
  2. docs/SPEC.md — for patterns, conventions, constraints.
  3. Other files in docs/designs/ — check for in-flight features that SPEC.md doesn't reflect yet. Avoid conflicts with their design decisions.
  4. Relevant code — files the plan will touch.

Mode B: No design doc (small iteration)

Used when the user skipped brainstorm because the work is mechanical or obvious. The user has described what they want directly in chat.

  1. The user's instructions in the current conversation — this is the design.
  2. docs/SPEC.md — for patterns, conventions, constraints.
  3. docs/designs/ — check for in-flight features that SPEC.md doesn't reflect yet.
  4. Relevant code — files the plan will touch.

If the user's instructions are ambiguous or imply design decisions, stop and ask whether brainstorm is needed before continuing.

Mode C: Greenfield first feature

Used when the spec skill just created an initial SPEC.md and you're planning the first feature. No design doc exists because SPEC.md is the design.

  1. docs/SPEC.md — primary input, recently created by spec skill.
  2. Relevant code — usually minimal; this is a new project.

Plan Size: Scale to the Work

Match plan weight to task weight. Defaulting to a full plan for every task is token waste.

  • Lightweight plan (3-10 lines) — use when: Mode B, single file touched, one obvious task, no dependencies. Write one task with What + How + Verify. Skip Why when there's no ordering to justify.
  • Standard plan — most features in Mode A. Multiple tasks, each with What/Why/How/Verify.
  • Phased plan — cross-cutting work with real stage gates (see "When to Use Phases").

Plan Document Structure

# [Feature Name] Plan

> **Goal:** [One sentence — what are we building]
> **Spec:** [Link or path to docs/SPEC.md]

## Task 1: [What to build]
- **What:** [Description of the deliverable]
- **Why:** [Why this comes first — dependencies or logical ordering]
- **How:** [Detailed approach — files to create/modify, code shapes, patterns to follow, imports to use]
- **Verify:** [How to know it works — specific commands, expected test outcomes]

## Task 2: [What to build]
- **What:** ...
- **Why:** ...
- **How:** ...
- **Verify:** ...

When to Use Phases

Only introduce phases when there are real stage gates — points where one group of work must be complete before another can start. Examples:

  • Backend API must exist before frontend can integrate
  • Database schema must be migrated before ORM models can be built
  • Shared library must be published before consumers can use it
## Phase 1: Backend API

**Gate:** API endpoints deployed and tested

### Task 1: ...
### Task 2: ...

## Phase 2: Frontend Integration

**Depends on:** Phase 1

### Task 3: ...

Do NOT use phases just to organize tasks into groups. If tasks are sequential but have no hard dependencies between groups, keep the list flat.

Task Granularity

Each task should be a meaningful unit of work (30 min to 2 hours), not a micro-step.

Good tasks:

  • "Build the user model and database migration"
  • "Create the authentication API endpoints"
  • "Build the dashboard UI component"
  • "Write integration tests for the checkout flow"

Bad tasks (too granular):

  • "Write a failing test for the user model"
  • "Run the test to verify it fails"
  • "Write the user model code"
  • "Run the test to verify it passes"

Writing Good Plans

What each task needs:

  • What — clear description of the deliverable
  • Why — why this order matters (dependencies)
  • How — detailed approach including:
    • Files to create or modify (with paths)
    • Code shapes — interfaces, function signatures, data structures
    • Patterns to follow from existing code (with file references)
    • Dependencies and imports
    • Any constraints from the spec
  • Verify — how to confirm it works (specific commands, expected output)

What TO include:

  • File paths where code should live
  • Interface/type definitions and function signatures
  • References to existing patterns ("follow the pattern in src/auth/")
  • Key decisions or constraints from the spec ("use Redis for caching, not in-memory")
  • Integration points ("this API must match the contract in docs/api.md")
  • Things to watch out for ("the legacy schema uses snake_case, our new code uses camelCase")
  • Exact commands for verification

What NOT to include:

  • Vague instructions ("make it work", "add tests")
  • Decisions that should have been made during brainstorming/spec
  • Narrative or prose — just give the tasks, the spec already has the why
  • Repeating spec content — don't copy-paste architecture or decisions, just reference the spec
  • Edge case exploration — list those in the spec, the plan just handles them in tasks
  • Multiple approaches — that's brainstorming. The plan has ONE approach, the decided one
  • Open questions — resolve them before writing the plan

Self-Review Before Handoff

Before presenting the plan to the user, walk through this checklist. Fix anything that fails.

  • Every task has all four fields — What, Why, How, Verify
  • Every task references a file path — no "add a module somewhere"
  • Every task is verifiable — "run X, expect Y" not "make sure it works"
  • No open questions remain — unresolved decisions belong in brainstorm, not the plan
  • No multiple-approach language — the plan has ONE approach, the decided one
  • Dependencies are explicit — if Task 3 needs Task 1's output, say so in "Why"
  • Spec references, not spec duplication — link to docs/SPEC.md instead of copying
  • Phases only if there's a real stage gate — otherwise flat list

If any item fails and you can't fix it from context, stop and ask the user rather than guessing.

Execution Handoff

"Plan saved to docs/plans/<filename>.md. Want me to start executing, or would you like to review first?"

If executing: use the execute skill.

SPEC.md updates happen later, on-demand, via sync-docs. The design doc stays in docs/designs/ until then — it's the source of truth for the current feature while work is in progress.

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.