$npx -y skills add Banyango/scalpel --skill plan --agent claude-code
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Plan?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/banyango-plan)
---
name: plan
description: Gather all .plan files, evaluate them against the stated objective (if provided), and suggest missing plans — no implementation
disable-model-invocation: true
argument-hint: <describe the change>
---
# Scalpel Plan
Evaluate existing `.plan` files and identify gaps. This skill does not implement anything.
## Steps
### 1. Determine the Objective
Check whether `$ARGUMENTS` was provided.
| Arguments | Result |
|-----------|--------|
| provided | Arguments are the objective. Evaluate plans against them. |
| absent | No objective. Check existing plans for standards alignment only; skip alignment and gap detection. |
### 2. Load Project Standards
Look for standards and architecture documentation in this order and read every file found:
1. `AGENTS.md`
2. `CLAUDE.md`
3. `docs/ARCHITECTURE.md`, `docs/architecture.md`, or any file matching `docs/arch*`
These files define the project's conventions, patterns, and constraints. If none exist, note that no standards were
found and proceed without them.
Do not invent standards. Do not apply conventions from outside these files. Only enforce what is explicitly documented.
### 3. Gather and Normalize Plan Files
```bash
find . -name "*.plan" -not -path '*/.git/*' -not -path '*/node_modules/*' | sort
```
Read every plan file found. Before evaluating, normalize each one silently to the expected format:
**Expected format:** see `plan.template.md` in this skill's directory. Sections, in order:
| Section | Required | Purpose |
|---------|----------|---------|
| frontmatter `file`, `type`, `impact`, `step` | yes | target, kind of change, `low`/`medium`/`high`, reading order |
| `## Why` | yes | one sentence |
| `## Risks` | only when something can break | what breaks, what it depends on, what to watch |
| `## Steps` | yes | numbered, anchored steps |
| `## Done When` | yes | checkable outcomes |
**Normalization rules — apply automatically, no prompt:**
- If the frontmatter is missing entirely, infer `file` from the plan's own path (same directory, same base name, `.plan` removed) and set `type: modify`.
- If `file` is missing, infer it as above. If `type` is missing, set `type: modify`. If `impact` is missing, assess it (see step 4) and set it. If `step` is missing, assign it in step 6.
- Map legacy headings: `## Change`, `## Change Description`, `## Content` → `## Steps`; `## Summary` → `## Why`; `## Key Details` → `## Risks` (drop items that are not risks); `## Acceptance Criteria` → `## Done When`.
- If the body has no recognised headings, treat it as `## Steps`.
Write the normalized content back to the plan file before proceeding. Do not alter the meaning of the content — only fix the structure, and trim detail per the Clarity rules below.
### 4. Evaluate Plans
Review each plan against the objective (if available) and the project standards (if available):
- Whether the plan's described change is sufficient, incomplete, or misaligned with the objective
- Whether the approach in the plan violates any standard or architectural constraint from step 2 — cite the specific
rule when flagging a violation
- Whether any plans conflict with each other
Then look for the **larger problems** — the ones that are easy to miss when reading plans one file at a time:
- Public interfaces, signatures, schemas, or config whose consumers have no plan
- Behavior changes existing callers or users will notice
- Ordering dependencies between plans (A must land before B)
- Data, migration, concurrency, or security consequences
- Plans that together don't actually achieve the objective
Set each plan's `impact` from what you find: `high` if it breaks a contract, touches data, or other plans depend on it;
`medium` if behavior changes but is contained; `low` for mechanical or local changes. Record concrete findings in the
plan's `## Risks` section.
**Output**, in this order:
1. **Top risks** — at most 5 bullets across all plans, most serious first, each naming the plan(s) involved. Write
"None found" if there are none. This is the most important part of the output.
2. **Plans** — one line per plan, in `step` order (see step 6): `` <step>. `<file>` (<impact>) — <verdict> ``.
### 5. Suggest Missing Plans
If an objective is available or the standards are being violated, identify files that will likely need to change to fulfill the requirements or standards but have no corresponding
`.plan` file. Use the scoped objective (arguments) when present, the standards documents, or use the broader objective. For each gap, name
the file and briefly explain why a plan is needed there.
When suggesting what a missing plan should contain, only recommend approaches that are consistent with the standards
loaded in step 2. Do not invent patterns.
Create the missing plan files — list them so the user can see what was added.
### 6. Order Plans for Review
Changes have an order in which they are easiest to understand. Set the `step` frontmatter field on every plan
(including ones created in step 5) to a unique integer starting at `1`, so a reviewer reading plans in `step` order
follows the story of the change:
1. **Core change first** — the plan that carries the change's central behavior, usually the highest-impact plan. Lead
with what the reviewer most needs to think about, while their attention is fresh.
2. **Then follow the call path outward** — place each plan directly after the first plan that needs it. Types, schemas,
and config appear at the point they are used, not up front; callers and wiring follow the code they call.
3. **Mechanical plans last** — renames, imports, re-exports, formatting, docs.
4. **Tests** go after the code they cover, or with the mechanical plans if they only restate the implementation.
`step` is reading order only, not landing order. Record "must land before" dependencies in `## Risks` as
**Depends on:**. Break ties by putting the plan a reviewer needs as context earlier. Renumber all plans contiguously
whenever a plan is added or removed, and rewrite existing `step` values if they no longer reflect a logical order.
## Rules
- No implementation — do not modify any source files
- Never invent standards — only apply what is explicitly written in the standards files
- When citing a standard violation, quote or reference the specific rule from the source file
### Clarity
Clarity is the most important property of a plan. A reader should spot the risky part of a change in seconds.
- **Spend detail in proportion to risk.** The core change of a plan — the step a reviewer must actually think about —
gets a short code snippet and is marked **Core change**. Mechanical steps (renames, imports, docstrings, formatting)
get one line and no code.
- **Code snippets show only the delta.** Use `...` for unchanged code, and comment the line that changes (`# was: ...`).
Never paste full implementations.
- **Cut anything the implementer can work out alone:** restating the code, obvious edge cases, generic advice
("add error handling", "write clean code"), and anything already stated in the standards files.
- **Omit empty sections.** No `## Risks` section that says "none".
- **`## Done When` lists observable behavior**, not steps restated ("`parse()` handles a 2GB file in constant memory",
not "`parse()` was updated").
- A `low` impact plan should usually fit on one screen. If a plan is long, it is probably either too detailed or should
be split.
- Use Markdown code formatting for code, file paths, and filenames.
### Line anchors
- Start each numbered step that changes existing code with a line anchor into the plan's `file`: `[L<n>]` for one line, or `[L<start>-<end>]` for a range, e.g. `1. [L42-58] Update existing assertions in test_parse()`. Editors can parse the anchor to jump to that line.
- Read the target file to get the line numbers. Never guess them.
- Line numbers refer to the file as it is when the plan is written, not after earlier steps are applied.
- For an insertion, anchor to the line the new code goes after.
- Steps with no meaningful location (`type: add` files, new files, general notes) get no anchor.
- Keep naming the symbol (function, class, test) in the step text, so the step can still be found if the lines have shifted.
- When re-evaluating an existing plan, refresh any anchors that no longer point at the code the step describes.