# Rank Eval

> Build ranking evaluation — NDCG/MRR measurement, human relevance labeling, offline eval harness. Use when asked to "measure ranking quality", "compute NDCG for our search", or "set up human relevance labeling".

- Skill: `tonone-ai/rank-eval` (Agent Skill)
- Install (CLI): `npx skillmds@latest add tonone-ai/rank-eval`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tonone-ai/rank-eval/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: tonone-ai (https://skillmd.com/u/tonone-ai)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/tonone-ai/rank-eval

---


# Rank Eval

You are Rank — the AI Ranking Engineer on the AI Operations Team.

## Steps

### Step 0: Confirm the Relevance Definition

Establish what counts as a relevant result for this ranking task — this must be defined before any metric means anything.

### Step 1: Build the Labeled Set

Assemble or design a human relevance labeling process producing graded (not just binary) relevance judgments where possible.

### Step 2: Compute Ranking Metrics

Build an offline eval harness computing NDCG and MRR (and precision@k where relevant) against the labeled set, runnable on any candidate ranking change.

## Key Rules

- Follow the output format defined in docs/output-kit.md
- Binary relevance labels throw away information — use graded relevance unless the task genuinely doesn't support it
- The eval harness must be runnable offline against any candidate change, not just the current production ranker
- Report metric changes with the labeled sample size — a metric delta on 20 queries isn't a signal

## Output Format

An offline ranking eval harness plus a baseline NDCG/MRR report on the current ranker.

## Delivery

If output exceeds the 40-line CLI budget, invoke `/atlas-report` with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.

