Skip to content
Back to skills

Plan

ASecurity

Create a detailed plan with exploration before execution

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 26, 2026
ai-agentsgotestingapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add lacerbi/dotclaude --skill plan --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plan?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Plan
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lacerbi-plan/badge)](https://www.skillsdirectory.com/skills/lacerbi-plan)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: plan
description: Create a detailed plan with exploration before execution
argument-hint: <task description>
---
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:
```markdown
# 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:
```markdown
# 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).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.