model-comparator
Use this skill when comparing AI or LLM models on benchmarks, capability, cost, latency, context window, or task-specific fit to help teams select the right model for their use case and budget. Not for training or fine-tuning models. Not for building eval frameworks from scratch.
What this skill does
# Model Comparator ## Overview This skill helps engineering and product teams make informed, structured decisions about which AI or LLM model to use for a given task. It covers comparison across multiple dimensions: benchmark performance, real-world task capability, inference cost per token, latency (time-to-first-token and throughput), context window size, multimodal capabilities, fine-tuning availability, licensing, and data privacy. It provides frameworks for structured comparison, cost modeling at scale, and task-specific head-to-head evaluation to move beyond marketing benchmarks to production-relevant decisions. ## When to Use - Choosing between frontier models (GPT-4o, Claude 3.5 Sonnet, Gemini 1.5 Pro, etc.) for a new product feature - Deciding whether to use a proprietary API or a self-hosted open-source model - Selecting an embedding model for a RAG (retrieval-augmented generation) pipeline - Evaluating cost-quality tradeoffs for a high-volume production use case - Justifying a model switch to stakeholders with data - Comparing models for latency-sensitive applications (real-time chat, autocomplete) - Assessing model capabilities for a specialized domain (medical, legal, code, multilingual) ## When NOT to Use - Building evaluation infrastructure from scratch (use eval-designer skill) - Fine-tuning or training a model on custom data (use model training skills) - Comparing internal model versions (use eval-designer skill with your specific metrics) - Choosing between ML frameworks (TensorFlow vs PyTorch) — that is an infrastructure decision ## Quick Reference | Task | Approach | |------|----------| | Compare on cost | Calculate input + output token cost per 1M tokens; model at expected monthly volume | | Compare on latency | Measure TTFT and tokens/sec under expected concurrency; not just vendor specs | | Compare on task quality | Run task-specific evals on 50–200 representative examples; don't rely on public benchmarks alone | | Compare on context window | Check both advertised window AND effective window (quality degrades in the middle for long contexts) | | Compare open vs proprietary | Factor in: API cost vs GPU cost, data privacy, fine-tuning, operational complexity | | Select embedding model | Compare on retrieval recall (MTEB benchmark) and dimensions vs cost tradeoff | | Compare multimodal models | Test on your actual image/document types — capability varies significantly by domain | ## Instructions 1. **Define the comparison criteria** — List the dimensions that matter for your use case. Typical dimensions: task accuracy, cost per 1,000 API calls at production volume, p50/p95 latency, context window needed, rate limits, data privacy requirements, fine-tuning availability, and supported modalities. Weight each dimension by importance for your use case before running any tests. 2. **Establish a candidate list** — Select 2–5 models to compare. Include: the current model (if upgrading), the most cost-effective option, and the highest-quality option. Don't compare more than 5 — the evaluation overhead scales poorly. For general-purpose tasks, typical candidates: GPT-4o, Claude 3.5 Sonnet, Gemini 1.5 Pro, Llama 3 (self-hosted), Mistral Large. 3. **Build a task-specific eval set** — Pull 50–200 real examples from your production data (or realistic proxies). Public benchmarks (MMLU, HumanEval, GPQA) measure general capability but rarely predict performance on your specific task. Evaluate on your actual input distribution. 4. **Run standardized capability tests** — Use the same prompt (no model-specific optimization) across all models first to get a fair baseline. Then optionally re-run with model-specific prompting to see ceiling performance. Record both scores — the gap between them shows how prompt-sensitive each model is. 5. **Measure cost at scale** — Calculate cost per API call: (avg_input_tokens × input_price + avg_output_tokens × output_price) / 1,000,000. Then model monthly cost at your expected call volume. Include: context window overhead (system prompts, few-shot examples), output verbosity differences between models, and caching potential for repeated prompts. 6. **Benchmark latency under realistic conditions** — Don't use idle latency — test under your expected concurrent request load. Measure: Time to First Token (TTFT) for streaming UX, total latency for batch tasks, and throughput (tokens/second). Some models have fast TTFT but slow generation; others are the reverse. 7. **Assess context window quality** — Advertised context windows can be misleading. Test with the "needle in a haystack" approach: insert a key fact deep in a long document and ask the model to retrieve it. Many models degrade in the middle of their context window. For RAG, the effective useful context is often 30–50% of the advertised limit. 8. **Score against your weighted criteria** — Create a comparison matrix. For each dimension, normalize scores to 0–10 and apply your weights. The weighted total gives a framework for the decision, but don't blindly follow it — qualitative factors (vendor reliability, ecosystem support, compliance) matter too. 9. **Run a limited production pilot** — Before committing, run the top 2 candidates in production on a small traffic slice (1–5%). Measure real user outcomes (task completion, escalation rate, satisfaction) not just automated eval scores. Real users find failure modes that evals miss. 10. **Document the decision** — Write a model selection document with: candidates evaluated, criteria and weights, eval results, cost projections, the chosen model, and the criteria for when to revisit the decision (e.g., "re-evaluate if monthly cost exceeds $X or if quality benchmark drops below Y"). ## Examples ### Example 1: Comparing GPT-4o vs Claude 3.5 Sonnet for a Code Review Assistant **Input:** A developer tools company wants to choose a model for an automated code review feature. Requirements: high code quality, under $0.05/review, and < 3 second p95 latency. **Output:** **Comparison matrix:** ``` Dimension | Weight | GPT-4o | Claude 3.5 Sonnet | Notes -------------------|--------|--------|-------------------|------- Code review quality| 35% | 8.5 | 9.0 | Claude scores higher on nuanced feedback and security detection Cost per review | 25% | 7.0 | 8.0 | Claude input cheaper; GPT-4o output slightly cheaper; net ~15% cheaper for Claude P95 latency | 20% | 8.0 | 7.5 | GPT-4o has faster TTFT; Claude slower start but similar total for 500-token outputs Context window | 10% | 8.0 | 9.0 | Both support large contexts; Claude better at long-file analysis API reliability | 10% | 9.0 | 8.5 | OpenAI has better SLA documentation at time of eval -------------------|--------|--------|-------------------|------- Weighted score | | 8.1 | 8.5 | ``` **Cost modeling at production volume (10,000 reviews/month):** ``` Assumptions: - Avg input: 2,000 tokens (code file + system prompt + few-shot) - Avg output: 500 tokens (review comments) - Volume: 10,000 reviews/month GPT-4o pricing ($5/1M input, $15/1M output): Input cost: 10,000 × 2,000 / 1,000,000 × $5.00 = $100 Output cost: 10,000 × 500 / 1,000,000 × $15.00 = $75 Monthly total: $175 → $0.0175/review ✓ (under $0.05 budget) Claude 3.5 Sonnet ($3/1M input, $15/1M output): Input cost: 10,000 × 2,000 / 1,000,000 × $3.00 = $60 Output cost: 10,000 × 500 / 1,000,000 × $15.00 = $75 Monthly total: $135 → $0.0135/review ✓ (23% cheaper than GPT-4o) ``` **Task-specific eval results (100 code review cases):** ``` Metric | GPT-4o | Claude 3.5 Sonnet --------------------------|--------|------------------- Security issue detection | 72% | 81% ← significant gap False positive rate | 18% | 12% ← Claude more precise Code style feedback score | 4.1/5 | 4.3/5 Actionable suggest
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.