plan

plan is a command for Claude Code from fockus/skill-memory-bank. It costs 38 tokens per session (2,578 once invoked), scanned A, original, MIT.

A command for creating a detailed work plan for a feature, bug fix, refactor, or experiment. It saves the plan in a memory bank, a project folder used to keep planning information.

In plain words
What is it for?
Use it to plan engineering work before implementation. It helps organize work into phases, sprints, and stages and stores the resulting plan for later reference.
Why use it?
It turns a vague task into documented steps and a clear definition of done, while checking that the project's memory bank is ready first.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Good fit Use it to plan engineering work before implementation. It helps organize work into phases, sprints, and stages and stores the resulting plan for later reference.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fockus/skill-memory-bank/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.

Clone the repo
git clone --depth 1 https://github.com/fockus/skill-memory-bank

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 plan

README.md
[![agentmods](https://agentmods.dev/badge/commands/fockus/skill-memory-bank/plan/github.svg)](https://agentmods.dev/commands/fockus/skill-memory-bank/plan)
Your own site
<a href="https://agentmods.dev/commands/fockus/skill-memory-bank/plan"><img src="https://agentmods.dev/badge/commands/fockus/skill-memory-bank/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 plan

Your own site · 80×15
<a href="https://agentmods.dev/commands/fockus/skill-memory-bank/plan"><img src="https://agentmods.dev/badge/commands/fockus/skill-memory-bank/plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,578 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.00038 $0.02578
Opus 5.5 $0.00015 $0.01031
Sonnet 5.5 $0.00008 $0.00516
Haiku 4.5 $0.00004 $0.00258

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

Security

Grade A, and why

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

commands/plan.md · 186 lines

How it starts

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

Plan: $ARGUMENTS

Canonical planning command. /mb plan is an alias that dispatches here.

Storage note. Resolve the active bank path through mb_resolve_path (in scripts/_lib.sh). The plan file ends up at <resolved-bank>/plans/<YYYY-MM-DD>_<type>_<topic>.md regardless of whether the bank is local, registered global storage, or legacy .claude-workspace. If [MEMORY BANK: ABSENT] (rules-only mode), refuse to plan and tell the user to run /mb init first — but do not auto-initialize.

Skill bundle root

Every bundled helper below runs through the skill bundle root, never a bare scripts/… path (the working directory is the user's project, where scripts/ is absent or belongs to someone else):

SKILL_DIR="${MB_SKILLS_ROOT:-${SKILL_DIR:-$HOME/.claude/skills/memory-bank}}"
[ -f "$SKILL_DIR/scripts/_lib.sh" ] || { echo "mb: skill bundle not found at $SKILL_DIR — set MB_SKILLS_ROOT" >&2; exit 2; }

0. Validate arguments

Parse $ARGUMENTS into <type> <topic>. Allowed type: feature, fix, refactor, experiment. If type is missing or not in the allowed set, stop and ask the user. If topic is empty, stop and ask.

Hierarchy reminder: Phase → Sprint → Stage. See references/templates.md § Plan decomposition for sizing rules. Cyrillic «Этап / Спринт / Фаза» — legacy alias; the scaffold script will soft-warn if you use them in <topic>.

1. Preparation

Read before you start:

  1. ~/.claude/CLAUDE.md — global rules
  2. $SKILL_DIR/references/templates.md — the "Plan decomposition — Phase → Sprint → Stage" section (what a stage is, when to add one)
  3. ./RULES.MD (project-level, if present) — project-specific decomposition rules
  4. ./.memory-bank/roadmap.md — current priorities (if present)
  5. ./.memory-bank/checklist.md — current tasks (if present)
  6. ./.memory-bank/lessons.md — known anti-patterns (if present)
  7. ./.memory-bank/codebase/*.md — stack / architecture / conventions / concerns summaries (if populated)

Read the full file on GitHub · 186 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 · +7 lines 3f17944877f9
  2. 13d ago Changed · +1 lines · +24 tokens per session ef79c2aa8be5
  3. 22d ago Changed · +10 lines cda77480028a
  4. 1mo ago First seen · 168 lines · 14 tokens per session scan A e7fd86de0b47

Subscribe to this mod's changes

plan is a command published in the GitHub repository fockus/skill-memory-bank (28 stars, last pushed 2d ago), licensed MIT. It adds 38 tokens to every session and 2,578 once invoked, about $0.0002 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-08-30.