/powertools:search-quality-evaluationfrom powertools
Evaluate the quality of a search or information-retrieval system: choose the right ranking metrics, build a relevance-judgment (qrels) set, and turn the scores into ship / no-ship decisions. Use when measuring search, retrieval, or RAG-retrieval quality; comparing retrieval variants (embeddings, rerankers, filters, chunking); choosing between Precision@K, Recall@K, MRR, MAP, and NDCG; building a golden / labeled query set; or diagnosing why offline scores and online behavior disagree. Trigger on "evaluate search quality", "which IR metric", "measure retrieval relevance", "build qrels / a golden set", "NDCG / MRR / MAP", "is my RAG retrieval good", or any review of a search-evaluation harness.
Ships in powertools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
An information-retrieval (IR) system takes a query and returns a ranked list. Evaluating it means measuring whether it returns the right items in the right order for real queries — document search, product search, ticket or code search, and retrieval for RAG.
"Correct" here is ranking quality, not a single value, and live systems shift under you. So you score against a fixed, labeled test set offline, then confirm the wins hold in production. This skill covers the metrics, the labeling workflow, and how to read the scores.
They often disagree. Treat offline as the gate for correctness and online as the gate for product impact. (Diagnosing a disagreement is a signal, not noise — see the last section.)
Build a relevance-judgment set (qrels): for each query, a human label on each candidate item. Labels are binary (relevant / not) or graded (e.g. exact / substitute / irrelevant). Then run the system and compute:
| Metric | Plain question it answers | Relevance |
|---|---|---|
| Precision@K | Of the top K results, how many are relevant? (How much noise?) | binary |
| Recall@K | Of all relevant items, how many appear in the top K? (What are we missing?) | binary |
| MRR@K | How high is the first relevant result, on average? | binary |
| MAP@K | Are all the relevant items ranked early, across the list? | binary |
| NDCG@K | Did we rank better items higher, counting "highly relevant" above "somewhat"? | graded |
Notes that change how you read them:
The metric encodes what "failure" means, so choose it from user intent, not habit.
| Goal in production | Optimize | What it tells you |
|---|---|---|
| First correct result, fast | MRR@K | Rank of the first relevant item |
| Clean top results | Precision@K | Noise level in the top K |
| Don't miss key documents | Recall@K | Coverage in the top K |
| Strong ranking across many results | MAP@K | Early placement of all relevant items |
| Graded / "almost right" has value | NDCG@K | Value-weighted ordering |
Report a small set, name the one you optimized for, and defend a change against that number.
For RAG, retrieval quality caps generation quality, so evaluate retrieval first, then whether the generator grounded itself in the retrieved context. Label more strictly: "supports the answer," not "related to the topic" — weak-but-topical context still raises hallucination risk.
What you can retrieve is only what made it into the index. Preprocessing failures show up as metric regressions even when the retriever is sound — so re-run the same harness whenever you change extraction, structure handling, chunking, or metadata.
| Preprocessing failure | Symptom |
|---|---|
| Missed / dropped text (bad extraction, OCR) | Recall drops — relevant items aren't searchable |
| Flattened tables | NDCG drops — high-value facts lose structure and rank poorly |
| Merged sections (mixed-topic chunks) | Precision drops — one chunk matches several intents |
| Missing metadata (source, date, type, author) | MAP drops — ranking can't separate near-duplicates or apply domain boosts |
A metric is useful only when it points to a next action:
Bootstrap. Pull a query set from behavior logs, label a small pooled candidate set with consistent rules, and grow coverage as repeated query patterns appear. Binary or dense/sparse/hybrid retrieval doesn't change the method — the work is defining relevance to match how your product uses similarity.
Adapted from Evaluating Search Quality in Information Retrieval Systems, Unstructured (Apr 2026): https://unstructured.io/insights/evaluating-search-quality-in-ir-systems. The original frames preprocessing around Unstructured's product; this skill keeps the vendor-neutral IR-evaluation substance.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jordangaston/claude-plugins --plugin powertools79 skills in this plugin
/ai-camera-movementsLibrary of 46 camera movement prompt blocks for AI video generation (Seedance, Kling, Veo, Runway, Higgsfield). Use this skill EVERY time the user needs a camera move for a video prompt, asks "what camera movement should I use", wants a dolly/pan/orbit/zoom/crane/drone/tracking/handheld/whip-pan/FPV/snorricam/tilt-shift/earth-zoom prompt, asks to add camera motion to a shot, wants to compare camera moves for a scene, or says "Run Camera" / "camera move for this shot". Also trigger when building shot lists or video prompts with other skills (ai-filmmaking, seedance-prompt-structure, genhq-seedance-2-prompt-builder) and a camera instruction is needed — this skill supplies the camera block./ai-image-promptsTurn a seed idea into a polished AI image-generation prompt using a 6-part structure: [medium], [subject], [action/pose], [environment], [style/vibe], [technical specs]. Use this skill whenever the user wants a prompt for generating an image with any model — Midjourney, DALL-E, Imagen, Nano Banana, Flux, Stable Diffusion, Freepik, or unnamed — or asks to 'write an image prompt,' 'make a prompt for this idea,' 'improve my image prompt,' or gives a rough visual idea ('a red panda barista,' 'cyberpunk samurai in the rain') and wants it image-ready. Also trigger when the user asks why their image prompts produce weak or inconsistent results. Covers any visual medium: photorealistic, digital painting, 3D render, anime, illustration, pixel art, watercolor, concept art, and more.Other plugins' skills for the same job