plan

plan is a command for coding agents from xu-xiang/everything-claude-code-zh. It costs 17 tokens per session (412 once invoked), scanned A, original, MIT.

An implementation-planning command that creates a step-by-step plan and assesses its risks, dependencies, and expected complexity.

In plain words
What is it for?
Use it to restate requirements, list dependencies, break work into phases, assess high-, medium-, and low-risk issues, and wait for confirmation to proceed.
Why use it?
It helps clarify what will be built and identify likely problems before coding begins. It also requires explicit approval before implementation.

Command

Part of the everything-claude-code-zh plugin — 17 skills, 26 commands, 13 agents shipped together

About the project

everything-claude-code-zh is a Chinese translation of a collection of configurations for Claude Code and other AI coding agents. It provides agents, skills, hooks, commands, rules, and MCP configurations intended to support development workflows such as memory persistence, security scanning, evaluation, and research-first work. The catalogue includes commands, skills, agents, instructions, and a plugin from this configuration set.

xu-xiang/everything-claude-code-zh · 1,929 stars · on GitHub

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/xu-xiang/everything-claude-code-zh/plan
Clone the repo
git clone --depth 1 https://github.com/xu-xiang/everything-claude-code-zh

Or install everything-claude-code-zh, the plugin that ships this one along with the rest of its 17 skills, 26 commands, 13 agents.

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/xu-xiang/everything-claude-code-zh/plan.svg)](https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/plan)
Your own site
<a href="https://agentmods.dev/commands/xu-xiang/everything-claude-code-zh/plan"><img src="https://agentmods.dev/badge/commands/xu-xiang/everything-claude-code-zh/plan.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 412 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.00017 $0.00412
Opus 5 $0.00009 $0.00206
Sonnet 5 $0.00003 $0.00082
Haiku 4.5 $0.00002 $0.00041

Measured 5d ago against content hash 1122f42545e1, 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 5d 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.

.opencode/commands/plan.md · 50 lines

What it actually says

计划命令(Plan Command)

为以下内容创建详细的实施计划:$ARGUMENTS

你的任务(Your Task)

  1. 重述需求(Restate Requirements) - 明确需要构建的内容
  2. 识别风险(Identify Risks) - 发现潜在问题、阻塞点和依赖项
  3. 创建分步计划(Create Step Plan) - 将实施过程分解为若干阶段
  4. 等待确认(Wait for Confirmation) - 在继续之前必须获得用户批准

输出格式(Output Format)

需求重述(Requirements Restatement)

[对将要构建的内容进行清晰、简洁的重述]

实施阶段(Implementation Phases)

[阶段 1:描述]

  • 步骤 1.1
  • 步骤 1.2 ...

[阶段 2:描述]

  • 步骤 2.1
  • 步骤 2.2 ...

依赖项(Dependencies)

[列出所需的外部依赖、API 和服务]

风险(Risks)

  • 高(HIGH):[可能阻碍实施的关键风险]
  • 中(MEDIUM):[需要处理的中度风险]
  • 低(LOW):[次要顾虑]

预计复杂度(Estimated Complexity)

[高/中/低(HIGH/MEDIUM/LOW),并附带时间预估]

等待确认(WAITING FOR CONFIRMATION):是否执行此计划?(yes/no/modify)


关键(CRITICAL):在用户明确通过 "yes"、"proceed" 或类似的肯定回复确认之前,不要编写任何代码。

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. 5d ago First seen · 50 lines · 17 tokens per session scan A 1122f42545e1

Subscribe to this mod's changes

plan is a command published in the GitHub repository xu-xiang/everything-claude-code-zh (1,929 stars, last pushed 6mo ago), licensed MIT. It adds 17 tokens to every session and 412 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-30.