Skip to content
Back to skills

My Insights

ASecurity

Run custom usage analytics on all Claude Code sessions

  • 13 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 10, 2026
data-aipythongobash

Works with

  • claude code

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add yulonglin/dotfiles --skill my-insights --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of My Insights?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for My Insights
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yulonglin-my-insights/badge)](https://www.skillsdirectory.com/skills/yulonglin-my-insights)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: my-insights
description: Run custom usage analytics on all Claude Code sessions
user-invocable: true
disable-model-invocation: true
---

# Custom Usage Insights

Run deep analytics across **all** Claude Code sessions (not just the last 6).

## Usage

```
/my-insights                              # Full run (uses cache, fast on re-runs)
/my-insights --limit 20                   # Test with 20 sessions
/my-insights --project sandbagging        # Filter by project name
/my-insights --since 30                   # Last 30 days only
/my-insights --dry-run                    # Preview batch plan
/my-insights --report-only               # Regenerate report from cached facets
/my-insights --force                      # Ignore cache, reprocess everything
```

## What It Does

1. **Extracts** clean transcripts from all session JSONL files
2. **Analyzes** each session via Gemini (goal categories, outcomes, friction, etc.)
3. **Generates** an HTML report with charts and per-project breakdowns

Facets are cached per-session — re-runs only process new/changed sessions.

## Execution

```bash
python3 ~/code/dotfiles/scripts/insights/run_insights.py $ARGUMENTS
```

The path is absolute on purpose: `scripts/` is not part of what `deploy.sh` symlinks into `~/.claude/`, so a relative path only resolves when the session already sits in the dotfiles repo.

Report output: `~/.claude/custom-insights/report.html`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.