OthmanAdi/planning-with-files is a planning system that stores an AI coding agent's task plan, findings, and progress in project files so the work can be recovered after context resets, crashes, or compaction. It is for long-running coding tasks across many agent tools, including Claude Code, Codex CLI, and Cursor. The catalogue entries are the project's commands, hooks, skills, plugin, and instruction for maintaining those planning files.
Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add OthmanAdi/planning-with-files/plugin install planning-with-filesWrote 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.
[](https://agentmods.dev/commands/othmanadi/planning-with-files/plan-zh)<a href="https://agentmods.dev/commands/othmanadi/planning-with-files/plan-zh"><img src="https://agentmods.dev/badge/commands/othmanadi/planning-with-files/plan-zh/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.
<a href="https://agentmods.dev/commands/othmanadi/planning-with-files/plan-zh"><img src="https://agentmods.dev/badge/commands/othmanadi/planning-with-files/plan-zh.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00023 | $0.00749 |
| Opus 5.5 | $0.00009 | $0.00300 |
| Sonnet 5.5 | $0.00005 | $0.00150 |
| Haiku 4.5 | $0.00002 | $0.00075 |
Grade A, and why
plan-zh 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 29d 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.
This is a copy
86% identical to plan-ar — 34 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
What it actually says
从以下路径中第一个存在的文件读取中文技能正文,并严格按照其指示执行:
$HOME/.claude/skills/planning-with-files-zh/SKILL.md${CLAUDE_PLUGIN_ROOT}/skills/i18n/planning-with-files-zh/SKILL.md
如果两个路径都不存在,请调用 planning-with-files:planning-with-files 技能,并继续用中文工作。
先恢复,再创建。如果设置了 PWF_PLAN_ROOT,先验证它是一个存在的绝对项目根目录;在读取或创建任何文件之前,拒绝无效的根目录固定值。否则,项目根目录就是当前目录。用 sh ${CLAUDE_PLUGIN_ROOT}/scripts/resolve-plan-dir.sh(PowerShell:& "$env:CLAUDE_PLUGIN_ROOT\scripts\resolve-plan-dir.ps1")解析选定的任务:
- 输出一个目录,表示这就是选定的任务。继续该任务:读取并保留它的
task_plan.md、findings.md和progress.md;绝不覆盖已有的规划文件。 - 输出为空且
PLAN_ID非空,表示计划选择器被拒绝。停下来,请用户更正固定值。不要退回到根目录或其他计划。 - 输出为空,且
resolve-plan-dir.sh --check-ambiguity(PowerShell:-CheckAmbiguity)输出PWF_PLAN_AMBIGUOUS_V1,表示存在多个计划但没有选择器。停下来,请用户设置PLAN_ID=<slug>。 - 其他情况下,空输出对应旧版(legacy)的项目根目录约定:如果已验证的项目根目录(设置了
PWF_PLAN_ROOT时即为它)中存在task_plan.md,就从那里继续。仅有一个有效的根目录固定值,并不会拒绝根目录中的旧版计划。
只有在开始新任务时,才从已验证的项目根目录运行初始化脚本,即使 PWF_PLAN_ROOT 指向主机 cwd 以外的位置也是如此:sh ${CLAUDE_PLUGIN_ROOT}/scripts/init-session.sh(PowerShell:init-session.ps1)。传入任务名称以在 .planning/<id>/ 下创建独立计划,并用输出的 PLAN_ID 固定主机。.planning/.active_plan 只是共享的默认值,不会绑定并行会话。
- task_plan.md — 用于阶段、进度和决策
- findings.md — 用于研究和发现
- progress.md — 用于会话日志
每个 ### Phase N: Name 标题下保留且仅保留一行 **Status:**,然后用 sh ${CLAUDE_PLUGIN_ROOT}/scripts/check-complete.sh --validate path/to/task_plan.md(PowerShell:check-complete.ps1 -Validate -PlanFile path/to/task_plan.md)验证选定计划的明确路径。如果已有计划未通过验证,请报告问题,不要重写它。
然后引导用户完成规划工作流。所有规划文件内容使用中文。
状态标记保持英文原样(**Status:** in_progress、**Status:** complete),因为 check-complete.sh 使用 grep -F 匹配它们,翻译这些标记会使完成检查失效。
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.
- 29d ago Changed · +8 lines ca7c72d1fdf3
- 3mo ago First seen · 20 lines · 23 tokens per session scan A 32dd233f903e
plan-zh is a command published in the GitHub repository OthmanAdi/planning-with-files (28,354 stars, last pushed today), licensed MIT. It adds 23 tokens to every session and 749 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to plan-ar, differing in 34 lines, and is treated as a copy.
plan-zh compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| plan-zhOthmanAdi/planning-with-files | Command | 28k | today | MIT | A | 23 | Claude Code |
| genshijin-compressInterfaceX-co-jp/genshijin | Command | 336 | 5d ago | MIT | A | 17 | Claude Code |
| pick-first-segmentstefanoskarakasis/Product-Marketing-Skills | Command | 22 | yesterday | MIT | A | 11 | Claude Code |
| design-formAmey-Thakur/AI-SKILLS | Command | 14 | 2mo ago | MIT | A | 19 | Claude Code |
| reviewnunoamorim99/agile-ledger | Command | 1 | 1mo ago | MIT | A | 16 | Claude Code |
| standupnunoamorim99/agile-ledger | Command | 1 | 1mo ago | MIT | A | 9 | Claude Code |
| enum-udppashki975/thm-claude-kit | Command | 2 | 3mo ago | MIT | A | 16 | Claude Code |