Frontend skills stats

From redpanda-data/ui-harness · View interactive version

Frontend skills stats is an AI agent skill from the GitHub repository redpanda-data/ui-harness. Analytics dashboard for frontend-skills hook harness. Latency percentiles, top-violated rules, zero-fire hooks, session trends. Use when user ask for hook harness stats, invoke `/frontend-skills-stats`, or want latency profiling and manifest drift checks.

How to use this skill

Skill file

Frontend skills stats

Step 0: Gather context

Run these Bash commands before proceed:

Metrics dir: ~/.claude/hook-metrics/

Your task

Analyze frontend-skills harness across all session metrics. Read every JSON in ~/.claude/hook-metrics/. Produce prioritized report.

1. Latency profile

Parse perf_ms from each session summary (added 2.2.2). Each hook:

| Hook | P50 (ms) | P95 (ms) | Invocations | Total wall-clock |

|---|---|---|---|---|

Flag hooks:

2. Rule activity

Each rule fired once+:

| Rule | Blocks | Warns | Nudges | Info | Diagnostic |

|---|---|---|---|---|---|

Detect new tier usage (nudge, info, diagnostic -- added 2.2.2). Report adoption rate.

3. Silent hooks (zero fires)

List wired hooks, zero fires all sessions. Prune candidates.

4. Over-aggressive hooks

5. Under-enforced rules

Cross-ref CLAUDE.md rules vs hook activity:

6. Session health signals

7. Manifest drift check

Compare skill-manifest.json vs .claude/settings.json and hooks/hooks.json:

bash scripts/generate-hook-configs.sh --check

Drift detected: RED FLAG -- drift bug regression. Run --apply to fix.

Output format

Structured report. Tables for numeric data. End with prioritized action list (max 5 items). If <5 session files, mark recommendations preliminary.

Plain markdown. No emojis.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.