Логотип Ag Judge

Ag Judge

Спільнота
kevinslin
ag-judge

Judge agent work as approve, reject, or escalate.

Огляд

Видавецьkevinslin
Репозиторійagstack
Назва навичкиag-judge
Зірки
26
Форки
1
Файли в пакеті
3
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 3

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: kevinslin. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Ag Judge у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/kevinslin/agstack/tree/main/active/ag-judge
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kevinslin/agstack.git /tmp/agstack
mkdir -p .claude/skills
cp -r /tmp/agstack/active/ag-judge .claude/skills/ag-judge
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Ag Judge в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Ag Judge, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Ag Judge не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Ag Judge

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

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.

Concepts

ConceptMeaningMaps to Review WorkflowMaps to Create Judgebook Workflow
judgementSmallest 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 bookTopic-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.
evidenceDurable 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 decisionHuman 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 bucketsFinal 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.

Review Workflow

  1. Split the input into independent judgements.
    • Judge each judgement separately.
    • Keep judgements small enough that one decision can be applied or rejected without bundling unrelated changes.
  2. Select the judge book whose Trigger best matches the judgement.
    • If no judge book clearly matches, stop and ask for a human decision or a new judge book.
  3. Gather evidence before scoring.
    • Read the artifacts required by the active judge book's Evidence section.
    • Prefer durable artifacts such as diffs, affected files, prior failures, validation output, and the recommendation text itself.
    • If the required evidence is missing, contradictory, or too weak to justify a score, do not guess. Escalate to the human or ask for the missing artifacts.
  4. Score the judgement on impact, risk, and size.
    • Use integers only: 1, 2, 3, 4, or 5.
    • Follow the active judge book's Criteria.
    • Treat 1-2 as low, 3 as medium, and 4-5 as high unless the judge book says otherwise.
  5. Render the decision classification from the judge book's Threshold.
    • Render exactly one outcome per judgement: APPROVE, REJECT, or ESCALATE.
    • If threshold rules do not resolve cleanly, classify as ESCALATE.
  6. Explain the decision.
    • For every automatically rendered judgement, state the score reasoning and the exact threshold rule that fired.
    • For ESCALATE, state which threshold triggered escalation, give a concise recommendation, and mark the judgement as pending human input.
  7. Pause for human input when needed.
    • If one or more judgements are ESCALATE and the human has not replied yet, stop after rendering a ## Human Decisions Needed section.
    • For each pending judgement, include the judgement number, short title, recommended decision, and one-line reason.
    • Ask the human to reply using exact lines of the form Judgement N: APPROVE or Judgement N: REJECT.
    • If the human replies for only some judgements, resolve only those judgements and leave the rest pending.
  8. Stop at classification output.
    • NEVER execute Apply or Validate actions inside ag-judge.
    • Do not emit execution instructions.
    • Preserve original scores and score reasoning unless the human explicitly asks for re-judgement.
  9. End with a summary covering all judgements.
    • Judgements with outcome APPROVE
    • Judgements with outcome REJECT
    • Judgements with outcome ESCALATE
    • Judgements pending human input
    • Include none for empty buckets.

Create Judgebook Workflow

Use this workflow when asked to add a new judgebook.

  1. Identify the topic and intended trigger.
    • Choose a short topic slug and name the file references/jb.[topic].md.
    • Write a one-sentence Trigger that clearly says when this book should be selected.
  2. Start from the template.
    • Copy the structure from references/jb.template.md.
    • Keep all required sections: Trigger, Evidence, Criteria, Threshold, Alignment.
  3. Fill in the scoring model.
    • Define concrete anchors for impact, risk, and size.
    • Prefer explicit 1/3/5 anchors and say how to interpolate 2 and 4.
  4. Define the decision policy.
    • State threshold rules for APPROVE, REJECT, and ESCALATE.
    • Make the escalation path compatible with the main skill:
      • render pending items under ## Human Decisions Needed
      • require replies in the form Judgement N: APPROVE or Judgement N: REJECT
      • leave unresolved items in Judgements pending human input
  5. Keep judgebooks classification-only.
    • Do not include Apply, Validate, or Delegation sections in judgebooks.
    • Judgebooks should only define how to score and classify judgements.
  6. Register the new judgebook in this skill.
    • Add one bullet under Available judge books describing when it should be used.
  7. Validate the result.
    • Re-read the new judgebook and confirm it is consistent with the Review Workflow.
    • Run python3 /Users/kevinlin/.codex/skills/sc/scripts/quick_validate.py /Users/kevinlin/code/skills-private/ag-judge.

Output Format

Render one section per judgement:

markdown
## 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:

markdown
## 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:

markdown
## Summary
- Judgements with outcome APPROVE: ...
- Judgements with outcome REJECT: ...
- Judgements with outcome ESCALATE: ...
- Judgements pending human input: ...

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Ag Judge?

Judge agent work as approve, reject, or escalate.

Навіщо використовувати Ag Judge у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Ag Judge — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Ag Judge у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/kevinslin/agstack/tree/main/active/ag-judge. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Ag Judge?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Ag Judge?

Зі скількома забажаєте. У TypingMind ви можете використовувати Ag Judge із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Ag Judge?

На GitHub цю навичку публікує kevinslin. Умови ліцензування дивіться в репозиторії. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