agentleFS
lacerbilacerbi/dotclaude/skills/plan/SKILL.md

plan

Skill2 starsChanged 2 months agoMITView on GitHub

Create a detailed plan with exploration before execution

184 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use heartmula, webhook-subscriptions 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.
  • 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 9 projects that use this

  • Tommy-ywSkill

    webhook-subscriptions

    Create and manage webhook subscriptions for event-driven agent activation, or for direct push notifications (zero LLM cost). Use when the user wants external services to trigger agent runs OR push notifications to chats.

    Also in 5 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 5 projects that use this

  • john-data-chenSkill

    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 6 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 3 projects that use this

  • ibahgatSkill

    context-optimize

    Improve context efficiency and cache stability for long or complex sessions.

    Also in 3 projects that use this

  • +3 more from math-inc

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 167 edited versions we read keep these.

  • 10

    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:

    If unclear, use AskUserQuestion to clarify before proceeding.

    line 14
  2. Distinctive:

    Read/verify key files and materials identified — verify, don't assume

    line 46
  3. Distinctive:

    Before proposing a new document:

    line 52
  4. Distinctive:

    Check project conventions and existing authoritative docs, plans, source comments, tests, TODOs, and issues first.

    line 54
  5. Distinctive:

    Prefer updating an existing authoritative artifact when it can serve the same purpose.

    line 56
  6. Distinctive:

    Do not create a new artifact merely to restate the plan or record work performed.

    line 57
  7. Very specific:

    Create a plan file named PLAN-<task-slug>.md (e.g., PLAN-add-user-auth.md) in the project root, unless the user or project instructions …

    line 61
  8. Distinctive:

    If you are Fable, your usage is limited, so send normal implementation work to Opus sub-agents unless a task is so small that delegating it …

    line 65
  9. Distinctive:

    Every phase states its goal, context, constraints, ownership, governing decisions and acceptance checks.

    line 71
  10. Distinctive:

    Add sections as needed: Prerequisites, Risks, Rollback, Testing Strategy, etc.

    line 155
  11. Distinctive:

    Ask them to review and edit if needed, and wait for explicit confirmation.

    line 190

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

You are planning, not executing. Explore and analyze first; probing is part of that — run scripts, tests, or quick experiments where they resolve a real uncertainty about the task. Don't start on the task itself until the user confirms the plan.

Phase 1: Task Understanding

State your understanding of the task: $ARGUMENTS

If unclear, use AskUserQuestion to clarify before proceeding.

Assess complexity to calibrate planning depth:

  • Simple: Single-focus task, few components → lighter exploration, concise plan
  • Moderate: Multiple components or unknowns → targeted exploration, structured plan
  • Complex: Cross-cutting concerns, many dependencies → thorough exploration, detailed plan

Phase 2: Exploration

Explore the project to understand what exists and what the task involves. Scale exploration to task complexity.

For simple tasks: You may explore directly without subagents.

For moderate/complex tasks: Spawn Explore agents in parallel (Agent tool, subagent_type='Explore'), each focused on a relevant aspect:

  • Structure Explorer: Project organization, key components, how things connect
  • Prior Work Explorer: Existing similar work, patterns, or approaches to build on
  • Context Explorer: Related materials, dependencies, constraints
  • Domain Explorer: Subject matter, conventions, standards relevant to the task
  • Docs Explorer: Documentation (READMEs, guides, API docs, comments) — what exists in or adjacent to the task area, what will need updating, and what doesn't exist yet but should

(For code-heavy tasks: Architecture, Feature, Dependency, Test explorers may be more appropriate)

Choose exploration agents by Agent Selection in the global CLAUDE.md, and pass the model explicitly: Sonnet (model: sonnet) when the job is to find or identify something, Opus (model: opus) when the findings must be summarized well. Instruct them to:

  • Return hypotheses, not conclusions
  • Provide full file paths for relevant files
  • Identify locations, not deep analysis
  • Be thorough but efficient - scouts, not implementers

Phase 3: Synthesis

After exploration:

  1. Read/verify key files and materials identified — verify, don't assume
  2. Confirm or refute hypotheses
  3. Build a mental model of the current state and what the task requires
  4. Identify existing documentation that must be updated, and whether any new document has a distinct durable purpose
  5. Decide the execution shape — what you will do yourself, what to delegate and to which model (see Phase 4) — and record it per phase when writing the plan

Before proposing a new document:

  • Identify the durable audience or question it will serve and the information it will uniquely own.
  • Check project conventions and existing authoritative docs, plans, source comments, tests, TODOs, and issues first.
  • Prefer updating an existing authoritative artifact when it can serve the same purpose.
  • Do not create a new artifact merely to restate the plan or record work performed.

Phase 4: Plan Creation

Create a plan file named PLAN-<task-slug>.md (e.g., PLAN-add-user-auth.md) in the project root, unless the user or project instructions (CLAUDE.md, AGENTS.md) specify a different location. The task slug should be lowercase, hyphen-separated, and concise (3-5 words max).

Name each phase's executor, its model and role, chosen by Agent Selection in the global CLAUDE.md.

If you are Fable, your usage is limited, so send normal implementation work to Opus sub-agents unless a task is so small that delegating it costs more than doing it. Keep for yourself what needs frontier judgment — design, creative or scientific thinking, cross-cutting integration — but once you have worked out the design, Opus can implement it if the phase spells it out and its acceptance checks would catch an implementation mistake Opus wouldn't notice. The user can override the split.

