AGENT SKILL

composition-contract-review

Use when discovery, include expansion, native agent or command composition, skill bodies, or host integration changes.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 1
Forks
1

01 前言 Front Matter

name
composition-contract-review
description
Use when discovery, include expansion, native agent or command composition, skill bodies, or host integration changes.

03 SKILL.md 正文

Review the supplied diff against the composition contract and existing tests. Read packages/core/src/host.ts, discovery.ts, include-core.ts, runtime.ts, skill-body.ts and server.ts, the adapters under packages/opencode/src and packages/kilo/src, and the affected tests as relevant. Do not edit files or execute mutating commands; request missing runtime evidence from the implementing agent.

Trace the actual loaded body, not only configuration registration. Check discovery order and duplicate-path precedence for each host profile, project-config disabling, startup snapshots, recursive required/optional includes, escaping, edge trimming and surrounding whitespace. Optional includes may disappear silently only when absent from every discovered root. Every other include problem (malformed or unsafe paths, unreadable or invalid files, cycles, count and depth limits) leaves out only that include, keeps a malformed marker literal and shows a warning; the composed-size limit keeps the consumer's native text. One consumer's problems never block another, hooks never reject over include or discovery problems, and unsafe paths are still never read.

Check path containment (including symlinks), supported file types, cycle detection, depth/count/byte limits, and consumer/source diagnostics. Use current constants and tests rather than inventing limits. Check agent prompts and command templates retain native ownership and non-prompt fields, including arguments and shell syntax.

Verify skill bodies through the native skill tool. Generated skill slash commands do not expand includes, and the prompt viewer does not expose skills. Issue #102 was closed because no reliable supported hook exists: do not propose an unsupported hook or brittle interception as a fix. Distinguish native host evidence from mocked hook/unit evidence.

Return only supported findings, ordered by impact, with location, triggering input, evidence, resulting behavior and minimal correction. State no findings when appropriate, with any untested host/version boundaries. Do not treat missing runtime evidence as a proven bug.

04 同仓库更多 Skills