skill-reviewer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkill Reviewer
Skill 审查工具
Review Skill definition quality against best practices.
对照最佳实践审核Skill定义质量。
Default Mode: Definition Review
默认模式:定义审核
CRITICAL: When user says "review skill", ALWAYS default to Definition Review mode. Only switch to Execution Review when user explicitly mentions execution-related keywords.
Default behavior: Check the Skill definition quality (SKILL.md, structure, content).
Execution Review: Only when user explicitly mentions:
- "analyze execution"
- "review trace"
- "evaluate execution process"
- "执行过程评估"
| Mode | When to Use | Input |
|---|---|---|
| Definition Review (Default) | "review skill", "check quality", "validate" | Skill folder path |
| Execution Review (Explicit) | "analyze execution", "review trace" | Execution trace + goal |
重要提示:当用户说「review skill」时,始终默认使用定义审核模式。仅当用户明确提及执行相关关键词时,才可切换到执行审核模式。
默认行为:检查Skill定义质量(SKILL.md、结构、内容)。
执行审核:仅当用户明确提及以下内容时启用:
- "analyze execution"
- "review trace"
- "evaluate execution process"
- "执行过程评估"
| 模式 | 适用场景 | 输入 |
|---|---|---|
| 定义审核(默认) | "review skill", "check quality", "validate" | Skill文件夹路径 |
| 执行审核(需明确指定) | "analyze execution", "review trace" | 执行轨迹 + 目标 |
Example
示例
User: "Review my skill at ./my-skill/"
Actions:
- Read folder structure:
ls -la ./my-skill/ - Check SKILL.md exists and parse YAML frontmatter
- Run 20-item checklist (S1-S4, F1-F5, C1-C8, T1-T3)
- Generate review report
Result:
undefined用户: "Review my skill at ./my-skill/"
执行动作:
- 读取文件夹结构:
ls -la ./my-skill/ - 检查SKILL.md是否存在并解析YAML frontmatter
- 运行20项检查清单(S1-S4、F1-F5、C1-C8、T1-T3)
- 生成审核报告
结果:
undefined🔍 Skill Review: my-skill
🔍 Skill Review: my-skill
| Category | ✅ Pass | ⚠️ Warn | ❌ Fail |
|---|---|---|---|
| Structure | 4 | 0 | 0 |
| Format | 5 | 0 | 0 |
| Content | 6 | 2 | 0 |
| Trigger | 3 | 0 | 0 |
| Total | 18 | 2 | 0 |
---| Category | ✅ Pass | ⚠️ Warn | ❌ Fail |
|---|---|---|---|
| Structure | 4 | 0 | 0 |
| Format | 5 | 0 | 0 |
| Content | 6 | 2 | 0 |
| Trigger | 3 | 0 | 0 |
| Total | 18 | 2 | 0 |
---Mode A: Definition Review
模式A:定义审核
Purpose: Check if a Skill follows best practices and standards.
用途:检查Skill是否符合最佳实践和规范。
When to Use
适用场景
- Before publishing a new Skill
- After modifying a Skill
- Want to improve Skill quality
- 发布新Skill之前
- 修改Skill之后
- 想要提升Skill质量
Input
输入要求
Required: Skill folder path (e.g., ./skill/ or ./my-skill/)Required: Skill folder path (e.g., ./skill/ or ./my-skill/)Four-Category Checklist
四类检查清单
| Category | Focus | Items |
|---|---|---|
| 📁 Structure | File/folder layout | S1-S4 |
| 📋 Format | YAML frontmatter | F1-F5 |
| 📝 Content | Instructions quality | C1-C8 |
| 🎯 Trigger | Activation design | T1-T3 |
Seefor complete 20-item checklistreferences/definition-checklist.md
| 分类 | 检查重点 | 检查项 |
|---|---|---|
| 📁 结构 | 文件/文件夹布局 | S1-S4 |
| 📋 格式 | YAML frontmatter | F1-F5 |
| 📝 内容 | 说明质量 | C1-C8 |
| 🎯 触发方式 | 激活逻辑设计 | T1-T3 |
完整20项检查清单请查看references/definition-checklist.md
Workflow
工作流程
Step 1: Read Skill folder structure
↓
Step 2: Check Structure (S1-S4)
↓
Step 3: Check Format (F1-F5)
↓
Step 4: Check Content (C1-C8)
↓
Step 5: Check Trigger (T1-T3)
↓
Step 6: Output reportStep 1: Read Skill folder structure
↓
Step 2: Check Structure (S1-S4)
↓
Step 3: Check Format (F1-F5)
↓
Step 4: Check Content (C1-C8)
↓
Step 5: Check Trigger (T1-T3)
↓
Step 6: Output reportOutput Format
输出格式
markdown
undefinedmarkdown
undefined🔍 Skill Review: {skill-name}
🔍 Skill Review: {skill-name}
Path:{skill-path}
Path:{skill-path}
📊 Summary
📊 Summary
| Category | ✅ Pass | ⚠️ Warn | ❌ Fail |
|---|---|---|---|
| Structure | x | x | x |
| Format | x | x | x |
| Content | x | x | x |
| Trigger | x | x | x |
| Total | x | x | x |
| Category | ✅ Pass | ⚠️ Warn | ❌ Fail |
|---|---|---|---|
| Structure | x | x | x |
| Format | x | x | x |
| Content | x | x | x |
| Trigger | x | x | x |
| Total | x | x | x |
📁 Structure
📁 Structure
- ✅ S1 SKILL.md exists — Description
- ⚠️ S2 Item — Description
💡 Suggestion
(Continue for all categories...)
- ✅ S1 SKILL.md exists — Description
- ⚠️ S2 Item — Description
💡 Suggestion
(Continue for all categories...)
💡 Review Comments
💡 Review Comments
Strengths
Strengths
- Point 1
- Point 2
- Point 1
- Point 2
Improvements
Improvements
- Point 1
- Point 2
- Point 1
- Point 2
Best Practice Alignment
Best Practice Alignment
- Point 1
> See `references/definition-report.md` for complete template
---- Point 1
> 完整模板请查看`references/definition-report.md`
---Mode B: Execution Review
模式B:执行审核
Purpose: Analyze Skill/Tool/Agent execution through three-layer progressive analysis.
L1 Engineering Correctness ──▶ L2 Goal Achievement ──▶ L3 Optimization Space
Is execution correct? Is effect good? Can it be better?用途:通过三层递进分析,对Skill/Tool/Agent的执行情况进行分析。
L1 Engineering Correctness ──▶ L2 Goal Achievement ──▶ L3 Optimization Space
Is execution correct? Is effect good? Can it be better?When to Use
适用场景
- Skill/Tool execution results don't meet expectations
- Agent behavior is abnormal and needs troubleshooting
- Want to systematically improve implementation
- Skill/Tool执行结果不符合预期
- Agent行为异常需要排查
- 想要系统性优化实现逻辑
Four Input Dimensions
四个输入维度
| Input | Description | Required |
|---|---|---|
| Execution Trace | Tool calls, output, errors | ✅ Yes |
| Execution Goal | Original prompt | ✅ Yes |
| Implementation Reference | Skill/Tool definition | Optional |
| Agent Implementation | Agent source | Optional |
Seefor detailsreferences/input-guide.md
| 输入项 | 说明 | 是否必填 |
|---|---|---|
| 执行轨迹 | 工具调用、输出、错误信息 | ✅ 是 |
| 执行目标 | 原始prompt | ✅ 是 |
| 实现参考 | Skill/Tool定义 | 可选 |
| Agent实现 | Agent源码 | 可选 |
详情请查看references/input-guide.md
Three-Layer Analysis
三层分析逻辑
L1: Engineering Correctness
L1:工程正确性
Question: Is execution correct?
- Are tool calls successful?
- Do scripts execute without errors?
- Any Linter/syntax errors?
- Any infinite loops?
Judgment: If errors found → Report and stop, fix L1 first
核心问题:执行过程是否正确?
- 工具调用是否成功?
- 脚本执行是否无报错?
- 是否存在Linter/语法错误?
- 是否存在无限循环?
判定规则:如果发现错误→上报问题并终止分析,先修复L1层面问题
L2: Goal Achievement
L2:目标达成度
Question: Is the effect good?
- Is the goal correctly understood?
- Are key steps executed?
- How is output format/quality?
Rating: ✓✓✓ Excellent / ✓✓ Good / ✓ Pass / ✗ Fail
核心问题:执行效果是否达标?
- 目标是否被正确理解?
- 关键步骤是否都已执行?
- 输出格式/质量如何?
评级标准:✓✓✓ 优秀 / ✓✓ 良好 / ✓ 合格 / ✗ 不合格
L3: Optimization Space
L3:优化空间
Question: Can it be better? (Prerequisite: L1 pass + L2 at least pass)
[MUST] Check these dimensions:
- Efficiency: Redundant calls? Token waste? Repeated reads?
- Implementation: Better tools? Clearer description? Scripts simplifiable?
- Conciseness: Redundant content? Over-explanation?
Seefor detailsreferences/analysis-dimensions.md
核心问题:是否可以做得更好?(前提:L1通过 + L2至少达到合格)
[必须]检查以下维度:
- 效率:是否存在冗余调用?Token浪费?重复读取?
- 实现:是否有更合适的工具?说明是否更清晰?脚本是否可简化?
- 简洁性:是否存在冗余内容?过度解释?
详情请查看references/analysis-dimensions.md
Workflow
工作流程
Step 1: Collect inputs
↓
Step 2: Read implementation reference (if available)
↓
Step 3: L1 scan → Report if issues found
↓
Step 4: L2 comparison → Evaluate achievement
↓
Step 5: L3 optimization → Generate suggestions
↓
Step 6: Output report
↓
Step 7: (Optional) Generate execution plan if user adopts suggestionsSeefor execution plan generationreferences/execution-guide.md
Step 1: Collect inputs
↓
Step 2: Read implementation reference (if available)
↓
Step 3: L1 scan → Report if issues found
↓
Step 4: L2 comparison → Evaluate achievement
↓
Step 5: L3 optimization → Generate suggestions
↓
Step 6: Output report
↓
Step 7: (Optional) Generate execution plan if user adopts suggestions执行计划生成规则请查看references/execution-guide.md
Output Format
输出格式
markdown
undefinedmarkdown
undefinedExecution Review Report
Execution Review Report
Basic Information
Basic Information
| Item | Content |
|---|---|
| Analysis Target | {Skill/Tool/Agent} |
| Execution Goal | "{prompt}" |
| Item | Content |
|---|---|
| Analysis Target | {Skill/Tool/Agent} |
| Execution Goal | "{prompt}" |
L1: Engineering Correctness ✓/✗
L1: Engineering Correctness ✓/✗
[Check result table]
[Check result table]
L2: Goal Achievement ✓✓
L2: Goal Achievement ✓✓
[Achievement status + Rating]
[Achievement status + Rating]
L3: Optimization Space 💡
L3: Optimization Space 💡
[Suggestions by dimension]
[Suggestions by dimension]
Summary
Summary
[Core issues + Priority improvements]
> See `references/report-templates.md` for complete template
---[Core issues + Priority improvements]
> 完整模板请查看`references/report-templates.md`
---Troubleshooting
问题排查
Error: "SKILL.md not found"
错误:"SKILL.md not found"
Cause: File missing or named incorrectly (SKILL.MD, skill.md, etc.)
Solution: Create (case-sensitive) in skill folder root
SKILL.md原因:文件缺失或命名错误(如SKILL.MD、skill.md等)
解决方案:在Skill文件夹根目录创建大小写正确的文件
SKILL.mdError: "YAML parse failed"
错误:"YAML parse failed"
Cause: Invalid YAML syntax in frontmatter
Solution: Check for:
- Missing delimiters
--- - Incorrect indentation
- Unescaped special characters in description
原因:frontmatter中的YAML语法无效
解决方案:检查以下内容:
- 缺少分隔符
--- - 缩进错误
- 描述中存在未转义的特殊字符
Error: "name field invalid"
错误:"name field invalid"
Cause: name contains spaces, capitals, or special characters
Solution: Use kebab-case (e.g., )
my-skill-name原因:name包含空格、大写字母或特殊字符
解决方案:使用kebab-case命名(例如:)
my-skill-nameWarning: "SKILL.md too long"
警告:"SKILL.md too long"
Cause: File exceeds 300 lines
Solution: Move detailed content to folder
references/原因:文件超过300行
解决方案:将详细内容移动到文件夹
references/References
参考文档
| Document | Content |
|---|---|
| Definition review: 20-item checklist |
| Definition review: report template |
| Execution review: four input dimensions |
| Execution review: three-layer checklist |
| Typical scenario guide |
| Execution review: report templates |
| Execution plan generation guide |
| 文档路径 | 内容说明 |
|---|---|
| 定义审核:20项检查清单 |
| 定义审核:报告模板 |
| 执行审核:四个输入维度说明 |
| 执行审核:三层检查清单 |
| 典型场景指南 |
| 执行审核:报告模板 |
| 执行计划生成指南 |