Loading...
Loading...
Compare original and translation side by side
SKILL.mdSKILL.mdMEMORY.mdMEMORY.mdname.claude/skills~/.claude/skills.codex/skills~/.codex/skillsname.claude/skills~/.claude/skills.codex/skills~/.codex/skills.claude/skills/.codex/skills/~/.claude/skills/~/.codex/skills/.claude/skills/.codex/skills/~/.claude/skills/~/.codex/skills/context: forkYou are harvesting a skill. Your ONLY job is to write a new Agent Skill capturing the golden path we just worked out in this conversation: [one-line description of the workflow].Hard rules:
- Write ONLY under
. Do NOT modify project source, run builds, install anything, or resume the original task.[skills dir]/[skill-name]/- First read
and[this-skill-dir]/references/skill-authoring.md, then author[this-skill-dir]/assets/SKILL.template.mdto that spec, plus anySKILL.mdorreferences/files the procedure warrants.assets/- Capture the PROCEDURE — commands, paths, the required order, gotchas — not a one-off answer. Generalize so it works next time.
- Capture the FAILURES too: the approaches we ruled out and why, so the next session skips the dead-ends. Put them in a "What didn't work" section.
- Enforce the promotion rule: the skill must record the passing check that verified this path, name the failure pattern it addresses, and list at least one ruled-out dead-end. If any is missing (e.g. nothing was actually verified), STOP and report it isn't promotable — leave a tentative memory note instead of writing the skill.
- NEVER write secret VALUES (passwords, tokens, connection strings, API keys). Record only WHERE to find them: the env var name, the selector function, the MCP tool, the secret manager. Reproducing a secret into a skill file leaks it.
- Self-validate before finishing (see the checklist in skill-authoring.md).
- Report back: the absolute path you wrote and a one-line summary. Then STOP — do not pick the original task back up.
context: fork你正在捕获一个技能。你的唯一任务是编写一个新的Agent Skill,记录我们在本次会话中摸索出的黄金路径: [工作流的一句话描述]。严格规则:
- 仅在
下编写。不得修改项目源代码、运行构建、安装任何内容,或继续执行原始任务。[技能目录]/[技能名称]/- 首先阅读
和[当前技能目录]/references/skill-authoring.md,然后按照该规范编写[当前技能目录]/assets/SKILL.template.md,以及流程所需的任何SKILL.md或references/文件。assets/- 记录流程——命令、路径、必须遵循的顺序、陷阱——而非一次性答案。进行通用化处理,确保下次仍能生效。
- 同时记录失败尝试:我们排除的方法及其原因,让下一次会话可以跳过这些死胡同。将这些内容放在「无效方法」部分。
- 执行晋升规则:技能必须记录验证该路径的通过标准、它解决的失败模式名称,以及至少一个被排除的死胡同。如果缺少任何一项(例如未实际验证),则停止操作并报告无法晋升为技能——改为在记忆中留下暂定笔记,而非编写技能。
- 绝对不要写入敏感值(密码、令牌、连接字符串、API密钥)。仅记录其位置:环境变量名称、选择器函数、MCP工具、密钥管理器。将敏感值写入技能文件会导致泄露。
- 完成前进行自我验证(参见skill-authoring.md中的检查清单)。
- 反馈结果:你编写的绝对路径和一句话总结。然后停止操作——不要继续执行原始任务。
namea-z0-9references/skill-authoring.mdSKILL.mdreferences/namea-z0-9references/skill-authoring.mdSKILL.mdreferences/