Skip to content
Back to skills

Planner

ASecurity

Run only by the spec skill.

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 7, 2026
developmentgobashgit

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add p2p2sp/p2p2.claude --skill planner --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Planner?

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

Security grade badge for Planner
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/p2p2sp-planner/badge)](https://www.skillsdirectory.com/skills/p2p2sp-planner)

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: planner
description: Run only by the spec skill.
allowed-tools: Agent, AskUserQuestion, EnterPlanMode, ExitPlanMode, Bash(${CLAUDE_SKILL_DIR}/scripts/plan.sh:*)
---

# planner

Turn the spec at `$ARGUMENTS` into a checked, reviewed plan. Agents map the code, write the plan and review it; `plan.sh` checks and lands it. Never read the spec, a map, the draft, the plan or a review yourself, and never write plan text.

- `plan.sh` below is `"${CLAUDE_SKILL_DIR}/scripts/plan.sh"`: run each call as that one line, every argument double-quoted, nothing chained.
- Every dispatch is a new `Agent` call, never a `SendMessage` to an earlier agent: each starts on an empty context.
- `<draft>` is the path of the writer's last `DRAFT:` line, `<code-map>` and `<tests-map>` the paths of the mappers' `MAP:` lines: in plan mode an agent writes to a file of its own.

## 1. Map

1. Run `plan.sh paths "<spec>"`. Its `draft:`, `code-map:`, `tests-map:` and `review:` lines are the paths this run hands to its agents.
2. Dispatch `viber:plan-mapper` twice in one message: `spec: <spec>`, `lens: code`, `map: <the code-map: path>`, and `spec: <spec>`, `lens: tests`, `map: <the tests-map: path>`. Each returns `MAP: <path>`.
   - `paths` printed an `adr:` line: dispatch `viber:adr` in that same message with `spec: <spec>`, `out: <the adr: path>` and `stamp: <the stamp: value>`. Its return changes no step.
3. Run `plan.sh maps "<code-map>" "<tests-map>"`. On `CONFLICT:` lines ask the Conflict question with those lines, then on `OVER:` lines the Size question with those lines.

## 2. Draft

1. Dispatch `viber:plan-writer` with `spec: <spec>`, `code-map: <path>`, `tests-map: <path>`, `template: ${CLAUDE_SKILL_DIR}/references/plan-template.md` and `draft: <the draft: path, then the last DRAFT: path>`. It returns `DRAFT: <path>`.
2. Run `plan.sh check "<draft>" "<spec>" "<code-map>"` after every writer return, until it prints `PASS`.
   - `OPEN:` lines: put each to the user, then dispatch the writer with the same five lines plus `answers:` and one line per answer.
   - `FIX:` lines: dispatch the writer with the same five lines plus `fix:` and the script's output.
   - Third failed check in a row: show the user the lines and the draft path, and stop.
   - A `LARGE:` line under `PASS`: ask the Size question with that line, once per run.

## 3. Land and review

Plan mode starts here at the latest; its own workflow does not apply: explore nothing, write no plan text.

1. Call `EnterPlanMode` unless plan mode is already on. Its notice names the plan file, `<plan>`.
2. Run `plan.sh land "<draft>" "<spec>" "<code-map>" "<plan>"`. It prints `LANDED: <plan>` and `changed: <value>`.
   - The conversation names a GitHub issue (`#123`, a number or an issue link, never a pull request): add it as a fifth argument, on every landing.
   - `FIX:` or `OPEN:` lines: handle them as in step 2 of Draft, then land again.
   - The harness refuses the call: ask the Refused question, never write the plan yourself.
3. Dispatch `viber:plan-reviewer` with `plan: <plan>`, `spec: <spec>` and `report: <review>`; from the second review on add `changed: <value>`. It returns `VERDICT: PASS` or `VERDICT: FAIL`, and `REVIEW: <path>`.
   - `PASS`: call `ExitPlanMode`.
   - First `FAIL`: dispatch the writer with its five lines plus `review: <REVIEW path>`, land its draft, then review again.
   - Second `FAIL`, or a landing that prints `changed: none` after a `FAIL`: ask the Failed question. Never call `ExitPlanMode` on a `FAIL`.
4. A hook guards `ExitPlanMode`: on a refusal do the step its reason names. The user rejects the plan and asks for a change: dispatch the writer with its five lines plus `fix:` and the user's words, land its draft, review with `changed:`, then call `ExitPlanMode` again.

## Questions

Each through one `AskUserQuestion` call, every field in the conversation's language.

```
Conflict
header: "Spec"
question: "The code contradicts the spec: <the CONFLICT: lines>. Fix the spec, or plan it as written?"
options:
  - label: "Fix the spec"
    description: "Stop here, correct the spec at <spec>, plan again"
  - label: "Plan it as written"
    description: "Go on, the spec stands over the code"

Size
header: "Plan size"
question: "<the OVER: or LARGE: lines>. Split the spec, or plan it whole?"
options:
  - label: "Split the spec"
    description: "Stop here, cut the spec into smaller ones, plan each"
  - label: "Plan it whole"
    description: "Go on with one plan of this size"

Refused
header: "Plan"
question: "The harness refused to write the plan file: <the refusal>. Retry?"
options:
  - label: "Retry"
    description: "Run the same call again once it is allowed"
  - label: "Stop"
    description: "End here with no plan, the draft stays at <draft>"

Failed
header: "Review"
question: "The plan review still fails: <REVIEW path>. What next?"
options:
  - label: "Fix again"
    description: "One more fix by the writer, then one more review"
  - label: "Stop"
    description: "End here, the plan stays unapproved at <plan>"
```

- Fix the spec, Split the spec, or Stop: invoke nothing, end the turn.
- Fix again: repeat the first-`FAIL` step once.

Files in this skill

  • SKILL.md8.7 KB
  • fragments/adr.true.md222 B
  • fragments/branching-fix.allowed.md718 B
  • fragments/branching-fix.required.md771 B
  • fragments/branching-land.allowed.md353 B
  • fragments/branching-land.required.md353 B
  • fragments/branching.allowed.md2.1 KB
  • fragments/branching.required.md1.6 KB
  • fragments/qa-e2e.false.md106 B
  • fragments/qa-e2e.true.md49 B
  • references/adr-tasks.md3.3 KB
  • templates/spec-full.md2.7 KB
  • templates/spec-lite.md1.2 KB
  • templates/tasks.md1.3 KB

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 development →

Comments

Loading comments…

Newsletter

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