generate-plan-for-spec

generate-plan-for-spec is a command for Claude Code from bacchus-labs/wrangler. It costs 11 tokens per session (587 once invoked), scanned A, original, MIT.

A command that turns a software specification into a sequence of smaller implementation issues.

In plain words
What is it for?
Use it to read a Markdown specification, identify its work units, and create linked issues with dependencies and acceptance criteria.
Why use it?
It makes a large piece of work easier to assign and complete by separating it into ordered, testable tasks.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the wrangler plugin — 25 skills, 16 commands, 13 agents shipped together

Good fit Use it to read a Markdown specification, identify its work units, and create linked issues with dependencies and acceptance criteria.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/bacchus-labs/wrangler/generate-plan-for-spec
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.

Clone the repo
git clone --depth 1 https://github.com/bacchus-labs/wrangler

Made for: Claude Code.

Or install wrangler, the plugin that ships this one along with the rest of its 25 skills, 16 commands, 13 agents.

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 generate-plan-for-spec

README.md
[![agentmods](https://agentmods.dev/badge/commands/bacchus-labs/wrangler/generate-plan-for-spec.svg)](https://agentmods.dev/commands/bacchus-labs/wrangler/generate-plan-for-spec)
Your own site
<a href="https://agentmods.dev/commands/bacchus-labs/wrangler/generate-plan-for-spec"><img src="https://agentmods.dev/badge/commands/bacchus-labs/wrangler/generate-plan-for-spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 587 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.00011 $0.00587
Opus 5 $0.00005 $0.00293
Sonnet 5 $0.00002 $0.00117
Haiku 4.5 $0.00001 $0.00059

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

Security

Grade A, and why

generate-plan-for-spec 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 8d 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.

commands/generate-plan-for-spec.md · 84 lines

How it starts

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

/wrangler:generate-plan-for-spec

Break a specification into discrete MCP issues in .wrangler/issues/.

Arguments

  • $1spec-path: Path to spec file (e.g., .wrangler/specifications/SPEC-000001-feature-name.md)

Instructions

  1. Validate the spec path exists and is markdown
  2. Read and parse the specification:
    • Extract Implementation Plan, Goals, Acceptance Criteria
    • Identify discrete work units
  3. For each work unit, create an MCP issue using issues_create:
    • Title: Action-oriented (verb phrase)
    • Description: Full implementation details with TDD steps
    • Project: Set to the spec filename for linking
    • Labels: ["plan-step", "implementation"]
  4. Ensure issues are ordered with proper dependencies
  5. Output summary of created issues

Issue Generation Guidelines

Guideline Description
Atomic Each issue = one logical unit of work
Focused Completable in one session (<250 LOC)
Ordered Dependencies flow from earlier to later
Testable Has verifiable acceptance criteria
Action-oriented Title starts with verb (Implement, Add, Create, Fix)

Parsing Priority

  1. Implementation Plan — Primary source (phases become issue groupings)
  2. Goals — Secondary if no Implementation Plan
  3. Acceptance Criteria — Mapped to issue acceptance criteria

Each Issue Must Include

Following the writing-plans skill requirements:

  • Exact file paths (create/modify/test)
  • Complete code examples for all 5 TDD steps
  • Exact commands with expected output
  • Clear acceptance criteria
  • Dependencies on other tasks

Output

Created N issues from SPEC-000001-feature-name.md:
  ISS-000042: Setup database schema
  ISS-000043: Implement user model
  ISS-000044: Add validation logic
  ...

Issues linked to project: SPEC-000001-feature-name.md

View status: /wrangler:issues

Relationship to write-plan

This command is a focused version of /wrangler:write-plan:

  • write-plan: General planning workflow, may prompt for input
  • generate-plan-for-spec: Takes a spec file directly, no prompts

Read the full file on GitHub · 84 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. 8d ago First seen · 84 lines · 11 tokens per session scan A d9e7f497c19a

Subscribe to this mod's changes

generate-plan-for-spec is a command published in the GitHub repository bacchus-labs/wrangler (4 stars, last pushed 6mo ago), licensed MIT. It adds 11 tokens to every session and 587 once invoked, about $0.0001 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.