All skills
Skillintermediate

add meta judge.feature

Do following: - Refine plugins/customaize-agent/skills/create-rule/SKILL.md to properly follow skill structure and have proper rule creation process (follow plugins/customaize-agent/skills/create-skill/SKILL.md). - Create meta judge agent in the sadd plugin - Create judge agent in the sadd plugin - create new set-rule skill in sadd plugin that should add or modify .claude/rules, by using meta judg

Claude Code Knowledge Pack7/10/2026

Overview

Do following:

  • Refine plugins/customaize-agent/skills/create-rule/SKILL.md to properly follow skill structure and have proper rule creation process (follow plugins/customaize-agent/skills/create-skill/SKILL.md).
  • Create meta judge agent in the sadd plugin
  • Create judge agent in the sadd plugin
  • create new set-rule skill in sadd plugin that should add or modify .claude/rules, by using meta judge.

Description

Check existing plugins/sdd/prompts/judge.md for use it as basis for the meta judge and simple judge.

Meta Judge

Sources: @https://www.themoonlight.io/en/review/learning-to-judge-llms-designing-and-applying-evaluation-rubrics @https://github.com/lmarena/arena-hard-auto/blob/196f6b826783b3da7310e361a805fa36f0be83f3/utils/judge_utils.py - Arena Hard judge prompt

Meta Judge should produce checklist,criteria/metrics and weight by folloding GER‑Eval’s methodology based on the user prompt, befoire implementation even starts. This information will be used by the judge to evaluate the implementation artifact.

Role and task declaration: define the meta judge as a strict evaluator, not a helper

He should produce YAML or JSON entries of the form:

  • name: short label (“Factual accuracy”), -description: what the dimension means and what it covers,
  • scale: either numeric (1–5) or categorical ({poor, fair, good, excellent, ideal}),
  • instruction: instructions to the judge like “Give 1 if any major factual error is present; give 5 if all claims are supported by the provided context.”

Overral Meta Judge flow:

  • Meta judge should collect infomration in codebase or related sources based on user prompt, to generate better criteria and weight.

  • Meta judge should create or modify existing .claude/rules if it applicable for prompt in order to provide Contrastive Examples for the judge.

Checklist source: https://arxiv.org/abs/2410.03608 Checklist criteria should be boolean, atomic and specific, so it can be met or not met specificaly, for example "Does code follow clean code principles?" is not correct, but "Does code contain duplicated logic?" is correct. It should contain specific criteria that say whether task was completed or not. For example for prompt: "Write smoke tests for the service", checklist should contain criteria like "Does smoke tests exist?", "Do smoke tests were run and passed?", "Do smoke tests cover endpoints?", but it should not contain "Does smoke test cover all critical paths?" - it is too vague and not specific enough, it can be refined as a rubric/metrics.

Metrics: explicitly describe what to check (e.g., relevance, coherence, faithfulness, helpful, relevant, and concise), again as clear, named dimensions. Describe what each metrics is means, for example in case of simple question and criteria description includes "Helpful means the answer correctly responds to the prompt or follows the instructions. Relevant means all parts of the response closely connect or are appropriate to what is being asked. Concise means the response is clear and not verbose or excessive"

Scoring scheme: define what each score means and the conditions for each bin; avoid “1–10 without definitions”.

Meta judge should use Recursive Rubric Decomposition (RRD) from Rethinking Rubric Generation for Improving LLM Judge and Reward Modeling for Open‑ended Tasks: https://arxiv.org/pdf/2602.05125. Meta judge should start from a coarse initial rubric and run a decompose → filter → reweight cycle to get:

  • more fine‑grained, discriminative criteria,
  • removal of redundant / correlated criteria, and
  • better correlation‑aware weighting over dimensions The goal is specifically to improve LLM judges and reward models: they show large gains in preference‑judgment accuracy on JudgeBench and other benchmarks, and stronger reward signals for RFT when using RRD‑generated rubrics versus baseline rubrics

Add RRD cycle at the end of process, meta judge after producing rubrics should run cycle at least 1 time before returning the final rubrics.

Additional criteria:

  • Explicit criteria list: pass criteria as separate, clearly named items with definitions, not buried in prose
  • Structured output: force JSON/YAML with fields like criterion_name, score, reason, possibly with a top‑level overall_label
  • Note when user prompt has any ambiguity or more than one interpretation, it is more helpful and appropriate to ask for clarifications or more information from the user than providing an criteria/metrics based on assumptions

Judge

Judge should evaluate the implementation artifact based on the meta judge criteria and weight.

