doc
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDocumentation Skill
文档Skill
Config-driven documentation scaffolding. Config lives inside the skill at — no repo-root files needed.
config/defaults.yaml基于配置驱动的文档脚手架。配置文件位于Skill内部的中——无需在仓库根目录放置文件。
config/defaults.yamlCommands
命令
| Command | What to run |
|---|---|
| start <name> | |
| expt <name> | |
| plan <index> <title> | |
| finding <index> <title> | |
| ckpt <index> <description> | |
| research <index> <topic> | |
| review <index> <title> | |
| learn <index> <domain> <title> | |
| list | |
| status <index> | |
| resume <index> | |
startexpt| Command | 执行命令 |
|---|---|
| start <name> | |
| expt <name> | |
| plan <index> <title> | |
| finding <index> <title> | |
| ckpt <index> <description> | |
| research <index> <topic> | |
| review <index> <title> | |
| learn <index> <domain> <title> | |
| list | |
| status <index> | |
| resume <index> | |
startexptAgent Behavior — READ THIS
Agent行为须知 — 请仔细阅读
You are responsible for tracking the active experiment per conversation. When the user creates an experiment or references one, remember its index. Pass it to every script call — scripts are stateless and parallel-safe.
你需要负责跟踪每次对话中的活跃实验。 当用户创建或引用某个实验时,请记住其索引。将索引传递给每个脚本调用——脚本是无状态且支持并行安全的。
When to use each command
各命令的使用场景
| User says... | You do... |
|---|---|
| "Let's investigate X" / starts new work | |
| "Plan this" / "How should we approach" | |
| User enters plan mode | STOP. Do NOT use |
| You discover something significant | |
| Conversation wrapping up / context switch | |
| "Research X" / "Look into Y" | |
| "Review X" / "Check this output" | |
| "Remember this" / "Key learning" | |
| "Continue experiment 19" / "Pick up" | |
| "What experiments exist?" | |
| "What's the state of experiment 19?" | |
| 用户说... | 你需要... |
|---|---|
| "Let's investigate X" / 开始新工作 | |
| "Plan this" / "How should we approach" | |
| 用户进入计划模式 | 停止。 请勿使用 |
| 你发现重要内容 | |
| 对话即将结束/切换上下文 | |
| "Research X" / "Look into Y" | |
| "Review X" / "Check this output" | |
| "Remember this" / "Key learning" | |
| "Continue experiment 19" / "Pick up" | |
| "What experiments exist?" | |
| "What's the state of experiment 19?" | |
Context resolution (when user doesn't give an index)
上下文解析(当用户未提供索引时)
- Experiment created or resumed in this conversation → use it
- User referenced one by name/number → use it
- User's request clearly relates to one experiment → use it
- Ambiguous → ask: "Which experiment?" then run to show options
/doc list
You resolve context. Scripts just take a number.
- 本次对话中创建或恢复的实验 → 使用该实验的索引
- 用户通过名称/编号引用的实验 → 使用该实验的索引
- 用户的请求明确关联某个实验 → 使用该实验的索引
- 存在歧义 → 询问:"要操作哪个实验?",然后运行展示可选实验
/doc list
由你负责解析上下文。脚本仅接受数字索引。
Auto-behaviors
自动行为
- Checkpoint automatically at natural stopping points — end of conversation, before context switch, after a milestone. Don't wait to be asked.
- Plans go in experiments. NEVER write plans to or any ephemeral storage. ALWAYS use
.claude/plan.md./doc plan - Never overwrite. Always create new numbered files. Plans evolve: 01, 02, 03.
- Resume before continuing. When picking up an existing experiment, run first to load context.
/doc resume
- 自动创建检查点:在自然停顿点自动执行——对话结束时、上下文切换前、完成里程碑后。无需等待用户请求。
- 计划必须存储在实验文件夹中。 绝不能将计划写入或任何临时存储。务必使用
.claude/plan.md命令。/doc plan - 禁止覆盖。 始终创建新的编号文件。计划版本迭代:01、02、03。
- 继续前先恢复。 当继续处理已有实验时,先运行加载上下文。
/doc resume
Checkpoint content — MANDATORY
检查点内容要求 — 必须遵守
The command arg is a short label (2-5 words), NOT the checkpoint content. After the script creates the file, you MUST write the body into it using this structure:
ckptmarkdown
```mermaid
graph LR
A[Starting state] --> B[What was done]
B --> C[Current state]
C --> D[Next steps]
```ckptmarkdown
```mermaid
graph LR
A[Starting state] --> B[What was done]
B --> C[Current state]
C --> D[Next steps]
```What
What
What was accomplished. Bullet points, brief.
完成的内容。使用项目符号,简洁描述。
Key Takeaways
Key Takeaways
Surprising findings, confirmed/rejected hypotheses, numbers that matter.
意外发现、已证实/推翻的假设、关键数据。
Issues
Issues
Blockers hit, workarounds used, unresolved problems. Include error messages if relevant.
遇到的阻碍、使用的解决方法、未解决的问题。如有相关错误信息请一并附上。
Decisions
Decisions
Key choices made and why. What was considered and rejected.
做出的关键选择及原因。考虑过的方案及放弃的原因。
Next
Next
Concrete next steps with enough detail that a new agent can pick up cold.
Include file paths, command examples, and what to watch out for.
The checkpoint must contain **everything a fresh agent needs to continue the work without asking questions.** Be brief but complete — file paths, key numbers, what worked, what didn't.
**DO NOT** cram content into the description argument. Keep the arg short: `/doc ckpt 7 "v1 analysis complete"` then edit the file.具体的下一步操作,需足够详细以便新Agent无需询问即可接手。
包含文件路径、命令示例及注意事项。
检查点必须包含**新Agent接手工作所需的全部信息,无需额外询问。** 内容需简洁但完整——包括文件路径、关键数据、有效方法及无效尝试。
**请勿**将内容塞进描述参数中。参数需简短:`/doc ckpt 7 "v1 analysis complete"`,然后编辑文件。Experiment Structure
实验结构
experiments/NNN-{name}/
├── .meta.json auto-updated by scripts
├── plans/ multiple plans, numbered
├── findings/ multiple findings, numbered
├── checkpoints/ progress snapshots, numbered
├── review/ structured reviews, numbered
└── research/ prompt + response pairs, numberedexperiments/NNN-{name}/
├── .meta.json auto-updated by scripts
├── plans/ multiple plans, numbered
├── findings/ multiple findings, numbered
├── checkpoints/ progress snapshots, numbered
├── review/ structured reviews, numbered
└── research/ prompt + response pairs, numberedSetup
设置
/doc start my-investigationTo customize folder structure or naming: edit inside the skill.
config/defaults.yaml/doc start my-investigation如需自定义文件夹结构或命名:编辑Skill内部的文件。
config/defaults.yamlRules
规则
- Scripts only create empty templates (frontmatter + headings). YOU must write the actual content into the file after the script runs. Never treat the script call as the finished step.
- Always use the scripts for file creation. Never manually create experiment dirs or edit .
.meta.json - Index is just the number. not
23not023.023-docs-and-structs - No auto-commit. Scripts scaffold files — you or the user decide when to commit.
- Plans go in experiments. Never in . This is non-negotiable.
.claude/plan.md - Files are immutable. Don't edit old plans/findings — create a new numbered one.
- Valid learnings domains are listed in .
config/defaults.yamlwill error on invalid domains.learn - Keep titles short. Titles become filenames. Use 2-5 words max — concise and descriptive. not
"auth-flow". The numbering prefix handles ordering; the title just needs to identify the topic at a glance."investigation-into-authentication-flow-reliability-issues"
$ARGUMENTS
- 脚本仅创建空白模板(前置内容 + 标题)。脚本运行后,你必须将实际内容写入文件。 绝不能将脚本调用视为完成步骤。
- 始终使用脚本创建文件。绝不要手动创建实验目录或编辑。
.meta.json - 索引仅为数字。 而非
23或023。023-docs-and-structs - 无自动提交。 脚本仅搭建文件结构——由你或用户决定何时提交。
- 计划必须存储在实验文件夹中。 绝不能放在。此项规定不可协商。
.claude/plan.md - 文件不可修改。 请勿编辑旧的计划/发现内容——创建新的编号文件即可。
- 有效的学习领域列在中。若使用无效领域,
config/defaults.yaml命令会报错。learn - 标题需简短。 标题会作为文件名。最多使用2-5个单词——简洁且具有描述性。而非
"auth-flow"。编号前缀会处理排序;标题只需能让用户一眼识别主题即可。"investigation-into-authentication-flow-reliability-issues"
$ARGUMENTS