swe-plan

swe-plan is a skill for Claude Code from SNIKO/agent-skills. It costs 37 tokens per session (1,465 once invoked), scanned A, original, MIT.

An optional planning step for large software changes that divides an approved specification into independently checkable delivery slices. A specification describes what the finished change must do.

In plain words
What is it for?
Use it to decide implementation order and verification boundaries after the design is approved, producing a plan for the later execution stage.
Why use it?
It helps coordinate work that spans multiple sessions, agents, migrations, backfills, or staged releases. Small, self-contained changes can skip this step.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to decide implementation order and verification boundaries after the design is approved, producing a plan for the later execution stage.

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

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 swe-plan

README.md
[![agentmods](https://agentmods.dev/badge/skills/sniko/agent-skills/swe-plan.svg)](https://agentmods.dev/skills/sniko/agent-skills/swe-plan)
Your own site
<a href="https://agentmods.dev/skills/sniko/agent-skills/swe-plan"><img src="https://agentmods.dev/badge/skills/sniko/agent-skills/swe-plan.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,465 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.00037 $0.01465
Opus 5 $0.00018 $0.00732
Sonnet 5 $0.00007 $0.00293
Haiku 4.5 $0.00004 $0.00146

Measured 7d ago against content hash 81fd196c0c82, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

swe-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 7d 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.

skills/swe-plan/SKILL.md · 105 lines

How it starts

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

Pipeline

swe-shapeswe-spec → [swe-plan] → [swe-worktree] → swe-executeswe-review, with swe-research available at any point.

Each stage runs in its own session: the user invokes one skill, reviews the artifact, clears the context, then invokes the next with the artifacts as input. Assume no memory of other stages beyond the files named below.

  • This stage: optional. Decide delivery order and verification boundaries. Most changes skip it.
  • Reads: spec.html (the approved design and contracts, written by swe-spec) and brief.md (the approved problem and acceptance criteria, written by swe-shape).
  • Writes: plan.md, or nothing when the spec is one coherent slice.
  • Next: the user runs swe-worktree or swe-execute. Do not invoke either.

Purpose

Decide delivery order and verification boundaries for complex execution. A plan coordinates specified work; it does not repeat design or narrate how to code it.

A plan is not a Markdown restatement of the spec. spec.html remains the contract, and swe-execute reads it whether or not a plan exists. The plan's only job is to say what is built in what order, how each step is verified, and which spec sections each step needs.

Inputs and Workspace

Read .swe/<change>/spec.html — the canonical contract, at whatever depth each section reached — using its table of contents to load only the sections that affect sequencing. Read brief.md when acceptance, dependencies, or risk require it, and the research reports either artifact links when they affect sequencing, feasibility, rollout, or an early risk-reduction slice. Infer the change directory only when unambiguous.

Write .swe/<change>/plan.md using plan.template.md. The plan is Markdown: it is a short list of slices consumed almost entirely by agents, with little to gain from rich rendering.

Workflow

  1. Decide whether to plan. Apply the planning threshold below — it is a gate, not a preference. If the spec is one coherent implementation slice, do not create plan.md; report that execution can proceed directly from the spec. Most changes end here.
  2. Identify delivery slices. Find the smallest set of completed, observable or independently risk-reducing outcomes. Prefer thin end-to-end slices over technical layers.
  3. Order by dependency and learning. Establish prerequisites, then prioritize early validation of expensive assumptions, integration risk, migration safety, and user-visible value.
  4. Preserve valid intermediate states. Every slice must leave the repository buildable, testable, and operationally safe under the specified compatibility strategy.
  5. Reference authoritative detail. Link each slice to the exact spec.html section ids it implements and the acceptance criteria it satisfies. Do not copy their contracts.
  6. Define verification. Give runnable repository commands and observable results for each slice, including rollback or operational checks only where relevant.
  7. Check plan size. If more than roughly eight slices are needed, recommend splitting the change or introducing explicit phases rather than producing a giant plan.
  8. Complete, skip, or stop. Finish with exactly one of the outcomes in Completion Criteria.

Read the full file on GitHub · 105 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 105 lines · 37 tokens per session scan A 81fd196c0c82

Subscribe to this mod's changes

swe-plan is a skill published in the GitHub repository SNIKO/agent-skills (2 stars, last pushed 15d ago), licensed MIT. It adds 37 tokens to every session and 1,465 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-31.

Related

Other skills, from other repositories

html-artifacts

Author the HTML for a plan artifact, dashboard iframe, or Slack attachment — structure, design plan, available runtime, theming, and craft. Read this before writing HTML for saveplan, outputiframe, or slackattachhtml.

langchain-ai/open-swe · 51 tokens

bootstrap-repo-analysis

First-time analysis of a repository with no prior reviewer outcomes. Crawl historical merged-PR review feedback with the gh CLI (plus any preloaded samples), extract the team's review norms, and synthesize the initial per-repo review-style prompt. Use this for a cold-start repo; use continual-learning instead once the…

langchain-ai/open-swe · 73 tokens

baby-sit

Monitor a GitHub pull request until CI is green, diagnose failures, and rerun only evidence-backed flaky GitHub Actions jobs.

langchain-ai/open-swe · 30 tokens

continual-learning

Nightly refinement of an existing per-repo review-style prompt using this reviewer's own finding outcomes. Read confirmed (resolved-by-commit / thumbs-up) and dismissed (thumbs-down) findings, promote the bug patterns the team actually fixes, demote the false-positive patterns, reconcile against the current prompt…

langchain-ai/open-swe · 89 tokens

oracle

Oracle second-model review: bundle prompts/files, debug, refactor, design.

steipete/oracle · 18 tokens

latent-potential

First-principles, team-of-experts assessment of a software project that surfaces latent potential; underexploited assets, a sharper north star, missing high-leverage capabilities, better framing and messaging. Produces a prioritized, evidence-grounded report with cheap probes, a reframe candidate, a stop-doing list…

petekp/claude-code-setup · 191 tokens