plan

plan is a command for Claude Code from sumulige/sumulige-claude. It costs 5 tokens per session (421 once invoked), scanned A, original, MIT.

A command that turns a coding task into an implementation plan, including the files to change, risks, and checks for success. Its deeper mode also describes the system structure and the trade-offs behind major technical choices.

In plain words
What is it for?
Use it to plan a small feature or bug fix, design a new module or system, or compare technical approaches before implementation.
Why use it?
It gives you a shared design before code changes begin, so large tasks are less likely to miss dependencies or grow in scope unexpectedly.

Command for Claude Code

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 commands/sumulige/sumulige-claude/plan
Clone the repo
git clone --depth 1 https://github.com/sumulige/sumulige-claude

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/sumulige/sumulige-claude/plan.svg)](https://agentmods.dev/commands/sumulige/sumulige-claude/plan)
Your own site
<a href="https://agentmods.dev/commands/sumulige/sumulige-claude/plan"><img src="https://agentmods.dev/badge/commands/sumulige/sumulige-claude/plan.svg" alt="Measured on agentmods" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 421 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.00005 $0.00421
Opus 5 $0.00003 $0.00211
Sonnet 5 $0.00001 $0.00084
Haiku 4.5 $0.00001 $0.00042

Measured 4d ago against content hash a4acb65324ab, 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 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.

.claude/commands/plan.md · 89 lines

What it actually says

/plan

为功能或任务创建实现计划,支持快速规划和深度设计。

使用方式

/plan              # 快速规划(默认)
/plan --deep       # 深度设计(架构决策)
/plan --arch       # 仅架构设计

关联 Skill

此命令加载 design-brain skill(复杂任务使用 opus)。


工作流程

快速规划(默认)

# Plan: [功能名称]

## Goal
[一句话描述]

## Steps
1. [ ] [步骤 1]
2. [ ] [步骤 2]
3. [ ] [步骤 3]

## Files
- `path/to/file.ts` - [修改内容]

## Risk
- [主要风险] → [缓解策略]

深度设计(--deep)

# Design: [系统名称]

## Overview
[背景和目标]

## Architecture
[组件图 + 数据流]

## Technical Decisions
| Decision | Choice | Reason | Trade-offs |
|----------|--------|--------|------------|

## Implementation Plan
### Phase 1: [阶段名]
1. [ ] Step 1
2. [ ] Step 2

## Risks
| Risk | Impact | Mitigation |
|------|--------|------------|

## Success Criteria
- [ ] 标准 1
- [ ] 标准 2

设计原则

  1. 简单优于复杂 - 能用简单方案就不要复杂化
  2. 最小变更 - 优先复用现有代码
  3. 可测试性 - 每个步骤都可验证

使用场景

场景 推荐模式
小功能/bug 修复 快速规划
新模块/系统 深度设计
技术选型 --arch
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 First seen · 89 lines · 5 tokens per session scan A a4acb65324ab

Subscribe to this mod's changes

plan is a command published in the GitHub repository sumulige/sumulige-claude (2 stars, last pushed 6mo ago), licensed MIT. It adds 5 tokens to every session and 421 once invoked, about $0.0000 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.