plan

A planning guide for turning a feature request into an ordered coding plan. It examines the existing code, lists files and tests involved, and records dependencies between tasks.

In plain words
What is it for?
Use it before coding a new feature or a complex change. It helps map files to create or modify, choose reference code, and divide work into implementation and testing phases.
Why use it?
It reduces the chance of starting implementation before understanding the requirement or the surrounding code. It also makes missing tests, configuration changes, and documentation work easier to spot.

Skill for Claude CodeCodex

Part of the claude-code-optimizer plugin — 25 skills, 4 hooks shipped together

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.

agentmods
npx agentmods add skills/huzaifa525/claude-code-optimizer/plan
Any agent
npx skills add huzaifa525/claude-code-optimizer --skill plan
Clone the repo
git clone --depth 1 https://github.com/huzaifa525/claude-code-optimizer

Made for: Claude Code, Codex.

Or install claude-code-optimizer, the plugin that ships this one along with the rest of its 25 skills, 4 hooks.

Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 505 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00026 $0.00505
Opus 5 $0.00013 $0.00253
Sonnet 5 $0.00005 $0.00101
Haiku 4.5 $0.00003 $0.00051

Measured 3d ago against content hash 4ee7c022b550, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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.

templates/.claude/skills/plan/SKILL.md · 76 lines

What it actually says

Create an implementation plan for: $ARGUMENTS

Steps

  1. Understand the requirement — break down what needs to be built

  2. Explore the codebase — find related code, patterns, and conventions

  3. Identify all changes needed:

    • New files to create
    • Existing files to modify
    • Tests to add
    • Config changes
  4. Map dependencies — what must be done before what

  5. Output structured plan:

## Implementation Plan: [feature]

### Overview
[1-2 sentence description of what will be built]

### Tasks

#### Phase 1: [Foundation]
- [ ] Task 1: [description]
  - Files: [file1, file2]
  - Pattern: follow [existing-file] as reference
- [ ] Task 2: [description]
  - Files: [file1]
  - Depends on: Task 1

#### Phase 2: [Core Logic]
- [ ] Task 3: [description]
  - Files: [file1, file2, file3]
  - Depends on: Task 1, Task 2

#### Phase 3: [Testing & Polish]
- [ ] Task 4: Write tests
  - Files: [test files]
  - Depends on: Phase 2
- [ ] Task 5: Update docs
  - Files: [CLAUDE.md, README]

### Files Map
| File | Action | Purpose |
|------|--------|---------|
| [path] | Create/Modify | [what changes] |

### Reference Code
- [existing-file] → follow this pattern for [X]
- [existing-file] → follow this pattern for [Y]

### Risks
- [potential issues and mitigations]

### Estimated Scope
- [X] files to create
- [Y] files to modify
- [Z] tests to add
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. 3d ago First seen · 76 lines · 26 tokens per session scan A 4ee7c022b550

Subscribe to this mod's changes

plan is a skill published in the GitHub repository huzaifa525/claude-code-optimizer (9 stars, last pushed 5mo ago), licensed MIT. It adds 26 tokens to every session and 505 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.