Role and task declaration: define the judge as a strict evaluator, not a helper

He should produce a score and a justification for the score. He should produce a verification 5 questions about your evaluation. He should answer verification questions.

Overral judge flow:

  • Judge should collect information in codebase or related sources based on user prompt, to generate better criteria and weight
  • Judge should provide his version of the result before judging any answers using think tool.
  • When evaluating agent result, compare it with his own result.
  • judge must identify and correct any mistakes or inaccurate results
  • then reate if agent results based on rurics/crtiteria/metrics/checklist.
  • identify any missing important resuls/artifcats/checks that would be beneficial to include in the end result.

Important to properly set scale, default score allways should be 2, anything upper should be justified.

After verification if judge has found any issues, he must create/modify .claude/rules to provide better contrastive examples for the next time implementation.

Chain‑of‑thought or explanation: judge should produce the reasoning FIRST, then score; this improves stability and debuggability

Abstract judge examples

Examples of evaluation criteria per task type. They too abstract, plugins/sdd/prompts/judge.md is done much better, and still should be used as basis, but this variants provide high level structure for different task types:

Answer Relevance example

You are an expert evaluator tasked with assessing how well an LLM output addresses its input.

## Evaluation Criteria:

1. Analyze the input to understand what is being asked or requested

2. Examine the output to see what information is provided

3. Determine if the output directly addresses the input

4. Check for irrelevant or off-topic information in the output

5. Assess completeness - does the output answer all aspects of the input?

6. Consider conciseness - is the output appropriately focused?

## Evaluation Instructions:

Evaluate how well the output addresses the input by analyzing the relevance of the response content.

Assign a score from 1 to 5 where:

- 5 = Output perfectly addresses the input with all content being relevant

- 4 = Output mostly addresses the input with minor irrelevant details

- 3 = Output partially addresses the input with some irrelevant content

- 2 = Output barely addresses the input, mostly irrelevant

- 1 = Output does not address the input at all

Task Completion example

You are an expert evaluator tasked with assessing task completion in LLM outputs.

## Evaluation Criteria:

1. Identify the specific task requested in the input

2. Determine all requirements and constraints mentioned

3. Check if the output fulfills each requirement

4. Verify the output format matches any specified format

5. Assess completeness - are all parts of the task done?

6. Validate the quality of task execution

## Evaluation Instructions:

Evaluate whether the output successfully completes the requested task.

Assign a score from 1 to 5 where:

- 5 = Task fully completed with all requirements met

- 4 = Task mostly completed with minor omissions

- 3 = Task partially completed with significant gaps

- 2 = Task barely attempted with major failures

- 1 = Task not completed or attempted

Prompt Adhesion

You are an expert evaluator tasked with assessing prompt adherence in LLM outputs.

## Evaluation Criteria:

1. Extract all specific instructions from the input

2. Identify format requirements (JSON, list, length, etc.)

3. Check style requirements (tone, perspective, formality)

4. Verify constraint compliance (word limits, exclusions, etc.)

5. Assess structural requirements (sections, order, etc.)

6. Validate all instructions are followed

## Evaluation Instructions:

Evaluate how well the output follows all instructions in the input.

Assign a score from 1 to 5 where:

- 5 = All instructions perfectly followed

- 4 = Most instructions followed with minor deviations

- 3 = Some instructions followed, some ignored

- 2 = Few instructions followed

- 1 = Instructions largely ignored

Integration

Need integrate meta judge and judge to sadd plugin skills: do-and-judge, do-in-steps, do-in-parallel, judge-with-debate.

Each of skills should call meta judge with exact user prompt so it produces the criteria and weight and then call judge to evaluate the implementation artifact.

Rules

Source: @https://arxiv.org/html/2310.07641v2

Rules should be based on LLMBar evaluator paper: explicit high‑level rules like “prioritize correctness over style; do not reward hallucinated detail”, which significantly and consistently improves evaluator accuracy across both natural and adversarial test sets and include bad/good examples for the implementation agent and judge

Create new /set-rule skill in sadd plugin that should add or modify .claude/rules files with the rules: include there guidlines to launch meta judge to do the modification (meta judge should have all guidlines how to properly write the rules)

Rules examples

https://github.com/vercel-labs/agent-skills/tree/main/skills/react-best-practices/rules - React Best Practices from Vercel Labs: uses Description, Incorrect, Correct examples template

Claude code guidlines for rules in plguins/customaize-agent/skills/create-rule/SKILL.md

Sources

All listed sources already loaded into .specs/research/papers/ directory. You must explore this papers, gather information and apply them in order to implement required agents and skills: