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でも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 3個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    kevinslinがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Ag Judge」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/kevinslin/agstack/tree/main/active/ag-judge
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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で使用

TypingMindのチャットでAg Judgeを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAg Judgeを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Ag Judgeは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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: ...

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Ag Judge」では何ができますか?

Judge agent work as approve, reject, or escalate.

TypingMindでAg Judgeを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Ag Judgeはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAg Judgeをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/kevinslin/agstack/tree/main/active/ag-judgeを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Ag Judgeを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Ag Judgeで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAg Judgeを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Ag Judge」は無料ですか?

kevinslinがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