← ClaudeAtlas

wise-insights-minelisted

Mine your own Claude Code session history for recurring task patterns and, once a pattern recurs across enough distinct sessions, draft it into a reusable personal skill under ~/.claude/skills/ — after you approve each one. This is the wise self-improvement loop: a SessionEnd hook quietly records each finished session into a local ledger, and this command clusters those sessions by frequency and proposes the strongest recurring patterns as new skills. Fully local; nothing leaves your machine. Invoked as `/wise-insights-mine` (bare alias) or `/wise:wise-insights-mine` (canonical). Use when the user says "mine my sessions", "find recurring patterns", "suggest skills", "what should I turn into a skill", "self-improve", or types `/wise-insights-mine`.
e1024kb/wise-claude · ★ 1 · AI & Automation · score 80
Install: claude install-skill e1024kb/wise-claude
# /wise-insights-mine — turn recurring sessions into skills ## Why this skill exists Claude Code already records every session as JSONL under `~/.claude/projects/<slug>/*.jsonl`. The wise SessionEnd hook (`hooks/session-end-ingest.sh`) ingests each finished session into a local insights ledger under `wise_data_root()/insights/`. This command reads that ledger, clusters the genuine (typed) user prompts by a deterministic recurring-vocabulary fingerprint, counts how many **distinct sessions** each pattern appears in, and surfaces any pattern over a frequency threshold as a **candidate skill**. You approve each candidate before anything is written. The heavy lifting — parsing, redaction, clustering, frequency-gating, suppression of already-decided patterns — lives in `${CLAUDE_PLUGIN_ROOT}/scripts/insights.py` (stdlib-only). This skill's job is to run it, present the gated candidates, and — on your approval — draft the skill file and record the decision. It never invents the frequency counts; it relays them. ## Arguments Parse `$ARGUMENTS` as a flag string (any order; all optional): - `--here` — only mine sessions whose working directory is the current repo. Default mines all projects. - `--since <N>d` (or `<N>w`) — only consider sessions from the last N days/weeks. Bounds the first full backfill; omit to consider everything. - `--min-count <N>` — frequency threshold: a pattern must recur across at least N distinct sessions to be a candidate. Default 3. - `--include-