skill-contract-reviewer
它能做什么
这项技能检查拟定的智能体技能包,并为其推荐合适的构建组件。适合为 AI 智能体创建可复用技能的人。
适用场景
- ✓当某个重复的工作流即将变成可复用的智能体技能时。
- ✓当你想检查技能包的身份字段和结构是否有效时。
- ✓当你需要决定某项任务应做成技能、工具,还是定时步骤时。
技能链接
https://github.com/rohitg00/ai-engineering-from-scratch/blob/main/phases/13-tools-and-protocols/22-skills-and-agent-sdks/outputs/skill-contract-reviewer/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请检查我的新技能文件夹是否有错误,并告诉我它应该做成技能还是工具。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体读取技能约定,对拟定的文件夹运行验证脚本,并阅读报告。然后,它把该技能与常见的任务类型进行比较,并建议最少的、合适的组成部分。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Skill contract reviewer
Use this skill when a workflow is about to become a reusable agent artifact.
- Set
SKILL_ROOTto the absolute directory containing this installedSKILL.md. Do not assume the process working directory is the bundle. - Set
TARGET_ROOTto the absolute original workspace working directory and resolve the proposed skill directory under that root. - Read
$SKILL_ROOT/references/contract.mdand validate the portableSKILL.mdidentity fields. - Read
$SKILL_ROOT/references/decision-model.mdand separate repository context, reusable method, external capability, lifecycle timing, deterministic logic, and isolated delegation. - Before execution, show the exact resolved argument vector. Run
python3 "$SKILL_ROOT/scripts/check_skill.py" "$TARGET_SKILL", whereTARGET_SKILLis the absolute proposed skill directory underTARGET_ROOT. - Inspect the JSON report. Fix every error before discussing host-specific extensions.
- Compare the proposed artifact with
$SKILL_ROOT/assets/task-shapes.jsonand return the smallest composable set of primitives.
Do not claim that a runtime extension is part of the portable contract. Do not treat a valid skill as permission to run scripts or access tools.
Return the validation report, the selected primitives, and one sentence explaining each selection. Include execution evidence with the resolved script path, resolved target path, cwd, exact argv, and exit code. If the host cannot expose one of those observations, mark it unverified instead of inventing it.
常见问题
有效的技能是否就获得了运行脚本的许可?
不是。该技能说明,有效性并不代表允许运行脚本或使用工具。
它检查什么?
它检查可移植的身份字段和包结构,并报告发现的每一个错误。
它会修改我的技能吗?
它只报告问题。修复由你或其他步骤完成。
详情
作者的原始描述
Validate an Agent Skill package and choose the right instruction, capability, or lifecycle primitive before implementation.
热度
- GitHub 星标
- 76k
- 排名
- #2629
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
blueprint-figure
76k帮你的智能体为课程、README 和手册绘制清晰的静态 SVG 图示,展示系统中真实部件之间的连接关系。
build-project
76k充当项目导师,每次带你完成一个实践 AI 项目阶段,提供提示和评分,但不给出完整答案。
check-understanding
76k对 AI Engineering from Scratch 课程中已完成的阶段进行小测验,让你在进入下一阶段前检查自己学到了什么。
claude-certification
76k在 AI Engineering from Scratch 课程的 Claude 认证路线中充当分步导师,提供课程、实验和练习考试。