Communityコーディング&開発github.com

tradermonty/skill-idea-miner

Claude Codeのセッションログからスキルアイデアの候補を抽出します。週次のスキル生成パイプラインを実行する際に使用し、直近のコーディングセッションから新しいスキルアイデアを抽出、スコアリングし、バックログに登録します。

skill-idea-miner とは?

Skill Idea Minerは、Claude Codeのセッションログを自動的に解析し、新しいスキルアイデアの候補を抽出するためのツールです。ユーザーのリクエストパターン、ツール使用状況、エラー発生箇所、繰り返し発生する操作シーケンスなどを検出し、それらを元にスキルアイデアを生成します。抽出されたアイデアは独自性、実現可能性、トレーディング価値の3軸でスコアリングされ、既存スキルやバックログとの重複がチェックされた後、優先順位付きのバックログに統合されます。週次の自動パイプライン実行(launchd経由、毎週土曜06:00)や手動リフレッシュに対応しており、Claude CLIのみで動作するため追加のAPIキーは不要です。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tradermonty/claude-trading-skills/tree/main/skills/skill-idea-miner

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

スキルアイデアマイナー

Claude Codeのセッションログからスキルアイデア候補を自動抽出し、 新規性、実現可能性、トレーディング価値でスコアリングし、 下流のスキル生成に向けた優先順位付きバックログを維持します。

使用タイミング

  • 週次自動パイプライン実行(毎週土曜06:00、launchd経由)
  • 手動バックログリフレッシュ:python3 scripts/run_skill_generation_pipeline.py --mode weekly
  • ドライラン:LLMスコアリングなしで候補をプレビュー

前提条件

  • Python 3.10+ と pyyaml パッケージ
  • Claude CLI がインストールされ、認証済みであること(claude --version で確認)
  • セッションログが ~/.claude/projects/<project>/ に存在すること(Claude Codeが自動で作成)
  • APIキー不要(LLM呼び出しにはClaude CLIを使用)

ワークフロー

クイックスタート

# ドライラン:LLMスコアリングなしで抽出候補をプレビュー
python3 scripts/mine_session_logs.py --dry-run --output-dir reports/

# フル抽出(スコアリングあり、Claude CLIが必要)
python3 scripts/mine_session_logs.py --output-dir reports/

# 既存候補のスコアリング
python3 scripts/score_ideas.py \
  --candidates reports/raw_candidates.yaml \
  --output-dir logs/

