claude-soul: Command for Claude Code

.claude/commands/plan-first.md

plan-first is a command for Claude Code from tomdwipo/claude-soul. It costs 0 tokens per session (578 once invoked), scanned A, original, MIT.

A planning command that investigates the current code before proposing several ways to implement a requested feature. It starts with the simplest option and includes trade-offs, a comparison, and an estimate of effort.

In plain words
What is it for?
Use it before implementation when you want a diagnosis, multiple solution options, pros and cons, a decision table, and an estimate of work or response length.
Why use it?
Planning from assumptions can lead to changes that do not fit the existing code. This approach confirms the current behavior first, then compares possible solutions without writing code.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md.

This is tomdwipo/claude-soul's own configuration. It tells Claude Code how to work on claude-soul itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-soul configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tomdwipo/claude-soul. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tomdwipo/claude-soul/main/.claude/commands/plan-first.md
Clone the repo
git clone --depth 1 https://github.com/tomdwipo/claude-soul

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/tomdwipo/claude-soul/plan-first.svg)](https://agentmods.dev/commands/tomdwipo/claude-soul/plan-first)
Your own site
<a href="https://agentmods.dev/commands/tomdwipo/claude-soul/plan-first"><img src="https://agentmods.dev/badge/commands/tomdwipo/claude-soul/plan-first.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 578 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.1 $0.00000 $0.00578
Opus 5 $0.00000 $0.00289
Sonnet 5 $0.00000 $0.00116
Haiku 4.5 $0.00000 $0.00058

Measured 6d ago against content hash 10177918cdda, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

plan-first 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 6d 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.

.claude/commands/plan-first.md · 43 lines

How it starts

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

Feature Planning First Command

Think Hard and Give me a few options for a $ARGUMENTS, starting with the simplest first. Don't code yet - just outline the approach and ask me which direction to take.

Investigate the codebase. Diagnose before prescribing. Before proposing options, read the relevant files, trace call sites, and confirm the actual current behavior. Never propose a fix based on assumptions — ground every option in what the code actually does today. State your diagnosis (root cause + evidence) before listing options.

add Philosophy behind with max 15 words. add pros and cons. add comparison matrix with other approaches. add expectation cost token generation. if from jira task get all information by using mcp atlassian, jira-attachment, video-to-image frame per second, include comments if have. if have link jira get detail all description and all comments if any. if the option can use the ascii diagram, do it.

Before proposing options, verify whether the ticket's issue still applies to the current codebase:

  1. Reproduce the issue against the current code. Read the relevant files / trace the code path described in the ticket and confirm whether the bug/gap is still present.
  2. Check for existing mitigation. Search for any guard, feature flag, defensive code, or recent commit that already addresses the issue (use git log, grep, and the .docs/common-issues/ catalog).
  3. Decide one of three outcomes:
    • Still broken, no mitigation → proceed with the normal /plan-first flow (options, diagnosis, etc.) — the plan should include the fix.
    • Already fixed or mitigated in the current codebase → do NOT propose options. Instead:
      • State this finding in chat with evidence (file paths + line numbers + commit SHA if relevant).
      • Use mcp__atlassian__transitionJiraIssue to move the ticket to Done (or the equivalent closed state).
      • Use mcp__atlassian__addCommentToJiraIssue (with contentFormat: "adf") to add a comment summarising what mitigates it, with file/line evidence.
    • Partial mitigation → call this out explicitly, then propose options only for the uncovered gap.

Read the full file on GitHub · 43 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. 6d ago First seen · 43 lines · 0 tokens per session scan A 10177918cdda

Subscribe to this mod's changes

plan-first is a command published in the GitHub repository tomdwipo/claude-soul (24 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 578 tokens. 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.