skill-contract-reviewer

skill-contract-reviewer is a skill for Claude Code, Codex from fancyboi999/ai-engineering-from-scratch-zh. It costs 24 tokens per session (411 once invoked), scanned A, original, MIT.

A contract-review skill for checking whether an agent skill package follows its required structure and choosing the right reusable building blocks before implementation.

In plain words
What is it for?
Use it to validate a skill directory, inspect its task shape, run its checker, and produce an evidence-backed review of its reusable primitives.
Why use it?
It catches missing or invalid skill metadata and separates instructions from permissions, tools, scripts, and other runtime capabilities.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to validate a skill directory, inspect its task shape, run its checker, and produce an evidence-backed review of its reusable primitives.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fancyboi999/ai-engineering-from-scratch-zh/skill-contract-reviewer
About the project

ai-engineering-from-scratch-zh is a Chinese-language adaptation of a course that teaches AI engineering by implementing algorithms, tools, and agents from the ground up. It is for learners following a 20-stage path across mathematics, machine learning, agent systems, and production topics, with lessons using Python, TypeScript, Rust, and Julia. The catalogue entries provide agent skills and instructions associated with the course.

fancyboi999/ai-engineering-from-scratch-zh · 1,056 stars · on GitHub · aieng-zh.cn

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fancyboi999/ai-engineering-from-scratch-zh --skill skill-contract-reviewer
Clone the repo
git clone --depth 1 https://github.com/fancyboi999/ai-engineering-from-scratch-zh

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for skill-contract-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/skills/fancyboi999/ai-engineering-from-scratch-zh/skill-contract-reviewer/github.svg)](https://agentmods.dev/skills/fancyboi999/ai-engineering-from-scratch-zh/skill-contract-reviewer)
Your own site
<a href="https://agentmods.dev/skills/fancyboi999/ai-engineering-from-scratch-zh/skill-contract-reviewer"><img src="https://agentmods.dev/badge/skills/fancyboi999/ai-engineering-from-scratch-zh/skill-contract-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-contract-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/skills/fancyboi999/ai-engineering-from-scratch-zh/skill-contract-reviewer"><img src="https://agentmods.dev/badge/skills/fancyboi999/ai-engineering-from-scratch-zh/skill-contract-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 411 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00411
Opus 5 $0.00012 $0.00205
Sonnet 5 $0.00005 $0.00082
Haiku 4.5 $0.00002 $0.00041

Measured 8d ago against content hash 36d02c5b43cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

skill-contract-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/check_skill.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

phases/13-tools-and-protocols/22-skills-and-agent-sdks/outputs/skill-contract-reviewer/SKILL.md · 24 lines

What it actually says

Skill 契约审查器

当工作流即将成为可复用的 agent 产物时,使用此 skill。

  1. SKILL_ROOT 设为包含本已安装 SKILL.md 的绝对目录。不要假定进程工作目录就是 Bundle。
  2. TARGET_ROOT 设为原始工作区的绝对工作目录,并在该根目录下解析候选 skill 目录。
  3. 读取 $SKILL_ROOT/references/contract.md,验证可移植 SKILL.md 的标识字段。
  4. 读取 $SKILL_ROOT/references/decision-model.md,区分仓库上下文、可复用方法、外部能力、生命周期时机、确定性逻辑和隔离委派。
  5. 执行前展示精确解析后的参数向量。运行 python3 "$SKILL_ROOT/scripts/check_skill.py" "$TARGET_SKILL",其中 TARGET_SKILLTARGET_ROOT 下候选 skill 的绝对目录。
  6. 检查 JSON 报告。讨论 host 专属扩展前,修复全部错误。
  7. 将候选产物与 $SKILL_ROOT/assets/task-shapes.json 比较,返回最小可组合原语集合。

不要声称运行时扩展属于可移植契约。不要将有效 skill 视作运行脚本或访问工具的权限。

返回验证报告、所选原语和解释每项选择的一句话。附上执行证据:解析后的脚本路径、目标路径、cwd、精确 argv 与退出码。若 host 无法暴露其中某项观察,将其标为未验证,不要虚构。

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 24 lines · 24 tokens per session scan A 36d02c5b43cf

Subscribe to this mod's changes

skill-contract-reviewer is a skill published in the GitHub repository fancyboi999/ai-engineering-from-scratch-zh (1,056 stars, last pushed 4d ago), licensed MIT. It adds 24 tokens to every session and 411 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.