planner

planner is a command for Claude Code from genai-jerry/claude-software-factory. It costs 19 tokens per session (1,129 once invoked), scanned A, original, MIT.

A planning command in a software factory process. It turns an approved feature specification into an ordered task file and matching smaller issue tickets.

In plain words
What is it for?
Use it after a feature proposal is approved to create implementation tasks, organize their order, assign each to the right repository, and keep each task small enough for one pull request.
Why use it?
Large approved changes still need to be divided into small, releasable pieces with clear dependencies and repository ownership.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the factory plugin — 6 skills, 19 commands, 1 hook shipped together

Good fit Use it after a feature proposal is approved to create implementation tasks, organize their order, assign each to the right repository, and keep each task small enough for one pull request.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/genai-jerry/claude-software-factory/planner
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/genai-jerry/claude-software-factory

Made for: Claude Code.

Or install factory, the plugin that ships this one along with the rest of its 6 skills, 19 commands, 1 hook.

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 planner

README.md
[![agentmods](https://agentmods.dev/badge/commands/genai-jerry/claude-software-factory/planner.svg)](https://agentmods.dev/commands/genai-jerry/claude-software-factory/planner)
Your own site
<a href="https://agentmods.dev/commands/genai-jerry/claude-software-factory/planner"><img src="https://agentmods.dev/badge/commands/genai-jerry/claude-software-factory/planner.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,129 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.00019 $0.01129
Opus 5 $0.00010 $0.00564
Sonnet 5 $0.00004 $0.00226
Haiku 4.5 $0.00002 $0.00113

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

Security

Grade A, and why

planner 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 4d 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/planner.md · 76 lines

How it starts

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

You are the Planner of the Software Factory (see FACTORY.md).

Input: an epic issue number labelled factory:spec-approved: $ARGUMENTS

Mission

Decompose the approved spec into an ordered, releasable task breakdown.

Steps

  1. Resolve the epic's home branch (FACTORY.md §6/§6a): read .github/factory-branches.json. When its epics is true, that branch is factory/epic-<issue-number>cut it from the repo's default branch if it is not on the remote yet (git push origin origin/<default>:refs/heads/factory/epic-<issue-number>, a no-op if it exists) and check it out. You run before gate G2, so no task has been dispatched and nothing can be stranded off a branch cut now; this is what adopts an epic whose spec gate was closed by a human merging the PR and applying the label, which reaches no gate-approval path. When epics is false or the key/file is missing, the home branch is the repo's integration branch (its name is the profile's branches.staging when that is a non-null string, else the policy's staging, else "staging"), and no epic branch is created.

    Then find the change folder, which is authoritative wherever it actually is: check out the first of the epic branch, the integration branch and the default branch that carries openspec/changes/<issue-number>-*/. An epic whose spec merged to the default branch under an older routing still has its folder there, and reading only the branch the policy names would hand you an empty checkout. Work from the branch you found it on, and read proposal.md and specs/.

  2. Write tasks.md in the change folder:

    • Each task = exactly one PR, ≤ half a day of work.
    • Max ~10 tasks. If the epic needs more, split into sequential changes (<issue>-<slug>-part2, ...) and say so on the epic.
    • Order so every intermediate merge is releasable. The general shape is schema/data-model change → the repo that owns the contract → the repos that consume it; derive the actual chain from each repo's .factory/profile.json estate_role.
    • Each task names its repo, its dependencies, and the spec scenarios it serves. That task → scenario mapping is not just bookkeeping: where system tests are on (FACTORY.md §4b) the Test Planner reads it to work out which tasks each system test case depends on, so a task with no scenarios named is a case that will be released too early.
  3. Mirror tasks.md 1:1 into GitHub sub-issues (in each task's target repo, for cross-repo epics): title task(<epic>): <task name>, body links the change folder and lists dependencies — machine-readable, one marker per line: Blocked by #N for a same-repo dependency, Blocked by <owner>/<repo>#N when the dependency lives in a sibling repo. A sub-issue created in a sibling repo also carries Part of <owner>/<repo>#<epic> (the epic's own repo) so tooling can find its parent. No spec content in the body.

  4. Create/update the milestone; post the task tree as a checklist comment on the epic.

  5. Commit tasks.md to the change folder on branch factory/<issue-number>-design — create it, if it doesn't exist, from the branch you found the change folder on in step 1 — and open a draft PR titled design(<issue>): <slug>, based on that same branch. Never base it on the default branch while an integration branch exists (§6). The Architect will add design.md to this same branch and mark the PR ready — one PR, one G2 approval. Remove factory:spec-approved, apply factory:planned.

Read the full file on GitHub · 76 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. 4d ago Changed · +24 lines 0651da25a4b6
  2. 8d ago First seen · 52 lines · 19 tokens per session scan A ceeeaf9d29c6

Subscribe to this mod's changes

planner is a command published in the GitHub repository genai-jerry/claude-software-factory (2 stars, last pushed 4d ago), licensed MIT. It adds 19 tokens to every session and 1,129 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.