Skip to main content
skill CX Codex

skill-idea-miner — Claude Code skill: what it does, how to install

Extracts candidate skill ideas from recent Claude Code session logs, scores them, and updates a prioritized backlog.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add tradermonty/claude-trading-skills --skill skill-idea-miner -a claude-code
Open on GitHub

What skill-idea-miner does

The skill inspects session logs inside ~/.claude/projects/ from the past 7 days. It scans for repetitive tool call sequences, non-zero exit codes, automation keywords, and long response gaps. Based on these signals, the mine_session_logs.py script runs Claude CLI in headless mode to summarize candidate ideas into raw_candidates.yaml.

Stage two deduplicates ideas using Jaccard similarity against existing skills and backlog entries with a 0.5 threshold. Scored candidates receive ratings for novelty (0.3), feasibility (0.3), and trading value (0.4). The resulting prioritized list lands in logs/.skill_generation_backlog.yaml.

You need Python 3.10+ with pyyaml and an authenticated Claude CLI. No dedicated API keys are needed because LLM requests route directly through the CLI.

What it helps with

  • Extract skill ideas from recent Claude Code interaction logs
  • Detect repetitive tool patterns and frequent session errors
  • Filter duplicate skill ideas using Jaccard similarity scoring
  • Score candidates by feasibility, novelty, and trading value

Example prompts for the agent

  • Mine new skill candidates from recent sessions: python3 scripts/mine_session_logs.py --output-dir reports/
  • Run a dry-run log inspection without LLM scoring: python3 scripts/mine_session_logs.py --dry-run --output-dir reports/
  • Score existing candidates and merge them into backlog: python3 scripts/score_ideas.py --candidates reports/raw_candidates.yaml --output-dir logs/

How to install skill-idea-miner

1Skills CLI (Vercel)

npx skills add tradermonty/claude-trading-skills --skill skill-idea-miner -a claude-code

2Manually: put the files in place

~/.claude/skills/skill-idea-miner/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/skill-idea-miner/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about skill-idea-miner

How to install skill-idea-miner in Claude Code?

Run npx skills add tradermonty/claude-trading-skills --skill skill-idea-miner -a claude-code. The skill file is placed at ~/.claude/skills/skill-idea-miner/SKILL.md.

What does skill-idea-miner do?

It mines session logs for workflows, errors, and user requests, turning them into scored, deduplicated ideas for future skills.

Are API keys required to score candidates?

No separate API keys are needed. The scripts rely on an authenticated local Claude CLI to perform headless model calls.

Source text

SKILL.md · MIT
---
name: skill-idea-miner
description: Mine Claude Code session logs for skill idea candidates. Use when running the weekly skill generation pipeline to extract, score, and backlog new skill ideas from recent coding sessions.
---

# Skill Idea Miner

Automatically extract skill idea candidates from Claude Code session logs,
score them for novelty, feasibility, and trading value, and maintain a
prioritized backlog for downstream skill generation.

## When to Use

- Weekly automated pipeline run (Saturday 06:00 via launchd)
- Manual backlog refresh: `python3 scripts/run_skill_generation_pipeline.py --mode weekly`
- Dry-run to preview candidates without LLM scoring

## Prerequisites

- **Python 3.10+** with `pyyaml` package
- **Claude CLI** installed and authenticated (`claude --version` to verify)
- **Session logs** in `~/.claude/projects/<project>/` (created automatically by Claude Code)
- No API keys required (uses Claude CLI for LLM calls)

## Workflow

### Quick Start

```bash
# Dry-run: preview mined candidates without LLM scoring
python3 scripts/mine_session_logs.py --dry-run --output-dir reports/

# Full mining with scoring (requires Claude CLI)
python3 scripts/mine_session_logs.py --output-dir reports/

# Score existing candidates
python3 scripts/score_ideas.py \
  --candidates reports/raw_candidates.yaml \
  --output-dir logs/
```

### Stage 1: Session Log Mining

