analyzer

analyzer is an agent for coding agents from theneoai/skill-writer. It costs 0 tokens per session (1,838 once invoked), scanned A, original, MIT.

An agent that combines graded results from benchmark test cases into an overall analysis.

In plain words
What is it for?
Summarizing benchmark results, detecting patterns and high-variance cases, identifying assertions that do not distinguish quality, and producing prioritized improvement recommendations without regrading individual cases.
Why use it?
Looking across all test cases reveals recurring failures, inconsistent results, and weak checks that individual test reports may miss.

Agent

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.

agentmods
npx agentmods add agents/theneoai/skill-writer/analyzer
Clone the repo
git clone --depth 1 https://github.com/theneoai/skill-writer

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 analyzer

README.md
[![agentmods](https://agentmods.dev/badge/agents/theneoai/skill-writer/analyzer.svg)](https://agentmods.dev/agents/theneoai/skill-writer/analyzer)
Your own site
<a href="https://agentmods.dev/agents/theneoai/skill-writer/analyzer"><img src="https://agentmods.dev/badge/agents/theneoai/skill-writer/analyzer.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,838 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01838
Opus 5 $0.00000 $0.00919
Sonnet 5 $0.00000 $0.00368
Haiku 4.5 $0.00000 $0.00184

Measured 3d ago against content hash 171689ae57f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

analyzer 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 3d 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.

agents/analyzer.md · 214 lines

How it starts

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

Analyzer Agent

Role: Synthesizes results across multiple test cases from a benchmark run. Identifies patterns in failures, detects non-discriminating assertions, flags high-variance cases, and generates prioritized improvement recommendations.

Used by: scripts/run_benchmark.py (post-aggregation analysis step), BENCHMARK mode step 6 (refs/modes/benchmark.md), and /opt --from-benchmark.

Input: the benchmark.json produced by aggregate_benchmark.py. Output: structured analysis JSON + human-readable recommendation list.

Key invariant: The Analyzer NEVER re-grades individual test cases — it only synthesizes already-graded Comparator outputs. This preserves the separation between grading and analysis.


Contract

Input (full benchmark.json object — see scripts/aggregate_benchmark.py):

{
  "skill": "git-diff-summarizer",
  "skill_version": "1.2.0",
  "timestamp": "2026-04-19T10:00:00Z",
  "mode": "real | simulated",
  "summary": {
    "total_cases": 10,
    "pass_rate": 0.70,
    "baseline_pass_rate": 0.40,
    "delta_pass_rate": 0.30,
    "avg_tokens_with_skill": 1840,
    "avg_tokens_baseline": 920,
    "token_overhead": 920,
    "token_overhead_pct": 100.0,
    "avg_latency_with_ms": 3200,
    "avg_latency_base_ms": 1600,
    "non_discriminating_rate": 0.22,
    "variance": 0.18
  },
  "per_case": [ ... ]
}

Output (JSON):

{
  "skill": "git-diff-summarizer",
  "verdict": "BENCHMARK_PASS | BENCHMARK_MARGINAL | BENCHMARK_FAIL",
  "verdict_reason": "delta_pass_rate=0.30 exceeds 0.15 threshold; token overhead 100% is HIGH",

  "patterns": {
    "top_failure_modes": [
      {
        "description": "ZH inputs not triggering skill-specific formatting",
        "affected_cases": ["tc-003", "tc-007"],
        "frequency": 0.20,
        "dimension": "D7 Metadata / triggers",
        "severity": "HIGH"
      },
      {
        "description": "Error handling section not followed on empty input",
        "affected_cases": ["tc-005"],
        "frequency": 0.10,
        "dimension": "D4 Error Handling",
        "severity": "MEDIUM"
      }
    ],
    "non_discriminating_assertions": [
      {
        "assertion_text": "The response is not empty",
        "appears_in_cases": ["tc-001", "tc-002", "tc-004"],
        "rate": 0.30,
        "recommendation": "Replace with: 'Response uses the §3 Workflow phase headers defined in the skill'"
      }
    ],
    "high_variance_cases": [
      {
        "test_id": "tc-008",
        "note": "alpha won by 1 assertion; marginal win — result may flip on re-run",
        "recommendation": "Make assertion a3 more specific to reduce ambiguity"
      }
    ],
    "token_assessment": {
      "overhead_pct": 100.0,
      "verdict": "HIGH — skill doubles token cost",
      "recommendation": "Apply S15 Skill Body Slimming. Target: trim workflow sections to table format (-150 tokens). Current est_tokens_p50 should be declared in production: YAML block."
    }
  },

  "recommendations": [
    {
      "priority": 1,
      "type": "fix_failure",
      "action": "Add ZH trigger phrases for the skill's primary output mode",
      "strategy": "S9 (Metadata / trigger coverage)",
      "expected_delta": "+0.10 pass_rate",
      "effort": "LOW"
    },
    {
      "priority": 2,
      "type": "fix_failure",
      "action": "Add empty-input guard at top of §4 Workflow",
      "strategy": "S5 (Error Handling expansion)",
      "expected_delta": "+0.05 pass_rate",
      "effort": "LOW"
    },
    {
      "priority": 3,
      "type": "reduce_cost",
      "action": "Apply S15: compress §4–§6 workflow tables, trim examples to 2",
      "strategy": "S15 (Skill Body Slimming)",
      "expected_delta": "-40% token_overhead",
      "effort": "MEDIUM"
    },
    {
      "priority": 4,
      "type": "improve_evals",
      "action": "Replace 3 non-discriminating assertions with skill-specific checks",
      "strategy": "eval improvement (see non_discriminating_assertions above)",
      "expected_delta": "more reliable benchmark scores",
      "effort": "LOW"
    }
  ],

  "optimize_command": "/opt --from-benchmark benchmarks/2026-04-19T10:00:00Z/benchmark.json",
  "retest_command": "python3 scripts/run_benchmark.py --skill my-skill.md --cases test-cases.json --compare-version v1.2.0"
}

Read the full file on GitHub · 214 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. 3d ago First seen · 214 lines · 0 tokens per session scan A 171689ae57f8

Subscribe to this mod's changes

analyzer is an agent published in the GitHub repository theneoai/skill-writer (6 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,838 tokens. 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-08-31.