跳到正文
Skillpedia
智能体76k · #2629

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我: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 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请检查我的新技能文件夹是否有错误,并告诉我它应该做成技能还是工具。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体读取技能约定,对拟定的文件夹运行验证脚本,并阅读报告。然后,它把该技能与常见的任务类型进行比较,并建议最少的、合适的组成部分。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Skill contract reviewer

Use this skill when a workflow is about to become a reusable agent artifact.

  1. Set SKILL_ROOT to the absolute directory containing this installed SKILL.md. Do not assume the process working directory is the bundle.
  2. Set TARGET_ROOT to the absolute original workspace working directory and resolve the proposed skill directory under that root.
  3. Read $SKILL_ROOT/references/contract.md and validate the portable SKILL.md identity fields.
  4. Read $SKILL_ROOT/references/decision-model.md and separate repository context, reusable method, external capability, lifecycle timing, deterministic logic, and isolated delegation.
  5. Before execution, show the exact resolved argument vector. Run python3 "$SKILL_ROOT/scripts/check_skill.py" "$TARGET_SKILL", where TARGET_SKILL is the absolute proposed skill directory under TARGET_ROOT.
  6. Inspect the JSON report. Fix every error before discussing host-specific extensions.
  7. Compare the proposed artifact with $SKILL_ROOT/assets/task-shapes.json and 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.

repo: rohitg00/ai-engineering-from-scratch

热度

GitHub 星标
76k
排名
#2629
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能