Every phase states its goal, context, constraints, ownership, governing decisions and acceptance checks. Include concrete steps, file paths, commands and expected results where uncertainty, reproducibility or operational risk warrants them. Leave routine details to the executor's judgment and explain how to investigate evidence that contradicts a plan assumption. Seek input when that investigation requires a material change beyond the authorized scope.

The phase text is the durable core of a delegated brief; add current tree state, relevant conventions and return format at dispatch. Precision that matters belongs in the plan, not in a spawn-time brief: the plan is what gets reviewed in Phase 5 and what survives a crashed session.

Scale the plan to complexity:

For simple tasks:

# Plan: [Task Title]

## Goal
[What we're accomplishing]

## Approach
1. [Step]
2. [Step]
3. [Step]

## Documentation
- [ ] [Docs to update; a new doc only if it uniquely owns something — remove section if genuinely none]

## Verification
- [ ] [How to confirm success]

Simple plans should contain enough context and acceptance checks for their executor to execute or resume.

For moderate/complex tasks:

# Plan: [Task Title]

Created: [Date]
Status: PENDING APPROVAL

## Summary
[2-3 sentences on what will be accomplished]

## Scope
- **In scope**: [What will be done]
- **Out of scope**: [What won't be done]

## Phases

### Phase 1: [Name]
**Executor**: [Model and role, e.g. Fable (orchestrator) | Opus sub-agent | Astra via Codex]
**Goal**: [What this achieves]

**Work**:
- [Item] - [Details: files/components involved, constraints and acceptance criteria]
- [Item] - [Details]

**Steps** (where task-critical detail is needed):
1. [Concrete step: file, command, expected result]
2. [Step]

**Verification**:
- [ ] [How to verify]

### Phase 2: [Name]
[Same structure]

## Documentation
What existing documentation must be updated and, only when it has a distinct durable role, what new document must be created. For each new artifact, state what it uniquely owns and why an existing artifact cannot own it.
Include documentation as steps in the relevant phase above, or as a dedicated phase if substantial. Remove this section only if the task genuinely has no documentation impact.

## Decisions
Choices made while drafting that a reasonable person could have made differently and that would be
costly to reverse once executed. Write each one down as you make it — do not reconstruct this
section afterwards. Everything below that bar stays a plain statement in the plan.
- **[What was chosen]** — [why]. Rejected: [alternative] ([its appeal, and why it lost]).

## Open Questions
- [Unresolved questions for the user]

---
**Please review. Edit directly if needed, then confirm to proceed.**

Add sections as needed: Prerequisites, Risks, Rollback, Testing Strategy, etc. A simple plan that turns on one material choice should carry a Decisions section too.

Phase 5: Plan Review

Run /doublecheck on the plan file before presenting it — always, including for simple plans. Past instances judged it "not worth it" and shipped flawed plans; the review is cheap next to the execution it protects. A new plan file is untracked, so the diff /doublecheck injects is empty: pass the plan file's path as the argument, followed by the focus — completeness, correctness, feasibility, internal consistency, and whether each phase is precise enough for its stated executor. Fix any issues found.

Phase 6: User Confirmation

Present the plan in the conversation — do not make the user reconstruct it from the file. A plan reads as a series of settled statements, which hides the fact that choices were made at all; your job here is to expose the choices so approval means something. Scale this to complexity: a simple plan needs the summary plus anything genuinely open, and nothing more.

  1. Summarize the plan in plain language. Assume a technical reader who knows the project broadly but may not recall the details, or was never in them. Say what will change and why — not a phase-by-phase recital. Be direct; skip jargon unless a term genuinely carries meaning no plain phrasing does. Include the execution split — what you keep and what goes to sub-agents, with their selected models — so the user can override it.
  2. Present the decisions from the plan's Decisions section: what was chosen, why, and what was rejected along with its tradeoffs. Present the calls you made; skip the ones the user already made or settled with you in conversation — don't re-litigate their own choices back at them.
  3. Present the open questions. Give each enough context to be understood cold, the viable options with their tradeoffs, and your recommended default — so the user can accept the set as a whole or override just the ones they care about, rather than adjudicating every fork. Use AskUserQuestion for any that genuinely block.
  4. Share the doublecheck findings (and any fixes applied)
  5. Say where the plan file lives. If the SendUserFile tool is available (Remote Control or web sessions), also send it with display: 'render'.
  6. Ask them to review and edit if needed, and wait for explicit confirmation. Do not begin work until confirmed.

Phase 7: Execute

Execution is tracked with /task against the plan file. Once confirmed:

  1. Re-read the plan file — the user or the doublecheck may have edited it — and note any changes.
  2. Recommend where to execute. If planning left context light, continue in this session: the conversation holds rationale the file doesn't, which helps an orchestrator. If exploration and writing consumed substantial context, recommend a fresh session. Before recommending it, move into the plan any rationale that so far lives only in this conversation, and fill any gaps in context or task-critical detail the next executor would need, telling the user about any substantial change. The user decides.
  3. Invoke /task on the plan file here — or, for a fresh session, end with a fenced text block the user can paste verbatim as the new session's first message: the /task invocation on the plan file, plus the orientation files to read first (devlog, README, design notes — whatever helped you orient), skipping anything loaded automatically such as CLAUDE.md and the files it pulls in (e.g., AGENTS.md).

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.