agentleFS
glebisglebis/claude-skills/insight-extractor/SKILL.md

insight-extractor

Skill387 starsChanged 5 months agoMITView on GitHub

Parse the built-in /insights report and extract actionable items into structured, trackable markdown files. Reads ~/.claude/usage-data/report.html (generated by /insights) and extracts: - Action Items: CLAUDE.md improvements, unfinished tasks, follow-ups - Useful Prompts & Patterns: Effective interaction strategies and copyable prompts - Technical Learnings: Debugging insights, friction patterns, what worked - Workflow Improvements: Better approaches discovered across sessions - Tool Discoveries: Features to try, new commands, MCP tools - Automation Candidates: Repetitive tasks that could be automated (tagged #automation-candidate, agent-runnable ones…

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run /insights first to generate the report.

    line 52
  2. Distinctive:

    Priority Override: Keep defaults / prioritize CLAUDE.md items / prioritize automation / custom

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Insight Extractor Skill

Parse the built-in /insights report and extract actionable items into structured, trackable markdown files.

What it does

Reads ~/.claude/usage-data/report.html (generated by /insights) and extracts:

  • Action Items: CLAUDE.md improvements, unfinished tasks, follow-ups
  • Useful Prompts & Patterns: Effective interaction strategies and copyable prompts
  • Technical Learnings: Debugging insights, friction patterns, what worked
  • Workflow Improvements: Better approaches discovered across sessions
  • Tool Discoveries: Features to try, new commands, MCP tools
  • Automation Candidates: Repetitive tasks that could be automated (tagged #automation-candidate, agent-runnable ones tagged #agent-task)

Usage

Auto mode (default)

/insight-extractor

Extracts all categories, saves everything automatically using configured paths.

Interactive mode

/insight-extractor --interactive

Walks through each category with AskUserQuestion -- cherry-pick items, set priorities, choose which automations get task files.

Configure mode

/insight-extractor --configure

Walk through settings via AskUserQuestion. Configures:

  • Insights folder -- where insight files are saved (default: Research/Insights)
  • Tasks folder -- where automation task files go (default: Tasks/inbox, or disable)
  • Daily notes folder -- where daily notes live (default: Daily)
  • MoC file -- which MoC tracks insights (default: MoC - Insights.md, or disable)
  • Date format -- YYYYMMDD (compact) or YYYY-MM-DD (ISO)
  • Machine name -- include in filenames or not
  • Statistics -- include session stats section or not
  • Stale threshold -- warn if report older than N days

Settings saved to .claude/skills/insight-extractor/config.json.

Without machine name

/insight-extractor --no-machine

Prerequisites

Run /insights first to generate the report. The extractor reads from:

  • ~/.claude/usage-data/report.html (main report)
  • ~/.claude/usage-data/facets/ (structured JSON data)

Output

Insight file

Research/Insights/YYYYMMDD-insights-{machine}.md with YAML frontmatter and 6 categorized sections.

Daily note link

Appends to today's Daily/YYYYMMDD.md under ## Insights or ## log.

MoC update

Adds entry to MoC - Insights.md under ## Recent Insights.

Task creation

For each automation candidate, creates Tasks/inbox/YYYYMMDD-automate-{slug}.md.

Interactive Mode Details

In --interactive mode, the skill uses AskUserQuestion at each stage:

  1. Action Items: Include all / review each / skip
  2. Automation Candidates: Multi-select which ones get task files
  3. Priority Override: Keep defaults / prioritize CLAUDE.md items / prioritize automation / custom
  4. Personal Notes: Option to add context before saving

Machine-Specific Behavior

Includes hostname in filename by default (2 machines, different session contexts). MoC groups by date across machines.

When to use

  • After running /insights: Extract and persist the analysis into your vault
  • Weekly review: Process insights, review MoC for patterns across days/machines
  • Automation discovery: Find and track repetitive patterns worth automating

Integration

  • ~/.claude/usage-data/report.html: Source data
  • MoC - Insights.md: Master index
  • Daily notes: Quick reference links
  • Tasks/inbox/: Automation candidates become actionable
  • MoC - Personal Productivity: Session-as-Memory theme

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.