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

skill-contract-reviewer

GitHub

用于验证 Agent Skill 包的便携性与合规性,通过执行检查脚本并对比决策模型,确保在实现前选择正确的指令和原语。

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.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
a56b4b8
Hash
84345705
Indexed
2026-08-28 11:20

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-03 14:56
浙ICP备14020137号-1 $お客様$