1. Enumerate session logs from allowlist projects in `~/.claude/projects/`
2. Filter to past 7 days by file mtime, confirm with `timestamp` field
3. Extract user messages (`type: "user"`, `userType: "external"`)
4. Extract tool usage patterns from assistant messages
5. Run deterministic signal detection:
   - Skill usage frequency (`skills/*/` path references)
   - Error patterns (non-zero exit codes, `is_error` flags, exception keywords)
   - Repetitive tool sequences (3+ tools repeated 3+ times)
   - Automation request keywords (English and Japanese)
   - Unresolved requests (5+ minute gap after user message)
6. Invoke Claude CLI headless for idea abstraction
7. Output `raw_candidates.yaml`

### Stage 2: Scoring and Deduplication

1. Load existing skills from `skills/*/SKILL.md` frontmatter
2. Deduplicate via Jaccard similarity (threshold > 0.5) against:
   - Existing skill names and descriptions
   - Existing backlog ideas
3. Score non-duplicate candidates with Claude CLI:
   - Novelty (0-100): differentiation from existing skills
   - Feasibility (0-100): technical implementability
   - Trading Value (0-100): practical value for investors/traders
   - Composite = 0.3 * Novelty + 0.3 * Feasibility + 0.4 * Trading Value
4. Merge scored candidates into `logs/.skill_generation_backlog.yaml`

## Output Format

### raw_candidates.yaml

```yaml
generated_at_utc: "2026-03-08T06:00:00Z"
period: {from: "2026-03-01", to: "2026-03-07"}
projects_scanned: ["claude-trading-skills"]
sessions_scanned: 12
candidates:
  - id: "raw_2026w10_001"
    title: "Earnings Whispers Image Parser"
    source_project: "claude-trading-skills"
    evidence:
      user_requests: ["Extract earnings dates from screenshot"]
      pain_points: ["Manual image reading"]
      frequency: 3
    raw_description: "Parse Earnings Whispers screenshots to extract dates."
    category: "data-extraction"
```

### Backlog (logs/.skill_generation_backlog.yaml)

```yaml
updated_at_utc: "2026-03-08T06:15:00Z"
ideas:
  - id: "idea_2026w10_001"
    title: "Earnings Whispers Image Parser"
    description: "Skill that parses Earnings Whispers screenshots..."
    category: "data-extraction"
    scores: {novelty: 75, feasibility: 60, trading_value: 80, composite: 73}
    status: "pending"
```

## Resources

- `references/idea_extraction_rubric.md` — Signal detection criteria and scoring rubric
- `scripts/mine_session_logs.py` — Session log parser
- `scripts/score_ideas.py` — Scorer and deduplicator

© tradermonty · MIT · tradermonty/claude-trading-skills

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set73

trade-hypothesis-ideator Turns trade logs, journal notes and market data into falsifiable hypotheses with experiment designs and kill criteria. CX Codex +1 3,200installs signal-postmortem Records trade signal outcomes, compares predicted direction against realized returns, and drafts weight fixes for the aggregator. CX Codex +1 3,300installs downtrend-duration-analyzer Analyzes historical downtrend lengths and creates interactive HTML histograms by sector and market cap. Use it to estimate correction and position-holding timeframes. CX Codex +1 3,100installs breakout-trade-planner Turns VCP screener output into Minervini-style trade plans with entry, stop and target levels, position sizing and Alpaca order templates. CX Codex +1 3,100installs skill-integration-tester Checks multi-skill workflows in CLAUDE.md for missing skills, JSON contract mismatches and file naming issues. Use it after changing outputs or before release. CX Codex +1 3,100installs skill-designer Turns a JSON idea spec into a ready prompt that Claude CLI uses to scaffold a whole skill directory. CX Codex +1 3,200installs ibd-distribution-day-monitor Counts IBD-style Distribution Days on QQQ and SPY, grades market risk, and suggests a TQQQ or QQQ exposure level. Built for post-close review. CX Codex +1 3,000installs trading-skills-navigator Recommends trading workflows and skill bundles based on your goals. Identifies setup steps and separates free workflows from those requiring paid APIs. CX Codex +1 3,000installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor