sidsol/crispy-plugin/generate-metrics-report

Claude Code and agent skill by sidsol/crispy-plugin

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate static HTML reports from CRISPY metrics JSONL files. Use after CRISPY runs to review time and premium-request estimates.

Install

npx vskill@latest install sidsol/crispy-plugin/generate-metrics-report

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as sidsol/crispy-plugin/generate-metrics-report.

Generate Metrics Report

Builds static HTML reports from the .metrics.jsonl files that the crispy-metrics-record post-tool hook writes whenever a CRISPY sub-agent finishes. No network, no JS frameworks, no CDNs — pure stdlib Python that ships with the plugin.

When to use

  • After running one or more CRISPY phases or crispy-implement slices, when the user wants a visual breakdown of where time and tokens went.
  • Periodically during a long-running project to monitor cost and pace.
  • Before a retro / handoff to share a single self-contained HTML page.

When NOT to use

  • The user asked for a live dashboard, real-time graphs, or anything beyond a static file.
  • No .metrics.jsonl files exist anywhere under crispy-docs/ (run a CRISPY phase first).

Inputs

  • crispy_docs_root (optional) — absolute path to the crispy-docs directory. If omitted, walks up from cwd to find one.
  • feature (optional) — only regenerate the named feature's report (e.g., specs/003-graphql-support or projects/001-acme/features/002-billing).
  • open (optional, default false) — open reports/index.html in the default browser after generation.

Process

1. Discover the crispy-docs root

If crispy_docs_root was supplied, use it. Otherwise, walk up from cwd until a directory NAMED crispy-docs is found. If none is found, abort with a clear message ("run a CRISPY phase first").

2. Run the renderer

Invoke python skills/generate-metrics-report/render.py --root <crispy_docs_root> [--feature <rel>] [--mode <html-report|status-tree>] [--open]. The renderer supports two modes:

  • --mode=html-report (default) — full HTML report with multiplier tables, charts, and per-phase breakdowns. The legacy default behavior described below.
  • --mode=status-tree — at-a-glance status pane suitable for the orchestrator's status-pane region (intent §6.12 {#status-pane}). Reads <feature-folder>/.metrics.jsonl plus parsed crispy-result blocks. Output shape: root = orchestrator name; children = phase agents; grandchildren = reviewers; each annotated with start/end time, status, and finding counts in n/n/n (high/medium/low) shape. Plain-text or minimal-HTML; no JS.

In html-report mode the renderer also:

  1. Walks the root for any .metrics.jsonl (skipping reports/).
  2. Classifies each owning folder as standalone, project, or project_feature by relative path.
  3. Loads the multiplier table (built-in defaults plus optional override at <root>/.metrics-multipliers.json).
  4. Aggregates by phase per feature, then rolls features up to projects.
  5. Writes:
  • <feature-folder>/metrics.html for every standalone feature and every project-feature.
  • <project-folder>/metrics.html for every project (rolls up its features).
  • crispy-docs/reports/index.html — top-level index linking everything.
  • crispy-docs/reports/standalone/<NNN-feature>.html — mirror of each standalone feature page.
  • crispy-docs/reports/projects/<NNN-project>.html — mirror of each project page.
3. Report back

Tell the user how many features/projects were processed and where the index is.

If open: true, open the index using Python's webbrowser module (cross-platform).

What gets measured

MetricHow it's computedAccuracy
Premium RequestsΣ (invocations × per-model multiplier). Multiplier looked up from a built-in table (Opus 4.7 = 7.5×, Sonnet variants = 1×, Haiku = 0.33×, etc.) or the override file.Lower bound. One captured invocation = one Task tool call; each sub-agent makes many internal LLM turns the hook cannot observe. Cross-check with github.com/settings/billing → Premium Request Analytics.
Wall-clock Timets_end_ms − ts_start_ms from paired pre/post hook timestamps.Exact.
Approx Tokensceil(chars / 4) over the prompt and the result text. Labelled "approx; not used for billing".Rough.
Model breakdownCounts per model name as recorded from toolArgs.model. Invocations without an explicit model fall under (unknown) and use the default multiplier.Depends on whether spawners pass the model hint per SUBAGENTS.md §1.1.

Overriding multipliers

Multipliers change (e.g., the 7.5× Opus 4.7 rate is promotional through April 30, 2026). Override at any time without touching the plugin:

json
// crispy-docs/.metrics-multipliers.json
{
"default": 1.0,
"models": {
"claude-opus-4.7": 5.0,
"claude-sonnet-4.6": 1.0,
"my-private-model": 2.5
}
}

Disabling capture

Set CRISPY_METRICS_DISABLED=1 in the environment to skip the hooks entirely. Existing .metrics.jsonl files are not deleted.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Extension points

  • hookPre/post lifecycle hooks

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sidsol/crispy-plugin/generate-metrics-report/badge)](https://verified-skill.com/skills/sidsol/crispy-plugin/generate-metrics-report)

Something wrong with this skill or its page? Tell us.