ask-skill-capture

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
<critical_constraints> ❌ NO saving without user verification ✅ MUST analyze last 10-20 turns for lessons ✅ MUST use standard SKILL.md format with frontmatter ✅ MUST present draft for user approval before saving </critical_constraints>
<workflow> 1. **Extract**: Review recent conversation for: - Constraints: "Don't do X", "Always do Y" - Patterns: file structures, naming conventions - Tools: specific libraries used 2. **Draft**: Generate SKILL.md with constraints/workflow 3. **Verify**: Ask user to confirm versions/commands 4. **Save**: Write to `.agent/skills/<name>/SKILL.md` </workflow> <template> ```markdown --- name: <skill-name> description: <One sentence summary> triggers: ["phrase1", "phrase2"] ---
<critical_constraints> ❌ NO [forbidden pattern] ✅ MUST [required action] </critical_constraints>
<workflow> 1. Step one 2. Step two </workflow> ``` </template> <example> User: "Capture this as deploy-protocol" Agent extracts: use force:true, check dist/ folder Creates: deploy-protocol skill with those as rules </example>
<critical_constraints> ❌ 未经过用户确认不得保存 ✅ 必须分析最近10-20轮对话中的经验 ✅ 必须使用带前置元数据的标准SKILL.md格式 ✅ 在保存前必须向用户展示草稿以获得批准 </critical_constraints>
<workflow> 1. **提取**:回顾近期对话内容,提取以下信息: - 约束条件:"不要做X"、"必须做Y" - 模式:文件结构、命名规范 - 工具:使用的特定库 2. **起草**:生成包含约束条件和工作流的SKILL.md文件 3. **验证**:请用户确认版本/命令 4. **保存**:写入到`.agent/skills/<name>/SKILL.md`路径 </workflow> <template> ```markdown --- name: <skill-name> description: <一句话总结> triggers: ["phrase1", "phrase2"] ---
<critical_constraints> ❌ NO [forbidden pattern] ✅ MUST [required action] </critical_constraints>
<workflow> 1. Step one 2. Step two </workflow> ``` </template> <example> 用户:"将这个提炼为deploy-protocol" Agent提取:使用force:true,检查dist/文件夹 生成:包含这些规则的deploy-protocol skill </example>