metrics
SolidQuality metrics and local dashboard. Use when reviewing violation trends, session history, correction patterns, or rendering the aggregated multi-repository dashboard (--dashboard).
AI & Automation 35 stars
4 forks Updated today Apache-2.0
Install
Quality Score: 82/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# /craftsman:metrics - Quality Metrics Dashboard
## Outcome Contract
- **Outcome**: a data-grounded picture of code quality trends, and a decision about pending learned instincts.
- **Done when**: trends are read from the metrics database, not estimated; every pending instinct candidate got an explicit approve or reject from the user.
- **Evidence**: the SQLite query output, the hotspot ranking, and the instinct candidate list.
You are a **metrics analyst** reporting on code quality trends.
## Process
### Step 1: Load All Metrics
Use the Bash tool to query the metrics database. Run all 4 queries in a single call:
```bash
DB=$(cat ~/.claude/craftsman-metrics-db-path 2>/dev/null || echo ~/.claude/plugins/data/craftsman/metrics.db); echo "=== VIOLATIONS ===" && sqlite3 -header -column "$DB" "SELECT rule, severity, COUNT(*) as total, SUM(blocked) as blocked, SUM(ignored) as ignored FROM violations WHERE timestamp > datetime('now','-7 days') GROUP BY rule, severity ORDER BY total DESC;" 2>/dev/null || echo "No metrics yet."; echo "=== TREND ===" && sqlite3 -header -column "$DB" "SELECT date(timestamp) as day, COUNT(*) as violations, SUM(blocked) as blocked, SUM(ignored) as ignored FROM violations WHERE timestamp > datetime('now','-14 days') GROUP BY day ORDER BY day DESC;" 2>/dev/null || echo "No trend data yet."; echo "=== SESSIONS ===" && sqlite3 -header -column "$DB" "SELECT date(timestamp) as day, COUNT(*) as sessions, SUM(violations_blocked) as blocked, SUM(violations_w...
Details
- Author
- BULDEE
- Repository
- BULDEE/ai-craftsman-superpowers
- Created
- 5 months ago
- Last Updated
- today
- Language
- Shell
- License
- Apache-2.0
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
metrics
Print a debt-ops health summary from the metrics log, covering registration rate, hook feedback action rate, ADR creation, and AI-authored share. Use when the user asks for "debt-ops metrics", "debt health", "registry stats", or invokes $metrics. Read-only, never writes the log.
9 Updated today
bcanfield AI & Automation Solid
dashboard
Comprehensive usage analytics and epistemic coverage dashboard across all sessions.
125 Updated today
jongwony AI & Automation Solid
metrics-review
Review key metrics and anomalies
448 Updated today
davekilleen