skill-idea-miner
tradermonty/claude-trading-skills
Mine Claude Code session logs to extract and score skill idea candidates for your weekly pipeline.
What is skill-idea-miner?
Automatically extracts skill idea candidates from Claude Code session logs, scores them for novelty, feasibility, and trading value, and maintains a prioritized backlog. Use this during your weekly skill generation pipeline (typically Saturday mornings) to identify new skills worth building from recent coding patterns.
- Enumerates and filters session logs from the past 7 days across allowlisted projects
- Detects skill usage patterns, error sequences, repetitive tool chains, and automation requests via deterministic signals
- Invokes Claude CLI headless to abstract raw observations into skill ideas
- Deduplicates candidates against existing skills and backlog using Jaccard similarity
- Scores ideas on novelty, feasibility, and trading value; computes a weighted composite score
- Maintains a prioritized backlog in YAML format for downstream skill generation
How to install skill-idea-miner
npx skills add https://github.com/tradermonty/claude-trading-skills --skill skill-idea-miner- Python 3.10 or later with pyyaml package
- Claude CLI installed and authenticated (verify with `claude --version`)
- Session logs in `~/.claude/projects/<project>/` (created automatically by Claude Code)
How to use skill-idea-miner
- 1.Run a dry-run to preview mined candidates without LLM scoring: `python3 scripts/mine_session_logs.py --dry-run --output-dir reports/`
- 2.Execute full mining with Claude CLI scoring: `python3 scripts/mine_session_logs.py --output-dir reports/`
- 3.Review the generated `raw_candidates.yaml` for extracted ideas and evidence
- 4.Score and deduplicate candidates: `python3 scripts/score_ideas.py --candidates reports/raw_candidates.yaml --output-dir logs/`
- 5.Check the updated backlog in `logs/.skill_generation_backlog.yaml` to prioritize next skills to build
Use cases
- Run weekly automated pipeline (e.g., Saturday 06:00 via launchd) to discover new skill opportunities
- Perform manual backlog refresh when you want to re-evaluate recent coding sessions
- Dry-run mining to preview candidate ideas without invoking the LLM scorer
- Identify repetitive manual tasks or error patterns in trading workflows that could be automated as skills
- Skill pipeline maintainers and automation engineers
- Teams running weekly skill generation workflows
- Developers building trading-focused agent skills
- Anyone managing a backlog of potential Claude Code enhancements
skill-idea-miner FAQ
It enumerates logs from allowlisted projects in `~/.claude/projects/` and filters to the past 7 days by file modification time, confirmed against the `timestamp` field in each session.
Yes. Use the `--dry-run` flag with `mine_session_logs.py` to extract and display candidates without invoking Claude CLI for scoring.
The scorer compares new candidates against existing skill names, descriptions, and backlog ideas using Jaccard similarity with a threshold of 0.5 to filter out near-duplicates.
It is a weighted combination: 0.3 × Novelty + 0.3 × Feasibility + 0.4 × Trading Value, prioritizing practical value for investors and traders.
The prioritized backlog is maintained in `logs/.skill_generation_backlog.yaml` with scores, status, and metadata for each idea.
Full instructions (SKILL.md)
Source of truth, from tradermonty/claude-trading-skills.
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
pyyamlpackage - Claude CLI installed and authenticated (
claude --versionto 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
# 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
- Enumerate session logs from allowlist projects in
~/.claude/projects/ - Filter to past 7 days by file mtime, confirm with
timestampfield - Extract user messages (
type: "user",userType: "external") - Extract tool usage patterns from assistant messages
- Run deterministic signal detection:
- Skill usage frequency (
skills/*/path references) - Error patterns (non-zero exit codes,
is_errorflags, exception keywords) - Repetitive tool sequences (3+ tools repeated 3+ times)
- Automation request keywords (English and Japanese)
- Unresolved requests (5+ minute gap after user message)
- Skill usage frequency (
- Invoke Claude CLI headless for idea abstraction
- Output
raw_candidates.yaml
Stage 2: Scoring and Deduplication
- Load existing skills from
skills/*/SKILL.mdfrontmatter - Deduplicate via Jaccard similarity (threshold > 0.5) against:
- Existing skill names and descriptions
- Existing backlog ideas
- 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
- Merge scored candidates into
logs/.skill_generation_backlog.yaml
Output Format
raw_candidates.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)
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 rubricscripts/mine_session_logs.py— Session log parserscripts/score_ideas.py— Scorer and deduplicator
Related skills
More from tradermonty/claude-trading-skills and the wider catalog.

skill-integration-tester
Validate multi-skill workflows and inter-skill data contracts before release.

stanley-druckenmiller-investment
Synthesize 8 upstream market analysis skills into a unified conviction score and Druckenmiller-style allocation recommendation.

stockbee-20pct-study
Build a daily 20% mover study for US equities to identify catalysts, patterns, and edge hints from explosive price moves.

stockbee-episodic-pivot-analyzer
Identify and score Stockbee-style Day 1 Episodic Pivot candidates from earnings, M&A, FDA, and catalyst events.

stockbee-exhaustion-hammer-screener
Screen US stocks for Stockbee-style selling-exhaustion hammer setups with momentum, pullback, and geometry scoring.

stockbee-momentum-burst-screener
Screen US stocks for Stockbee-style Momentum Burst setups using 4% breakout, range expansion, and volume triggers.