skill-release-gate
Evaluate an Agent Skill bundle for structural integrity, trigger quality, artifact improvement, script correctness, safety, installed-tree integrity, and target-host portability before release.
- License 许可
- MIT
- 最近更新
- 2026-10-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- skill-release-gate
- license
- MIT
- metadata
- { "lesson": "27" }
- description
- Evaluate an Agent Skill bundle for structural integrity, trigger quality, artifact improvement, script correctness, safety, installed-tree integrity, and target-host portability before release.
02 资源文件 7
- 资产文件assets/hosts.json752 B
- 资产文件assets/manifest.json782 B
- 参考文档evals/artifacts.json316 B
- 参考文档evals/cases.json866 B
- 参考文档evals/evidence.json606 B
- 参考文档references/eval-contract.md3.6 KB
- 脚本scripts/evaluate_skill.py37.6 KB
03 SKILL.md 正文
Skill release gate
Use this skill before publishing or distributing an Agent Skill directory bundle.
Workflow
- Resolve
SKILL_ROOTto the absolute directory containing this installedSKILL.md. Do not assume the process cwd is the installed bundle. - Resolve
TARGET_ROOTfrom the original workspace working directory and resolve the user-supplied candidate as an absoluteTARGET_BUNDLE. - Read
references/eval-contract.mdfromSKILL_ROOT. - Inspect the positive and near-miss trigger cases in
evals/cases.jsonunderTARGET_BUNDLE. - Inspect the shared baseline and with-skill assertions in
evals/artifacts.jsonunderTARGET_BUNDLE. - Inspect the explicit script and safety results in
evals/evidence.jsonunderTARGET_BUNDLE. - Inspect the declared runtime capabilities in
assets/hosts.jsonunderTARGET_BUNDLEand verify the target file hashes against itsassets/manifest.json. - For production, replace deterministic predictions, artifacts, evidence,
and host capabilities with captured results; set all four captured modes;
and bind every raw trigger observation, both artifacts, the complete
evidence set, and the non-empty host matrix to non-empty sources and
matching SHA-256 provenance digests. These local checks can set
localEvidenceReady, but locally recomputable hashes do not prove capture. - Obtain an external JSON attestation whose
evidenceRootmatches the report, plus the SHA-256 of its exact bytes from a separate trusted policy or release channel. The attestation must be a regular file outside the target bundle. - Before execution, show the exact resolved argv. The installed evaluator is
scripts/evaluate_skill.pyunderSKILL_ROOT. For the shipped lesson fixture, build argv frompython3, that absolute evaluator path,--fixture-demo, and the absoluteTARGET_BUNDLE. For production, use the same installed script with--attestation,--trusted-attestation-sha256, and the absoluteTARGET_BUNDLE, without--fixture-demo. - Return
checksPassed,fixturePassed,localEvidenceReady,trustAnchorValid,productionReady, andpassedwith the evidence root, evaluation modes, failed checks, precision, recall, every raw trigger observation, per-case repeated-run rates, artifact comparison, script and safety evidence, installed-tree verification, and portability matrix. Include the resolved script path, resolved target path, cwd, exact argv, and exit code. Mark unavailable observations unverified.
Output contract
Return the complete JSON evaluation report. Preserve every layer-specific check and its evidence so a passing aggregate cannot hide a routing, artifact, script, safety, installed-tree, or portability failure. fixturePassed reports a successful teaching fixture. localEvidenceReady reports only local digest integrity. passed is true only when productionReady also has a valid out-of-bundle trust anchor.
Failure behavior
If configuration is invalid, provenance is absent or mismatched, the trusted attestation is missing or invalid, a file hash differs, a required capability is absent, or any production gate fails, stop with a nonzero result and report the failed layer. The explicit --fixture-demo path may exit successfully only when fixturePassed is true, and it never makes a release claim. Never publish, install elsewhere, repair evidence, create the trust decision, or weaken a threshold automatically.
Do not publish a bundle merely because SKILL.md parses or one positive prompt activates. Do not label a package portable when a target drops required companion files or ignores required runtime extensions.
04 同仓库更多 Skills
write-manual
Writes a long technical manual that explains one subject at one pinned version, from its purpose to each request and response. Every listing comes from an offline capture, every claim traces to a ranked source, and an audit must report TOTAL 0. Use it for "write a manual", "write a 101 manual for <subject>", "manual.json", "add a manual section", "build a capture kit", "audit the manual", or "pin a spec version and document it".
start-learning
One-time onboarding for the AI Engineering from Scratch curriculum (523 lessons, 20 phases). Interviews the learner, runs the placement quiz, and writes LEARNING.md, a persistent study plan the learn skill drives. Trigger phrases: "start learning", "set up the course", "begin the curriculum", "onboard me", "create my learning plan"
motion-figure
Builds figures that move or respond to the reader, in three tiers: SMIL animations and slider widgets inside lessons, interactive mechanism figures that show the named parts of a real system with a computed verdict, and ordered dither bands in the course palette. Triggers: "animated figure", "add a slider widget", "interactive figure", "show how this system works", "make this diagram move", "dither masthead", "mechanism figure", "figure fence".
mcpa-certification
AI-native tutor and onboarding workflow for the MCPA (Model Context Protocol Associate) certification in AI Engineering from Scratch. Use when a learner wants to prepare for the MCPA, resume their certification path, learn the next lesson interactively, run and verify practical labs, take the diagnostic or a full mock, or remediate weak exam domains from GitHub with Claude Code, Codex, ChatGPT, Cursor, or another agent.
learn
Interactive lesson tutor for the AI Engineering from Scratch curriculum. Reads LEARNING.md, fetches the next lesson, teaches it section by section in the terminal, quizzes at the end, and records progress. Works cloned or entirely over raw.githubusercontent.com — no setup required. Trigger phrases: "next lesson", "teach me", "continue the course", "let's learn", "resume learning"
learn-reverse-engineering
Focused interactive tutor for the Reverse Engineering path in AI Engineering from Scratch. Start or resume this route when a learner wants to read a compiled program: file formats, disassembly, control flow, lifting, evidence, proof, calling conventions, compiler idioms, linking, types, debugging, bytecode, diffing, symbolic execution, and AI-assisted analysis. Teaches one lesson per invocation and records evidence in REVERSE-ENGINEERING-LEARNING.md.