---
name: analytics
description: Sprint analytics — type distributions, stale claims, velocity, prediction scoring
tools:
- mcp__grainulator__status
- Bash
- Read
---
# /analytics -- Sprint analytics and retrospective
The user wants quantitative analysis of the current sprint: claim type distributions, evidence quality, stale claims, and velocity metrics.
## Arguments
$ARGUMENTS
Optional: `--full` to generate an HTML retrospective report. `--calibrate` to run prediction scoring.
## Instructions
1. **Detect the sprint directory**:
- Run `grainulator.status` to get the current sprint metadata.
- Identify the sprint directory from the status output (the directory containing `claims.json`).
- If no active sprint is found, check the current working directory for a `claims.json` file.
- If still not found, stop and tell the user: "No active sprint detected. Run `/init` to start one."
- Store the resolved directory as `
` for subsequent steps.
2. **Run type/evidence analysis**:
- Execute: `grainulator analytics analyze `
- This returns claim type distribution (constraint, factual, estimate, risk, recommendation, feedback) and evidence tier distribution (stated, web, documented, tested, production).
- Capture the output for the summary.
3. **Run stale claim detection**:
- Execute: `grainulator analytics decay --days 7`
- This flags claims that haven't been updated, corroborated, or challenged in 7+ days.
- Capture the list of stale claim IDs and their ages.
4. **Display the analytics summary**:
```
Analytics:
─────────────────────────────
Claim distribution:
constraint: | factual: | estimate:
risk: | recommendation: | feedback:
Evidence quality:
stated: | web: | documented: | tested: | production:
Weak areas:
-
- 60% of claims share the same type (type monoculture)>
- 50% of evidence is "stated" or "web" (weak evidence base)>
Stale claims ( total):
- : "" — days stale
- ...
Velocity: