skills/usage-insights/SKILL.md
Generate a usage insights report analyzing coding assistant session history. Parses session JSONL logs, extracts metadata (tools used, languages, git activity, friction points), and produces a structured markdown analysis with actionable suggestions. Works with any assistant that stores sessions as JSONL. Use when the user says "/usage-insights", "analyze my sessions", "usage report", "how am I using this", "session insights", or asks to review their coding assistant usage patterns.
npx skillsauth add kyzooghost/audit-code-health-skill usage-insightsInstall 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.
Generate a comprehensive usage report by analyzing coding assistant session logs.
Ask the user where their session logs live if not obvious. Common locations:
~/.claude/projects/ (JSONL files, one per session)Run the session parser to extract and aggregate metadata:
python3 <this-skill-dir>/scripts/parse_sessions.py --sessions-dir <PATH> --output /tmp/usage-insights-data.json --max-sessions 200
If --sessions-dir is omitted, it auto-detects ~/.claude/projects/ or $CLAUDE_CONFIG_DIR/projects/.
Read /tmp/usage-insights-data.json and the prompts from references/analysis-prompts.md.
Using the aggregated JSON as context appended after each prompt's DATA: marker, run these analyses (in parallel where independent):
After all insights are collected, run the "At a Glance" prompt (from the references file) with the combined data plus insight results to produce a 4-part executive summary.
Write the final report to tmp-docs/insights-report-YYYY-MM-DD.md (relative to the working directory), creating the directory if needed. Use today's date.
Format:
# Usage Insights
[sessions] sessions - [messages] messages - [hours]h - [commits] commits
[date_range_start] to [date_range_end]
## At a Glance
**What's working:** [whats_working]
**What's hindering you:** [whats_hindering]
**Quick wins to try:** [quick_wins]
**Ambitious workflows:** [ambitious_workflows]
## Project Areas
[areas list with descriptions]
## Impressive Things You Did
[impressive_workflows with titles and descriptions]
## Where Things Go Wrong
[friction categories with examples]
## Suggestions
### Config Additions
[config_additions with why and where to add]
### Features to Try
[features_to_try with example configs]
### Usage Patterns to Adopt
[usage_patterns with copyable prompts]
## Skill Suggestions
[repeated workflows that could be automated as custom skills, with name, trigger, and what it would do]
## On the Horizon
[opportunities with copyable prompts]
---
*[fun_ending headline and detail]*
type (user/assistant), message (with content and optionally usage), and timestamp fieldstmp-docs/insights-report-YYYY-MM-DD.md relative to cwddevelopment
Sync a skill from this repo into the local machine's skill directories. Use when the user asks to make a repo skill available locally, sync a local skill for Claude, Agents, or Codex, update local skill symlinks, or follow the .claude/skills source link pattern with .agents/skills and .codex/skills symlinks.
development
Sync a command from this repo into local agent surfaces. Use when the user asks to make a repo command available locally, sync a local command for Claude, Agents, or Codex, update command symlinks, or expose a command to Codex as a skill.
testing
Use when the user asks to grill, interrogate, pressure-test, or relentlessly interview them about a plan until requirements, tradeoffs, dependencies, and implementation decisions are clear.
tools
Use when the user asks to create, update, draft, or generate a GitHub pull request, including /create-pr behavior or equivalent workflow.