Logo Ag Judge

Ag Judge

Cộng đồng
kevinslin
ag-judge

Judge agent work as approve, reject, or escalate.

Tổng quan

Nhà phát hànhkevinslin
Kho mãagstack
Tên kỹ năngag-judge
Sao
26
Bản fork
1
Tệp đi kèm
3
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 3 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được kevinslin công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Ag Judge trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/kevinslin/agstack/tree/main/active/ag-judge
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân 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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Ag Judge trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Ag Judge ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Ag Judge với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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: ...

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Ag Judge làm được gì?

Judge agent work as approve, reject, or escalate.

Vì sao nên dùng Ag Judge trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Ag Judge là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Ag Judge trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/kevinslin/agstack/tree/main/active/ag-judge. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Ag Judge?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Ag Judge với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Ag Judge với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Ag Judge có miễn phí không?

Kỹ năng này được kevinslin phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