Agent Skillsrohitg00/ai-engineering-from-scratch › skill-contract-reviewer

skill-contract-reviewer

GitHub

用于在 Agent Skill 打包发布前进行合规性审查。通过验证 SKILL.md 身份字段、运行检查脚本及对比任务形状,确保技能符合可移植契约标准并选择最小化原语组合。

phases/13-tools-and-protocols/22-skills-and-agent-sdks/outputs/skill-contract-reviewer/SKILL.md rohitg00/ai-engineering-from-scratch

Trigger Scenarios

Agent Skill 即将成为可复用工件时 需要验证 SKILL.md 是否符合便携契约规范时

Install

npx skills add rohitg00/ai-engineering-from-scratch --skill skill-contract-reviewer -g -y
More Options

Non-standard path

npx skills add https://github.com/rohitg00/ai-engineering-from-scratch/tree/main/phases/13-tools-and-protocols/22-skills-and-agent-sdks/outputs/skill-contract-reviewer -g -y

Use without installing

npx skills use rohitg00/ai-engineering-from-scratch@skill-contract-reviewer

指定 Agent (Claude Code)

npx skills add rohitg00/ai-engineering-from-scratch --skill skill-contract-reviewer -a claude-code -g -y

安装 repo 全部 skill

npx skills add rohitg00/ai-engineering-from-scratch --all -g -y

预览 repo 内 skill

npx skills add rohitg00/ai-engineering-from-scratch --list

SKILL.md

Frontmatter
{
    "name": "skill-contract-reviewer",
    "license": "MIT",
    "metadata": {
        "lesson": "22"
    },
    "description": "Validate an Agent Skill package and choose the right instruction, capability, or lifecycle primitive before implementation."
}

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.

Version History

  • 39ea8a1 Current 2026-08-28 11:20

Same Skill Collection

.claude/skills/check-understanding/SKILL.md
.claude/skills/claude-certification/SKILL.md
.claude/skills/course-guide/SKILL.md
.claude/skills/find-your-level/SKILL.md
.claude/skills/learn-agent-skills/SKILL.md
.claude/skills/learn-mcp/SKILL.md
.claude/skills/learn/SKILL.md
.claude/skills/start-learning/SKILL.md
phases/13-tools-and-protocols/24-skill-discovery-and-progressive-disclosure/outputs/skill-catalog-builder/SKILL.md
phases/13-tools-and-protocols/25-skill-invocation-and-routing/outputs/skill-invocation-router/SKILL.md
phases/13-tools-and-protocols/26-skill-permissions-sandboxes-and-trust/outputs/skill-safety-reviewer/SKILL.md
phases/13-tools-and-protocols/27-skill-evals-packaging-and-portability/outputs/skill-release-gate/SKILL.md
skills/check-understanding/SKILL.md
skills/claude-certification/SKILL.md
skills/course-guide/SKILL.md
skills/find-your-level/SKILL.md
skills/learn-agent-skills/SKILL.md
skills/learn-mcp/SKILL.md
skills/learn/SKILL.md
skills/start-learning/SKILL.md

Metadata

Files
0
Version
d18b8fe
Hash
84345705
Indexed
2026-08-28 11:20

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-09 21:47
浙ICP备14020137号-1 $방문자$