active/ag-judge/SKILL.md
Judge agent work as approve, reject, or escalate.
npx skillsauth add kevinslin/skills ag-judgeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Judge AI agent work before execution. Score each judgement on impact, risk, and size, and choose a decision classification from the active judge book.
Judge books live at references/jb.[topic].md.
Use jb.template.md as the starting point for every new judgebook.
Available judge books:
references/jb.agent-optimize.md: Use when judging meta agent optimization work over its past sessions.references/jb.coding.md: Use when judging code-related pull-request work.references/jb.template.md: Boilerplate template for creating a new judgebook.| Concept | Meaning | Maps to Review Workflow | Maps to Create Judgebook Workflow |
| --- | --- | --- | --- |
| judgement | Smallest independent decision object to score and classify. | Steps 1, 4-9 and ## Judgement N output blocks. | Step 4 (human escalation/reply contract) and step 5 (classification rules must reference judgement outcomes). |
| judge book | Topic-specific policy file (references/jb.[topic].md) that defines scoring and decision rules. | Step 2 selects the active judge book. | Steps 1-2 create/select topic and file structure. |
| evidence | Durable artifacts required before scoring. | Step 3 gathers and checks sufficiency. | Steps 2 and 5 require an explicit ## Evidence section. |
| scores (impact, risk, size) | Integer profile (1-5) used to evaluate each judgement. | Step 4 scoring and step 6 reasoning. | Step 3 defines anchors/interpolation in ## Criteria. |
| decision classification (APPROVE, REJECT, ESCALATE) | Threshold-rendered outcome for a judgement. | Step 5 renders the classification and step 6 explains the fired rule. | Step 4 defines threshold policy and escalation behavior. |
| human decision | Human reply for escalated judgements via Judgement N: APPROVE or Judgement N: REJECT. | Step 7 collects replies and resolves classifications. | Step 4 must preserve this reply contract. |
| summary buckets | Final outcome rollup categories across all judgements. | Step 9 and the ## Summary output block. | Step 4 and step 5 must keep decision outcomes compatible with these buckets. |
Trigger best matches the judgement.
Evidence section.impact, risk, and size.
1, 2, 3, 4, or 5.Criteria.1-2 as low, 3 as medium, and 4-5 as high unless the judge book says otherwise.Threshold.
APPROVE, REJECT, or ESCALATE.ESCALATE.ESCALATE, state which threshold triggered escalation, give a concise recommendation, and mark the judgement as pending human input.ESCALATE and the human has not replied yet, stop after rendering a ## Human Decisions Needed section.Judgement N: APPROVE or Judgement N: REJECT.Apply or Validate actions inside ag-judge.Judgements with outcome APPROVEJudgements with outcome REJECTJudgements with outcome ESCALATEJudgements pending human inputnone for empty buckets.Use this workflow when asked to add a new judgebook.
references/jb.[topic].md.Trigger that clearly says when this book should be selected.references/jb.template.md.Trigger, Evidence, Criteria, Threshold, Alignment.impact, risk, and size.2 and 4.APPROVE, REJECT, and ESCALATE.## Human Decisions NeededJudgement N: APPROVE or Judgement N: REJECTJudgements pending human inputApply, Validate, or Delegation sections in judgebooks.Available judge books describing when it should be used.Review Workflow.python3 /Users/kevinlin/.codex/skills/sc/scripts/quick_validate.py /Users/kevinlin/code/skills-private/ag-judge.Render one section per judgement:
## Judgement N: <short title>
- Judge book: <path>
- Evidence: <artifacts reviewed or missing evidence that forced escalation>
- Scores: impact <1-5>/5, risk <1-5>/5, size <1-5>/5
- Decision outcome: APPROVE | REJECT | ESCALATE
- Reasoning: <why the scores and threshold produced this classification>
For escalated judgements waiting on a reply, also render:
## Human Decisions Needed
- Judgement N: recommend APPROVE | REJECT
- Reason: <one-line threshold-based reason>
- Reply with: `Judgement N: APPROVE` or `Judgement N: REJECT`
Then render:
## Summary
- Judgements with outcome APPROVE: ...
- Judgements with outcome REJECT: ...
- Judgements with outcome ESCALATE: ...
- Judgements pending human input: ...
development
Create, rename, audit, or close a tracked Codex task whose turns and status are persisted in the local thread ledger. Only use when directly invoked.
testing
Manage Git preflight, branch and worktree creation, and completed-work cleanup. Use when explicitly invoked.
databases
Automatically use for durable knowledge, configured project-context lookup, and schema-backed artifact layouts.
content-media
Create, update, or optimize skills and SKILL.md content.