Validate an Agent Skill package and choose the right instruction, capability, or lifecycle primitive before implementation.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-skill-contract-reviewer-d36a6fdc95cb ,按照其中的说明把「skill-contract-reviewer」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Use this skill when a workflow is about to become a reusable agent artifact.
SKILL_ROOT to the absolute directory containing this installed
SKILL.md. Do not assume the process working directory is the bundle.TARGET_ROOT to the absolute original workspace working directory and
resolve the proposed skill directory under that root.$SKILL_ROOT/references/contract.md and validate the portable
SKILL.md identity fields.$SKILL_ROOT/references/decision-model.md and separate repository
context, reusable method, external capability, lifecycle timing,
deterministic logic, and isolated delegation.python3 "$SKILL_ROOT/scripts/check_skill.py" "$TARGET_SKILL", where
TARGET_SKILL is the absolute proposed skill directory under
TARGET_ROOT.$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.