claude-skills-benchmark
Evaluate and benchmark Agent Skills quality using static analysis and evaluation methodology. Use when discussing skill quality, benchmarking skills, measuring activation rates, or reviewing skill effectiveness.
What this skill does
# Skill Benchmarking Evaluate Agent Skills through static analysis and evaluation-driven methodology. Source: Anthropic's skill evaluation guidance. ## When to Use Activate when: - Assessing skill quality across a plugin or marketplace - Measuring skill activation accuracy (false positives/negatives) - Comparing skill versions or skill-vs-no-skill performance - Running the `/benchmark-skills` command - Reviewing skill descriptions for optimization ## Static Analysis Checks Run these checks against every skill to produce a quality scorecard: | Check | Pass Criteria | |-------|--------------| | Description length | Non-empty, max 1024 chars | | Description has "Use when" | Contains activation triggers | | Description third person | No "I can", "You can" | | Name kebab-case | Matches `^[a-z0-9]+(-[a-z0-9]+)*$` | | Name max 64 chars | Length check | | No reserved words | No "anthropic"/"claude" in name | | SKILL.md max 500 lines | Line count | | Has examples | Contains code blocks or example sections | | Reference depth | No nested references (one level only) | | Anti-fabrication present | Contains anti-fab rules or references `core:anti-fabrication` | | Source documented | Skill appears in plugin's `sources.md` | ## Skill Categories Classify each skill for appropriate evaluation: **Capability Uplift**: Enhances Claude's core abilities (coding, analysis, reasoning). Stable across model versions. Test by comparing base model performance with and without the skill. **Encoded Preference**: Encodes user-specific workflows, formatting, and conventions. May need updates when models change. Test by verifying fidelity to the encoded workflow. ## Evaluation Methodology ### Writing Evals For each skill, create: - 5-10 representative prompts that should trigger the skill - 3-5 out-of-scope prompts that should NOT trigger the skill - Expected behavior criteria for each prompt ### A/B Testing Compare skill performance using independent agents: 1. Agent A runs with the skill loaded 2. Agent B runs without the skill 3. A comparator judges outputs blindly 4. Track: pass rate, token usage, execution time ### Multi-Model Testing Test across model tiers to verify consistency: | Model | Target Pass Rate | |-------|-----------------| | Haiku | 70%+ | | Sonnet | 85%+ | | Opus | 95%+ | If Haiku fails but others pass, instructions may rely on implicit reasoning — make them more explicit. ## Description Optimization The description determines activation accuracy. Optimize for: - **Reducing false positives**: Too-broad descriptions waste context. Add domain-specific terms. - **Reducing false negatives**: Too-narrow descriptions miss valid prompts. Add synonyms and related terms. - **Target**: 90%+ true positive rate, <5% false positive rate ## Scorecard Output The benchmark produces a table per plugin: ``` Skill | Plugin | Desc | Lines | Refs | Examples | Score ─────────────────┼──────────┼──────┼─────────┼──────┼──────────┼────── git | core | Pass | 120/500 | Pass | Pass | 9/11 claude-skills | cl-code | Pass | 380/500 | Pass | Pass | 10/11 ``` ## Running Benchmarks - **Static analysis**: `mise test:skills-quality` — runs all static checks, produces scorecard - **Command**: `/benchmark-skills` — full analysis with category classification and quality assessment - **Manual evals**: Use the evaluation checklist template at `templates/evaluation-checklist.md` ## Iteration Follow the cycle: Test, Measure, Analyze, Refine, Verify. Stop iterating when: - Eval pass rates meet targets across model tiers - Description triggers accurately - Token usage is reasonable relative to benefit - No user-reported issues for 2+ model versions ## Anti-Fabrication Requirements ### Core Principles - Base all outputs on actual analysis using tool execution - Execute validation tools before making claims - Mark uncertain information as "requires analysis" or "needs validation" - Use precise, factual language without superlatives ### Prohibited Language - **Superlatives**: Avoid "excellent", "comprehensive", "advanced", "optimal", "perfect" - **Unsubstantiated Metrics**: Never fabricate percentages, success rates, or performance numbers - **Assumed Capabilities**: Do not claim features exist without tool verification ### Validation Requirements - **File Claims**: Use Read or Glob tools before claiming files exist - **Test Results**: Only report test outcomes after actual execution - **Performance Claims**: Base on actual measurement or analysis
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.