Input
- Target (required):
<agent-root>/skills/*/SKILL.md - Sibling skills (optional): other
<agent-root>/skills/*/SKILL.mdin the same package or sharing the target's contract files — enables P-04; without them P-04 is deferred - Evidence (required when not pre-supplied): outputs from
scripts/validate_waza.shandscripts/validate.sh— run both in Workflow step 1 when absent from context
Output Specification
Return structured Markdown in accordance with references/common-output-format.md. That file is the source of truth for the output contract.
Skill-local addition: unlike other review skills, this skill runs validation scripts, so Status: failed also applies when both scripts fail. The ## Issues cause entry (no ItemID) then lists both commands, exit statuses, and stderr summaries.
Execution Scope
- Run validation scripts and parse results to assess SKILL.md quality against S-_, Q-_, P-_, and BP-_ checks.
- Check
waza checktoken output and apply Q-09 per Workflow step 2.
USE FOR:
- review new SKILL drafts before release
- note token budget advisories when
waza checkexceeds 500 tokens (Q-09) - report SKILL spec compliance findings in PR reviews
DO NOT USE FOR:
- implement product features
- debug product runtime failures unrelated to SKILL quality checks
- run benchmark content evaluations (
waza run eval.yaml) as a substitute for compliance checks - modify or overwrite the target SKILL.md without explicit user approval (review output only; do not write or commit changes)
- merge PRs or edit unrelated files
- review product runtime behavior or application business logic
Reference Files Guide
- common-checklist.md (always read)
- common-output-format.md (always read)
- category-best-practices.md (always read)
- category-patterns.md (always read)
- category-quality.md (always read)
- category-structure.md (always read)
- common-troubleshooting.md (read on failure)
Workflow
- If target
SKILL.mddoes not exist, setStatus: failedper references/common-output-format.md and stop without running other checks. Otherwise runbash scripts/validate_waza.sh <skill-name>andbash scripts/validate.sh <SKILL.md>(CWD:<agent-root>/skills/agent-skills-review/). - Record token budget from
waza checkwhen present; if count > 500, add a Q-09 advisory entry to## Issuesand do not list Q-09 in## Checks (Failed/Deferred Only). Q-09 fails only whenwaza checkran but its token count is not recorded; ifvalidate_waza.shfailed, defer Q-09 per step 5. A skill compressed below sibling depth is a BP-04 finding, not Q-09. - Apply checks in order:
BP-*(best practices),P-*(workflow/policy),Q-*(quality language),S-*(structure). For Q-12, read everyreferences/file and the option parsing of bundledscripts/; for P-04, compare shared rules with the sibling skills. - Report failed/deferred items with ItemIDs.
- If one validation script fails and the other succeeds, report successful checks normally and mark unresolved checks as deferred with script name and exit status.
- If both validation scripts fail, set
Status: failedand include both commands, exit statuses, and stderr summaries in## Issues.
Error Handling
| Condition | Severity | Action |
| ----------------------------------------------- | ----------- | ----------------------------------------------------------------------------------------------------- |
| Target SKILL.md does not exist | Fatal | Set Status: failed; stop without other checks |
| validate_waza.sh or validate.sh missing | Fatal | Stop; report missing script path |
| One validation script fails, the other succeeds | Recoverable | Report successful checks; defer failed script checks with exit status |
| Both validation scripts fail | Fatal | Set Status: failed with command, exit status, and stderr summary in ## Issues |
| common-checklist.md unavailable | Fatal | Stop; report missing dependency |
| common-output-format.md unavailable | Recoverable | Note missing file; emit ## Checks Summary, ## Checks (Failed/Deferred Only), and ## Issues only |
| Script output missing after one rerun | Recoverable | Defer affected checks; include command and stderr per troubleshooting |
Examples
- Prompt:
Review SKILL.md and report only failed/deferred items - Result: Structured report per references/common-output-format.md (failed/deferred only).