spectre-plan-route

spectre-plan-route is a skill for Claude Code from joenandez/spectre. It costs 38 tokens per session (861 once invoked), scanned A, original, MIT.

An internal classifier that chooses a planning route for a software change. It uses information about the codebase, uncertainty, risks, and protected parts of the system.

In plain words
What is it for?
Use it only as part of the planning workflow to classify work as atomic, direct, or structured and report related risks.
Why use it?
It helps the planning process choose an appropriate level of detail and identify when more investigation is needed.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it only as part of the planning workflow to classify work as atomic, direct, or structured and report related risks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joenandez/spectre/spectre-plan-route
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 joenandez/spectre --skill spectre-plan-route
Clone the repo
git clone --depth 1 https://github.com/joenandez/spectre

Made for: Claude Code.

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 spectre-plan-route

README.md
[![agentmods](https://agentmods.dev/badge/skills/joenandez/spectre/spectre-plan-route/github.svg)](https://agentmods.dev/skills/joenandez/spectre/spectre-plan-route)
Your own site
<a href="https://agentmods.dev/skills/joenandez/spectre/spectre-plan-route"><img src="https://agentmods.dev/badge/skills/joenandez/spectre/spectre-plan-route/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 spectre-plan-route

Your own site · 80×15
<a href="https://agentmods.dev/skills/joenandez/spectre/spectre-plan-route"><img src="https://agentmods.dev/badge/skills/joenandez/spectre/spectre-plan-route.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 861 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00038 $0.00861
Opus 5 $0.00019 $0.00430
Sonnet 5 $0.00008 $0.00172
Haiku 4.5 $0.00004 $0.00086

Measured 2d ago against content hash 01746a0c98d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

spectre-plan-route 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 2d 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/spectre-codex/skills/spectre-plan-route/SKILL.md · 59 lines

How it starts

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

plan-route

Purpose

Return a deterministic plan-routing/v1 decision to spectre-plan or spectre-execute. Classify only; the caller owns workflow authority.

Inputs

  • Immutable canonical Scope or explicit selected source authority + bounded repository observations; observations describe work, not size.
  • Mode initial, or observed with the prior decision + plan Routing Observations.
  • Execute caller mode for a selected source when no valid transported assessment exists or material observations invalidate it.
  • Resume-only legacy size is validated and normalized once.

Working Set

  • Plan or Execute supplies one bounded scan: implementation topology, uncertainty, evidence, protected boundaries, graph risk, shipped precedent, and user-owned decisions.
  • If missing evidence alone would cross a costlier route, use exactly one bounded probe (@spectre_finder/@spectre_patterns) for one repository question.

Outputs + DONE

Return schema plan-routing/v1; shape ATOMIC|DIRECT|STRUCTURED; uncertainty LOW|MODERATE|HIGH; evidence SUFFICIENT|PROBE_REQUIRED|PROBED; protected_boundaries[] {type, threatened_invariant, failure_mode}; task_graph_risk LOW|HIGH; design flag; size; route; rationale. Observed also returns regret, reason codes, and KEEP|RERUN_SMALLER|RERUN_LARGER.

DONE when fields validate; any probe is consumed; STRUCTURED names workstreams; HIGH graph risk names an implementation-graph failure; and only the table derives size/route.

Method / guardrails

Semantic result Size · route
ATOMIC + LOW + no changed protected boundary XS · XS_DIRECT
ATOMIC + LOW + changed protected boundary OR DIRECT + LOW S · S_DIRECT
ATOMIC/DIRECT + MODERATE/HIGH M · M_REVIEWED_DIRECT
STRUCTURED + LOW/MODERATE + ordinary graph risk L · L_STRUCTURED
STRUCTURED + HIGH uncertainty or HIGH task-graph risk XL · XL_REVIEWED_STRUCTURED
  • STRUCTURED requires multiple independently implementable workstreams; render variants of one surface (layout, density, breakpoint, theme), dependencies, supporting artifacts, workflow/acceptance steps, and pilots are not workstreams.
  • Two shipped instances of a change-shape make the next DIRECT; its layers are not workstreams; STRUCTURED requires a named delta beyond repetition.
  • HIGH graph risk requires a credible implementation ordering/coordination/rollback failure; workflow gates/state transitions do not qualify.
  • A protected boundary needs a concrete invariant + credible failure mode; it floors size at S but never creates structure or HIGH graph risk.
  • Honor confirmed Scope assumptions and explicit selected-source boundaries. Missing paths/evidence permit at most the one probe; when Scope mandates an abstraction, spend it on whether it ships; classify the real delta. Only unresolved, approach-changing uncertainty affects size.
  • Design authority requires an unresolved product, compatibility, destructive, migration/rollback, or architecture choice outside implementation discretion; size and routine placement never create it.
  • Observed reports regret and KEEP|RERUN_SMALLER|RERUN_LARGER; never repeats work or removes artifacts.
  • Normalize legacy reads once: MICRO→XS, LIGHT→S, STANDARD-DIRECT→M, STANDARD→L, COMPREHENSIVE→XL; legacy labels never decide.
  • Never use file volume, dependency count, surface counts, or sensitive-domain keywords as size authority, and never let them create workstreams. Never plan, write artifacts, emit telemetry, or present gates.

Read the full file on GitHub · 59 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. 2d ago Changed 01746a0c98d5
  2. 5d ago Changed · +1 lines · +3 tokens per session e753bad18d39
  3. 12d ago First seen · 58 lines · 35 tokens per session scan A ca9fc90b6ec7

Subscribe to this mod's changes

spectre-plan-route is a skill published in the GitHub repository joenandez/spectre (161 stars, last pushed 3d ago), licensed MIT. It adds 38 tokens to every session and 861 once invoked, about $0.0002 per session on Opus 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-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens