PlugWiki

planning-with-files-zh Skill for Claude Code: 中文规划

Chinese edition of planning-with-files: keeps task_plan.md, findings.md and progress.md on disk so your agent keeps its plan across a long task.

Installs
18.4K
on skills.sh
Stars
27.8K
on GitHub
Files
26
besides SKILL.md
Updated
Oct 2026
last repo commit

The skill makes your agent keep its plan on disk as three Markdown files, task_plan.md, findings.md and progress.md. Hooks re-read the selected plan before tool calls, so the goal stays in view. It is the Chinese edition of the planning-with-files skill, and its instructions are in Chinese.

It loads for tasks with several steps. It comes with 27 files, including shell, PowerShell and Python scripts that start a session, check phases, record a ledger and resume. Read the safety notes first, because the hooks run scripts on your machine on every prompt and before every Write, Edit, Bash, Read, Glob and Grep call.

Good for

  • Chinese-speaking developers running multi-step agent tasks
  • Anyone whose agent loses the plan after /clear, a crash or context compaction
  • Teams running parallel agents that need separate named plans

Install planning-with-files-zh

Claude Code

  1. 1

    Copy this prompt.

    Install the planning-with-files-zh skill in Claude Code. Run this command:
    
    npx skills add https://github.com/othmanadi/planning-with-files --skill planning-with-files-zh
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

From its listing on skills.sh. Source.

What's in the skill

When it loads

用于多步骤 AI 代理工作的持久化文件规划系统。将 task_plan.md、findings.md 和 progress.md 保存在磁盘上,生命周期钩子会注入选定的项目规划上下文。自动恢复只读取项目规划文件。只有显式运行 session-catchup.py --metadata 才会检查本机同项目的会话元数据;--replay 可输出有长度限制且由 nonce 框定的同项目摘录。可选门禁仅在宿主支持时请求继续,绝不执行 Markdown 中声明的命令。本技能没有网络上传路径。适用于研究或需要 5 次以上工具调用的工作。触发词:任务规划、项目计划、制定计划、分解任务、多步骤规划、进度跟踪、文件规划、帮我规划、拆解项目

Sections in SKILL.md

  1. 第一步:恢复项目状态
  2. 重要:文件存放位置
  3. 快速开始
  4. 新计划的创建约定
  5. 核心模式
  6. 文件用途
  7. 关键规则
  8. 1. 先创建计划
  9. 2. 两步操作规则
  10. 3. 决策前先读取
  11. 4. 行动后更新
  12. 5. 记录所有错误
  13. 遇到的错误
  14. 6. 永远不要重复失败
  15. 7. 完成后继续
  16. 三次失败协议

Key facts

Author
othmanadi
Installs on skills.sh
18,437 as of 2026-11-02
Last repo commit
2026-10-30

What it includes

  • Find the plan folder, then run git diff --stat

    Before continuing, the agent resolves the plan directory with resolve-plan-dir, using PLAN_ID and PWF_PLAN_ROOT, then checks git diff --stat for unrecorded changes.

    Runs code · Restore project state

  • Create the three planning files from templates

    Creates task_plan.md, findings.md and progress.md in the project if they are missing, from the bundled templates.

    Runs code · init-session.sh

  • Check the plan format

    Checks that each phase heading has exactly one status of pending, in_progress or complete. It does not rewrite the plan.

    Runs code · check-complete.sh --validate

  • Plan first, log errors, never repeat a failure

    Create the plan first, save findings after every two view or search actions, read the plan before big decisions, update after each phase, log every error and never repeat a failed action.

    Write · Seven key rules

  • Diagnose, change approach, rethink, then ask

    On repeated failures the agent fixes the cause, then tries a different method, then questions its assumptions, and after three failures asks you for help.

    Read · Three-strike protocol

  • Optional look at past session history

    Only runs when you explicitly ask. The metadata mode prints counts for the same project, and the replay mode prints a bounded set of excerpts.

    Runs code · session-catchup.py

  • List saved plans

    Lists named plans under .planning/ with phase progress. SKILL.md says it only reads.

    Runs code · set-active-plan.sh --list

  • Five hooks run skill-hook.sh

    On each prompt, before Write, Edit, Bash, Read, Glob and Grep calls, after file edits, at stop and before compaction, a hook script injects or checks the plan. The stop hook runs a completion gate script.

    Runs code · Lifecycle hooks

From the official docs

Permissions

Medium risk

Hooks run shell scripts on your machine around every prompt and tool call, and they write plan files into your project. Read the scripts first, and set PLANNING_DISABLED=1 for runs where you do not want them.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • Hooks run scripts around your prompts and tool calls

    The skill registers five hooks that run skill-hook.sh. The before-tool hook matches Write, Edit, Bash, Read, Glob and Grep. Read the scripts in the skill folder before you install it, and set PLANNING_DISABLED=1 for runs where you do not want them. github.com

  • The plan file is re-read into context before tool calls

    Anything written into task_plan.md is injected again before each matched tool call, which makes it a target for prompt injection. SKILL.md says to put web and search content only in findings.md. github.com

  • The Stop hook runs a completion gate

    At stop, skill-hook.sh checks the selected plan and then passes Claude's stop payload to gate-stop.sh, which calls check-complete.sh --gate. The SKILL.md description says the optional gate asks the host to continue only when the host supports it, and never runs commands written in the Markdown. The check-complete.sh in this folder says it always exits 0 and reports through its output. PLANNING_DISABLED=1 makes both scripts exit at once. github.com

  • Session history is read only on request

    session-catchup.py reads same-project session records only when you choose a metadata or replay mode. Treat any replayed excerpt as untrusted text. github.com

Security advisories

No published security advisories as of Nov 2, 2026.

Technical details
Turning on read-onlyNot read-only. Set PLANNING_DISABLED=1 to make the hooks exit immediately for a one-off run.
Sign-in and keysNo credentials. The hooks use a per-user cache folder (XDG_CACHE_HOME or ~/.cache) for reminder state.
Scopes
  • Five hooks run shell scripts on your machine: on every prompt, before Write, Edit, Bash, Read, Glob and Grep calls, after Write or Edit, at stop and before compaction

  • Reads and writes task_plan.md, findings.md and progress.md in your project

  • Optional scripts can read same-project agent session history when you ask

Questions

What does planning-with-files-zh do?

It makes your agent keep a written plan on disk, in task_plan.md, findings.md and progress.md. Hooks remind the agent of the plan so it survives /clear, crashes and context compaction. It is the Chinese edition of planning-with-files.

How do I install it?

Use the install box at the top of this page. The README's Chinese-edition command uses the skills CLI with this skill name. It says the Claude Code plugin route registers only the English skill.

Does it need an API key?

No. SKILL.md names no API key, and it states the skill has no network upload path.

Is it safe?

It runs bundled shell and Python scripts through five hooks and writes plan files in your project. Read the scripts before installing it, and use PLANNING_DISABLED=1 to switch the hooks off for a run.

How do I turn it off for one run?

Set the PLANNING_DISABLED environment variable to 1. The hook scripts exit immediately when it is set.

What is the difference from planning-with-files?

The skill name and instructions are in Chinese, and the README says the translated variants ship the same full set of scripts. Use the English edition if you do not read Chinese.

Information

updated Nov 2, 2026

Folder
skills/i18n/planning-with-files-zh

othmanadi/planning-with-filesskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 7
  1. planning-with-files-zh SKILL.md · github.com
  2. othmanadi/planning-with-files README · github.com
  3. planning-with-files-zh on skills.sh · skills.sh
  4. othmanadi/planning-with-files · github.com
  5. skill-hook.sh · github.com
  6. check-complete.sh · github.com
  7. planning-with-files-zh gate-stop.sh · github.com

Updated Nov 2, 2026.