ステージ1:セッションログのマイニング

  1. ~/.claude/projects/ 内の許可リストプロジェクトからセッションログを列挙
  2. ファイルのmtimeから過去7日間にフィルタリングし、timestamp フィールドで確認
  3. ユーザーメッセージを抽出(type: "user"、userType: "external")
  4. アシスタントメッセージからツール使用パターンを抽出
  5. 決定論的なシグナル検出を実行:
    • スキル使用頻度(skills/*/ パス参照)
    • エラーパターン(非ゼロ終了コード、is_error フラグ、例外キーワード)
    • 繰り返しツールシーケンス(3回以上繰り返される3つ以上のツール)
    • 自動化リクエストキーワード(英語および日本語)
    • 未解決リクエスト(ユーザーメッセージ後に5分以上のギャップ)
  6. Claude CLIをヘッドレスで呼び出し、アイデアの抽象化を実行
  7. raw_candidates.yaml を出力

ステージ2:スコアリングと重複排除

  1. skills/*/SKILL.md のフロントマターから既存スキルを読み込み
  2. Jaccard類似度(閾値 > 0.5)で重複排除:
    • 既存スキル名と説明
    • 既存バックログアイデア
  3. 重複しない候補をClaude CLIでスコアリング:
    • 新規性(0-100):既存スキルとの差別化度
    • 実現可能性(0-100):技術的な実装容易性
    • トレーディング価値(0-100):投資家/トレーダーにとっての実用的価値
    • 複合スコア = 0.3 × 新規性 + 0.3 × 実現可能性 + 0.4 × トレーディング価値
  4. スコアリング済み候補を logs/.skill_generation_backlog.yaml にマージ

出力形式

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"

バックログ(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"

リソース

  • references/idea_extraction_rubric.md — シグナル検出基準とスコアリングルーブリック
  • scripts/mine_session_logs.py — セッションログパーサー
  • scripts/score_ideas.py — スコアラーと重複排除ツール

Individual skills in this repo

This repo contains 14 individual skills — each has its own dedicated page.

tradermonty/backtest-expert

Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.

tradermonty/market-environment-analysis

Comprehensive market environment analysis and reporting tool. Analyzes global markets including US, European, Asian markets, forex, commodities, and economic indicators. Provides risk-on/risk-off assessment, sector analysis, and technical indicator interpretation. Triggers on keywords like market analysis, market environment, global markets, trading environment, market conditions, investment climate, market sentiment, forex analysis, stock market analysis, 相場環境, 市場分析, マーケット状況, 投資環境.

tradermonty/market-news-analyst

This skill should be used when analyzing recent market-moving news events and their impact on equity markets and commodities. Use this skill when the user requests analysis of major financial news from the past 10 days, wants to understand market reactions to monetary policy decisions (FOMC, ECB, BOJ), needs assessment of geopolitical events' impact on commodities, or requires comprehensive review of earnings announcements from mega-cap stocks. The skill automatically collects news using WebSearch/WebFetch tools and produces impact-ranked analysis reports. All analysis thinking and output are conducted in English.

tradermonty/options-strategy-advisor

Options trading strategy analysis and simulation tool. Provides theoretical pricing using Black-Scholes model, Greeks calculation, strategy P/L simulation, and risk management guidance. Use when user requests options strategy analysis, covered calls, protective puts, spreads, iron condors, earnings plays, or options risk management. Includes volatility analysis, position sizing, and earnings-based strategy recommendations. Educational focus with practical trade simulation.

tradermonty/portfolio-manager

Comprehensive portfolio analysis using Alpaca MCP Server integration to fetch holdings and positions, then analyze asset allocation, risk metrics, individual stock positions, diversification, and generate rebalancing recommendations. Use when user requests portfolio review, position analysis, risk assessment, performance evaluation, or rebalancing suggestions for their brokerage account.

tradermonty/scenario-analyzer

Skill that analyzes 18-month scenarios from a news headline. Runs the primary analysis with the scenario-analyst agent and obtains a second opinion with the strategy-reviewer agent. Generates a comprehensive English report covering 1st/2nd/3rd-order impacts, recommended stocks, and a critical review. Example: /scenario-analyzer "Fed raises rates by 50bp" Triggers: news analysis, scenario analysis, 18-month outlook, medium-to-long-term investment strategy

tradermonty/sector-analyst

This skill should be used when analyzing sector rotation patterns and market cycle positioning. It fetches sector uptrend data from CSV (no API key required) and optionally accepts chart images for supplementary analysis. Use this skill when the user requests sector rotation analysis, cyclical vs defensive assessment, overbought/oversold identification, or market cycle phase estimation. All analysis and output are conducted in English.

tradermonty/signal-postmortem

Record and analyze post-trade outcomes for signals generated by edge pipeline and other skills. Track false positives, missed opportunities, and regime mismatches. Feed results back to edge-signal-aggregator weights and skill improvement backlog.

tradermonty/skill-designer

Design new Claude skills from structured idea specifications. Use when the skill auto-generation pipeline needs to produce a Claude CLI prompt that creates a complete skill directory (SKILL.md, references, scripts, tests) following repository conventions.

tradermonty/theme-detector

Detect and analyze trending market themes across sectors. Use when user asks about current market themes, trending sectors, sector rotation, thematic investing, what themes are hot or cold, or wants to identify bullish and bearish market narratives with lifecycle analysis.

tradermonty/uptrend-analyzer

Analyzes market breadth using Monty's Uptrend Ratio Dashboard data to diagnose the current market environment. Generates a 0-100 composite score from 5 components (breadth, sector participation, rotation, momentum, historical context). Use when asking about market breadth, uptrend ratios, or whether the market environment supports equity exposure. No API key required.

tradermonty/us-stock-analysis

Comprehensive US stock analysis including fundamental analysis (financial metrics, business quality, valuation), technical analysis (indicators, chart patterns, support/resistance), stock comparisons, and investment report generation. Use when user requests analysis of US stock tickers (e.g., "analyze AAPL", "compare TSLA vs NVDA", "give me a report on Microsoft"), evaluation of financial metrics, technical chart analysis, or investment recommendations for American stocks.

tradermonty/value-dividend-screener

Screen US stocks for high-quality dividend opportunities combining value characteristics (P/E ratio under 20, P/B ratio under 2), attractive yields (3% or higher), and consistent growth (dividend/revenue/EPS trending up over 3 years). Supports two-stage screening using FINVIZ Elite API for efficient pre-filtering followed by FMP API for detailed analysis. Use when user requests dividend stock screening, income portfolio ideas, or quality value stocks with strong fundamentals.

tradermonty/vcp-screener

Screen S&P 500 stocks for Mark Minervini's Volatility Contraction Pattern (VCP) and detect historical VCPs in a single ticker's price path. Identifies Stage 2 uptrend stocks forming tight bases with contracting volatility near breakout pivot points; in historical single-ticker mode walks a multi-year history and emits every VCP that formed with forward-outcome stats (breakout / stop-hit / timeout). Use when user requests VCP screening, Minervini-style setups, tight base patterns, volatility contraction breakout candidates, Stage 2 momentum stock scanning, or historical VCP pattern study on a specific ticker (e.g. FIX, TSLA).

関連スキル