Skip to content
Agentmart
Submit a tool

ai-model-evaluation

To systematically assess the performance, accuracy, and safety of LLM outputs using quantitative metrics and "LLM-as-a-Judge" patterns, ensuring production…

Skill by jyjeanne

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/jyjeanne-ai-model-evaluation

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

To systematically assess the performance, accuracy, and safety of LLM outputs using quantitative metrics and "LLM-as-a-Judge" patterns, ensuring production readiness. Use when: Before deploying any LLM application to production; When comparing different models (e.g., GPT-4o vs. Claude 3.5 Sonnet) or prompt versions; To detect regressions after updating prompts or RAG knowledge bases.

Use cases: ml, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/ai-model-evaluation

What's inside

Skill name
ai-model-evaluation
Description
To systematically assess the performance, accuracy, and safety of LLM outputs using quantitative metrics and "LLM-as-a-Judge" patterns, ensuring production readiness. Use when: Before deploying any LLM application to production; When comparing different models (e.g., GPT-4o vs. Claude 3.5 Sonnet) or prompt versions; To detect regressions after updating prompts or RAG knowledge bases.
License
MIT
Instructions
107 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

## Purpose
To systematically assess the performance, accuracy, and safety of LLM outputs using quantitative metrics and "LLM-as-a-Judge" patterns, ensuring production readiness.

## When to Use
- Before deploying any LLM application to production.
- When comparing different models (e.g., GPT-4o vs. Claude 3.5 Sonnet) or prompt versions.
- To detect regressions after updating prompts or RAG knowledge bases.

## Procedure

### 1. Define the Evaluation Dataset (Golden Set)
Create a `tests.json` file containing inputs and expected outputs.

```json
[
  {
    "input": "What is the return policy?",
    "expected": "You can return items within 30 days.",
    "context": "Our policy allows returns for 30 days from purchase date."
  }
]
```

### 2. Implementation with Promptfoo (CLI)
Promptfoo is a popular tool for running batch evaluations.

```bash
# Install
npm install -g promptfoo

# Initialize
promptfoo init
```

Configure `promptfooconfig.yaml`:
```yaml
prompts:
  - "Answer this question using the context: {{context}}. Question: {{input}}"

providers:
  - openai:gpt-4o

tests:
  - vars:
      input: "What is the return policy?"
      context: "30-day return policy applies."
    assert:
      - type: icontains
        value: "30 days"
      - type: llm-rubric
        value: "Does not mention unrelated topics"
```

### 3. RAG Evaluation (Ragas/DeepEval)
For RAG systems, evaluate the three-way relationship: Question, Context, and Answer.

```typescript
import { rce } from "deepeval"; // Conceptual example

async function evaluateRag(query: string, retrievalContext: string, output: string) {
  // 1. Faithfulness: Is the answer grounded in the context?
  // 2. Answer Relevance: Does it answer the query?
  // 3. Context Precision: Was the retrieved context relevant?
}
```

### 4. Custom LLM-as-a-Judge Script
Use a stronger model to grade your target model.

```typescript
async function gradeOutput(question: string, answer: string, reference: string) {
  const graderPrompt = `
    You are an impartial judge. Grade the student's answer based on the reference.
    Question: ${question}
    Reference: ${reference}
    Student Answer: ${answer}
    
    Provide a score from 1-10 and a brief explanation.
    Output JSON: { "score": number, "explanation": string }
  `;
  
  // Call GPT-4 with JSON mode enabled
}
```

### 5. Continuous Integration (CI)
Integrate evaluation into your GitHub Actions to prevent regressions.

```yaml
# .github/workflows/ai-eval.yml
jobs:
  evaluate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npx promptfoo eval
```

## Constraints
- **Bias**: LLM judges tend to prefer longer answers or answers from the same provider. Use diverse judges (OpenAI + Anthropic).
- **Cost**: Running evaluations on 1000s of rows can be expensive. Use `gpt-4o-mini` for simpler checks.
- **Reference Accuracy**: A "Golden Set" is only as good as the human-verified reference answers.

## Expected Output
A detailed report (HTML/JSON) showing pass/fail status, accuracy percentages, and regression analysis.

From jyjeanne/ai-setup-forge, MIT.

More from jyjeanne/ai-setup-forge

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
Mar 16, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from jyjeanne

Cite this page

ai-model-evaluation skill. Agent Mart. https://agentmart.dev/skills/jyjeanne-ai-model-evaluation (last updated 2026-10-24)