plugins/stats/skills/stats-reading/SKILL.md
--- ## Understanding Stats Output ### Session Summary - **Sessions** — Number of Claude Code sessions in the selected time window. Each session corresponds to one `claude` process invocation. - **Avg duration** — Mean session length in minutes. Computed from transcript timestamps (first to last assistant message). - **Total tools** — Sum of all tool calls across all sessions. One call per tool invocation. ### Activity Categories The stats plugin classifies every tool call into one of five c
npx skillsauth add madappgang/magus plugins/stats/skills/stats-readingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
|---|---|
| research | Read, Grep, Glob, WebFetch, WebSearch, mcp__* | Information gathering: reading code, searching, web lookups |
| coding | Write, Edit, MultiEdit, Bash build commands | Creating or modifying files, building artifacts |
| testing | Bash with test/lint/check patterns | Running tests, linting, type-checking, validation |
| delegation | Task | Spawning sub-agents for parallel or specialized work |
| other | Bash (unclassified), all other tools | Shell operations, setup, clipboard, miscellaneous |
Important: Activity ratios in the report exclude other from the denominator. Only classified calls (research + coding + testing + delegation) are used when computing percentages. This means percentages can add up to 100% without other.
The duration trend sparkline uses Unicode block characters ▁▂▃▄▅▆▇█ to represent relative values. Each character represents one day, left-to-right (oldest to newest). Taller bars = more tool calls or longer sessions on that day. The scale adapts to the data range — all bars are relative, not absolute.
Appears next to session count. Compares avg tool calls per session in the most recent half of the window vs the older half:
↑ more than 10% higher recently↓ more than 10% lower recently→ within 10% — stable trendYou spend most of your time reading and searching code. This is normal for investigation tasks but may indicate inefficiency for implementation tasks.
Productive actions:
mnemex for semantic symbol search — find a function definition in one query instead of dozens of sequential ReadsRead → Grep for finding content; Glob for finding files by patternWebSearch before WebFetch to target the right page firstTests are rarely run during sessions. This often correlates with bugs caught late and longer debug cycles.
Productive actions:
bun test --watch (or equivalent) via the terminal plugin to keep tests running continuously/dev:tdd for test-driven feature developmentSessions are getting longer over recent days. This can indicate scope creep, context accumulation, or increasing task complexity.
Productive actions:
Task tool to delegate investigation to sub-agents, keeping the main context leanAll work is done in the main context with no sub-agents. Sub-agents can parallelize work and prevent context window saturation.
Productive actions:
dev:developer for implementation taskscode-analysis:detective for investigation tasksrun_in_background: true for parallel sub-tasks that don't need immediate resultsA large fraction of calls are unclassified Bash commands. This is normal for infrastructure-heavy projects but may indicate opportunities to replace shell scripting with dedicated tools.
/stats:report # 7-day ASCII report for current project
/stats:report --days 30 # Last 30 days
/stats:report --all-projects # Cross-project view (all tracked projects)
/stats:report --project /path/to/x # Specific project
/stats:dashboard # ASCII dashboard with full breakdown
/stats:config # Show current config
/stats:config --retention-days 30 # Keep only 30 days of data
/stats:config --enabled off # Pause all collection
/stats:clear # Wipe all data (requires confirmation)
/stats:help # Show all commands
The stats plugin records only:
The stats plugin never records:
tool_input, no tool_response)Data is stored locally at ~/.claude/stats/stats.db and never transmitted.
When a user asks about their stats, follow this sequence:
/stats:report or query the DB inline before interpretinggetSuggestions() fired a rule, explain whyDo not speculate about stats you have not queried. Always ground interpretations in actual data.
testing
A test skill for validation testing. Use when testing skill parsing and validation logic.
tools
--- name: bad-skill description: This skill has invalid YAML in frontmatter allowed-tools: [invalid, array, syntax prerequisites: not-an-array --- # Bad Skill This skill has malformed frontmatter that should fail parsing. The YAML has: - Unclosed array bracket - Wrong type for prerequisites (should be array, not string)
development
Sync model aliases from the curated Firebase database. Fetches default model assignments, short aliases, team compositions, and known model metadata from the claudish API. Run this to get fresh model recommendations.
tools
Release one or more Magus plugins to the distribution repos (magus, magus-alpha, magus-marketing). Handles version inference from git history, marketplace.json updates, tagging, and force-push to lean dist repos. Use whenever the user says "release kanban", "release the dev plugin", "cut a new version of gtd", "bump kanban to 1.7", or hands you a batch like "release kanban and gtd". Also use for multi-plugin releases and for checking what a release would contain before committing.