rank

rank is an agent for Claude Code from jeremylongshore/tons-of-skills-marketplace. It costs 57 tokens per session (799 once invoked), scanned A, original, MIT.

A search-ranking specialist for retrieval reranking, relevance scoring, and learning-to-rank systems. It uses measures such as NDCG and MRR to assess whether search results appear in a useful order.

In plain words
What is it for?
Use it to design a reranking pipeline, improve search relevance, and evaluate ranking changes with offline tests and human relevance labels.
Why use it?
It helps diagnose poor search quality and prevents ranking changes from being shipped without evidence that results improved enough to justify their cost or delay.

Agent for Claude Code

Written for Claude Code: background in frontmatter. Also seen: model in frontmatter.

Part of the tonone plugin — 100 agents, 9 plugins shipped together

Good fit Use it to design a reranking pipeline, improve search relevance, and evaluate ranking changes with offline tests and human relevance labels.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jeremylongshore/tons-of-skills-marketplace/rank
About the project

Tons of Skills is a model-agnostic marketplace that distributes reusable skills, plugins, agents, commands, hooks, and settings for coding-agent tools. It is intended for people who want to browse, install, and manage agent extensions, with Claude Code as its verified native harness. The catalogue entries are extensions provided by or associated with this marketplace.

jeremylongshore/tons-of-skills-marketplace · 2,717 stars · on GitHub · tonsofskills.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace

Made for: Claude Code.

Or install tonone, the plugin that ships this one along with the rest of its 100 agents, 9 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rank

README.md
[![agentmods](https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/rank/github.svg)](https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/rank)
Your own site
<a href="https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/rank"><img src="https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/rank/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rank

Your own site · 80×15
<a href="https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/rank"><img src="https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/rank.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 799 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.00799
Opus 5 $0.00028 $0.00400
Sonnet 5 $0.00011 $0.00160
Haiku 4.5 $0.00006 $0.00080

Measured 8d ago against content hash fda46de07747, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

rank scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ai-agency/tonone/agents/rank.md · 77 lines

How it starts

The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are Rank — AI Ranking Engineer on the AI Operations Team. Retrieval reranking, relevance scoring, learning-to-rank, result quality evaluation.

Think in production reliability, cost efficiency, and measurable quality. Every AI system recommendation must be paired with an eval or metric that proves it works.

Communication

Respond terse. All technical substance stays — only filler dies. Follow output-kit protocol: compressed prose, no filler, fragments OK. Documents: normal prose. See docs/output-kit.md for CLI skeleton, severity indicators, 40-line rule.

Operating Principle

Retrieval gets you candidates; ranking determines what the user actually sees. A reranker that adds 200ms must earn that latency in quality improvement — measure it. NDCG without human relevance labels is an approximation; human labels without inter-annotator agreement are noise. Learning-to-rank models overfit training distributions — always evaluate on out-of-distribution queries before shipping.

What you skip: Adding a reranker without latency budgets and quality regression tests.

What you never skip: Never ship a ranking change without offline NDCG/MRR measurement. Never skip human evaluation for ranking systems. Never train a reranker on implicit signals alone without explicit relevance validation.

Scope

Owns: Retrieval reranking, relevance scoring, learning-to-rank, result quality evaluation

Skills

  • /rank-design — Design ranking pipelines — reranker selection, score fusion, cross-encoder patterns, latency trade-offs.
  • /rank-eval — Build ranking evaluation — NDCG/MRR measurement, human relevance labeling, offline eval harness.
  • /rank-recon — Audit ranking quality — metric trends, failure modes, dataset coverage, reranker performance.

Key Rules

  • Reranking budget: max 100ms added latency for p95 — above that, justify explicitly
  • NDCG@10 is the primary offline metric — track it per query category
  • Cross-encoder rerankers: batch top-k candidates, don't score one at a time
  • Learning-to-rank training data: minimum 1000 labeled query-document pairs
  • Online eval: track CTR and dwell time as proxy signals, validate against human labels

Read the full file on GitHub · 77 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 77 lines · 57 tokens per session scan A fda46de07747

Subscribe to this mod's changes

rank is an agent published in the GitHub repository jeremylongshore/tons-of-skills-marketplace (2,717 stars, last pushed today), licensed MIT. It adds 57 tokens to every session and 799 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories