sidsol/crispy-plugin/generate-metrics-report
Claude Code and agent skill by sidsol/crispy-plugin
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
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-reportSemi-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-implementslices, 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.jsonlfiles exist anywhere undercrispy-docs/(run a CRISPY phase first).
Inputs
crispy_docs_root(optional) — absolute path to thecrispy-docsdirectory. If omitted, walks up fromcwdto find one.feature(optional) — only regenerate the named feature's report (e.g.,specs/003-graphql-supportorprojects/001-acme/features/002-billing).open(optional, defaultfalse) — openreports/index.htmlin 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.jsonlplus parsedcrispy-resultblocks. Output shape: root = orchestrator name; children = phase agents; grandchildren = reviewers; each annotated with start/end time, status, and finding counts inn/n/n(high/medium/low) shape. Plain-text or minimal-HTML; no JS.
In html-report mode the renderer also:
- Walks the root for any
.metrics.jsonl(skippingreports/). - Classifies each owning folder as
standalone,project, orproject_featureby relative path. - Loads the multiplier table (built-in defaults plus optional override at
<root>/.metrics-multipliers.json). - Aggregates by phase per feature, then rolls features up to projects.
- Writes:
<feature-folder>/metrics.htmlfor every standalone feature and every project-feature.<project-folder>/metrics.htmlfor 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
| Metric | How it's computed | Accuracy | |
|---|---|---|---|
| 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 Time | ts_end_ms − ts_start_ms from paired pre/post hook timestamps. | Exact. | |
| Approx Tokens | ceil(chars / 4) over the prompt and the result text. Labelled "approx; not used for billing". | Rough. | |
| Model breakdown | Counts 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:
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
- SKILL.md in the repositoryCheckingskills/generate-metrics-report/SKILL.md
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
[](https://verified-skill.com/skills/sidsol/crispy-plugin/generate-metrics-report)