wise-insights-mine

Solid

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`.

AI & Automation 4 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
23
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# /wise-insights-mine — turn recurring sessions into skills Before asking any user question, read and follow the [question lifecycle](../../references/workflow-host-control.md#keep-asynchronous-questions-open). Keep asynchronous prompts open until answered; this rule does not authorize questions in autonomous or otherwise prompt-free procedures. ## 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. -...

Details

Author
e1024kb
Repository
e1024kb/wise-claude
Created
3 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

wise-insights-refine

Review your learned skills for overlap and consolidate them — merge several redundant or composable skills into one aggregated skill and retire the originals (reversibly), after your approval. The "garden" pass to /wise-insights-mine's "harvest": mine creates skills from recurring sessions, refine keeps the resulting library tidy. Operates only on wise-managed skills (those carrying the wise-insights marker); hand-written skills are never auto-deleted — only suggested. Fully local. Invoked as `/wise-insights-refine` (bare alias) or `/wise:wise-insights-refine` (canonical). Use when the user says "refine my skills", "consolidate skills", "merge overlapping skills", "clean up auto-created skills", "dedupe my skills", or types `/wise-insights-refine`.

4 Updated today
e1024kb
AI & Automation Listed

mine-skills

Mine your past agent sessions (Claude Code, Codex) for recurring failures and re-explained procedures, then distill the best candidates into reusable skills that land in the central library via `agentstack x lib add`. Local and read-only until you approve a draft.

3 Updated 4 weeks ago
Tarekkharsa
AI & Automation Solid

wise-insights-reset

Reversibly clean up the self-improvement loop, and roll it back. Snapshots then removes the auto-created (wise-managed) skills and/or the insights index (ledger, candidates, decisions) into a timestamped restore point — and can restore any restore point. Never touches hand-written skills, and never hard-deletes (that's `insights.py purge`). Invoked as `/wise-insights-reset` (bare alias) or `/wise:wise-insights-reset` (canonical). Use when the user says "reset insights", "clean up auto-created skills", "wipe learned skills", "remove the skills mine made", "roll back insights", "restore insights", "undo mine".

4 Updated today
e1024kb