agentleFS
ianshankianshank/Agents/skills/openai-judge/SKILL.md

openai-judge

Skill1 starsChanged 2 months agoApache-2.0View on GitHub

LLM-as-a-judge evaluations over OpenAI-compatible APIs (including NVIDIA Nemotron & LM Studio). Use whenever evaluating output quality, correctness, or scoring responses using standard rubrics.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the input prompt and grading rubric from their target paths.

    line 22
  2. Distinctive:

    Call the completion API with the requested prompt and formatting instructions (preferring JSON output).

    line 24
  3. Very specific:

    Write result.json to the output directory.

    line 26
  4. Distinctive:

    Prefer using the execution script:

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

openai-judge — E2E Action Skill

Perform LLM-as-a-judge scoring end to end: take prompt, rubric, and model endpoint, produce score and reasoning, and prove it worked before reporting success.

1. Preconditions (input contract)

Confirm these hold before doing anything:

  • Target prompt text and grading rubric are present in files.
  • OpenAI-compatible model endpoint is reachable (or --mock is specified for local-only validation).
  • Environment variables or configurations are populated for authentication (e.g. NVIDIA_API_KEY for Nemotron).

2. Procedure (the E2E steps)

  1. Read the input prompt and grading rubric from their target paths.
  2. Initialize the OpenAI-compatible client wrapper with model endpoint and api key.
  3. Call the completion API with the requested prompt and formatting instructions (preferring JSON output).
  4. Extract the verdict JSON containing the score and reasoning.
  5. Write result.json to the output directory.

Prefer using the execution script:

python scripts/run.py --model nvidia/nemotron-3-ultra-550b-a55b --prompt prompt.txt --rubric rubric.txt --out result.json

3. Output contract (postconditions — what "done" means)

  • Output file result.json is written.
  • Output is valid JSON with keys score and reasoning.
  • The score value is a float/integer representing the judgment.

4. Failure handling

  • On failure, clean up any partial files and raise a clear, descriptive error containing output/logs.
  • Gracefully handle JSON parsing errors by returning a structured default failure JSON.

5. Validation gate (before declaring success)

You are not done until this exits 0:

python scripts/validate_skill.py --skill . --tier structural,behavioral

6. Examples

Example 1 Input: prompt.txt (What is 2+2?), rubric.txt (Grade answer correctness) Output: result.json ({"score": 1.0, "reasoning": "The answer is correct."})

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.