pre-plan

pre-plan is a skill for Claude Code from fprochazka/claude-code-plugins. It costs 22 tokens per session (1,901 once invoked), scanned A, original, MIT.

A context-gathering step before planning a software change. It reads a problem description or a ticket and explores the relevant project code, then produces a briefing for discussion.

In plain words
What is it for?
Use it to investigate a ticket, follow the documents and links it references, and collect the code context needed to discuss a solution.
Why use it?
It prevents plans from being based on incomplete information. It separates understanding the problem from deciding how to fix it or changing code.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; names the AskUserQuestion tool.

Part of the sdlc plugin — 8 skills shipped together

Good fit Use it to investigate a ticket, follow the documents and links it references, and collect the code context needed to discuss a solution.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fprochazka/claude-code-plugins/pre-plan
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fprochazka/claude-code-plugins --skill pre-plan
Clone the repo
git clone --depth 1 https://github.com/fprochazka/claude-code-plugins

Made for: Claude Code.

Or install sdlc, the plugin that ships this one along with the rest of its 8 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pre-plan

README.md
[![agentmods](https://agentmods.dev/badge/skills/fprochazka/claude-code-plugins/pre-plan/github.svg)](https://agentmods.dev/skills/fprochazka/claude-code-plugins/pre-plan)
Your own site
<a href="https://agentmods.dev/skills/fprochazka/claude-code-plugins/pre-plan"><img src="https://agentmods.dev/badge/skills/fprochazka/claude-code-plugins/pre-plan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pre-plan

Your own site · 80×15
<a href="https://agentmods.dev/skills/fprochazka/claude-code-plugins/pre-plan"><img src="https://agentmods.dev/badge/skills/fprochazka/claude-code-plugins/pre-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,901 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.01901
Opus 5.5 $0.00009 $0.00760
Sonnet 5.5 $0.00004 $0.00380
Haiku 4.5 $0.00002 $0.00190

Measured 11d ago against content hash 0acf32e307e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pre-plan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/sdlc/skills/pre-plan/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pre-Planning Context Gathering

Gather everything needed to discuss a solution with the user, so a plan can be written afterward and then implemented. You are NOT writing a plan in this command, and you are NOT implementing anything. The output is a context briefing for discussion.

Scope

$ARGUMENTS

Phase 1 — Decide the source

Inspect the Scope above:

  • Looks like a ticket ref — an ID, a tracker URL, a #number; teamwork:workflow-identify holds the project's real pattern: treat as ticket → run Phase 2.
  • Looks like a freeform problem description: skip Phase 2, use the description as the brief.
  • Empty: use the current conversation context. If it's unclear what we're gathering context for, ask the user before proceeding.

Phase 2 — Read the ticket (only if a ticket ref was given)

Delegate to ONE subagent. Goal: load the full ticket and everything it transitively references — the ticket's own content and the external systems it links to. This subagent never opens the codebase. Reading code is Phase 3 and Phase 4 work. A ticket subagent that greps a repository or reads source files has left its scope, and what it brings back from there is noise the later phases redo properly.

The subagent must:

  • Read title, description, and all comments.
  • Inspect references, attachments, labels, project, status, links — anything rich.
  • Follow links to related tickets, MRs/PRs, design docs, dashboards. Read an MR/PR through the forge CLI (glab, gh) — description, discussions, and the diff stat (which files changed, how much) — never the diff itself, and never a local checkout of the repository. Whether a diff is relevant is decided later, once the Phase 3 code map exists.
  • If the ticket links to chat threads (Slack or similar) and they aren't already mirrored into ticket comments, read those threads too.
  • Dump all findings into ./.claude/plans/pre-plan-<ticket-slug>-ticket.md (create the directory if missing) as a single markdown file. Include: full ticket content (title, description, all comments verbatim or near-verbatim where they carry real information), summarized linked context per link, a list of every concrete code/file/table/system reference that the ticket or its linked items mention — transcribed as written, not searched for, not verified against code — and a list of any unresolved questions or ambiguities spotted in the ticket.
  • Return ONLY the path to that file (plus a 2-3 sentence high-level gist). Do NOT inline the full dump into the subagent's reply — the orchestrator will read the file as needed.

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed · +4 lines 0acf32e307e6
  2. 25d ago Changed 2b7693e5a80d
  3. 1mo ago First seen · 87 lines · 22 tokens per session scan A d9049381f1e5

Subscribe to this mod's changes

pre-plan is a skill published in the GitHub repository fprochazka/claude-code-plugins (15 stars, last pushed 7d ago), licensed MIT. It adds 22 tokens to every session and 1,901 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-12.