Community程式設計與開發github.com

tradermonty/skill-idea-miner

從 Claude Code 工作階段記錄中挖掘技能想法候選。在每週技能生成管線中使用,以提取、評分並累積新的技能想法。

skill-idea-miner 是什麼?

這個技能自動從 Claude Code 的工作階段記錄中提取出技能想法候選,並評分其新穎性、可行性和交易價值(Trading Value)。它支援每週六透過 launchd 自動排程執行,或手動執行指令觸發。運作時無需 API 金鑰,而是透過 Claude CLI 進行大語言模型呼叫。工作流程分為兩個階段:第一階段掃描工作階段記錄,使用確定性訊號偵測(如技能使用頻率、錯誤模式、重複工具序列等)來提取原始候選;第二階段透過 Jaccard 相似度進行去重,並用複合分數(Composite Score = 0.3 * 新穎性 + 0.3 * 可行性 + 0.4 * 交易價值)來排定優先序。最終輸出為 `raw_candidates.yaml` 與 `logs/.skill_generation_backlog.yaml`,供下游技能生成使用。

相容平台✓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 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

技能想法挖掘器

自動從 Claude Code 工作階段記錄中提取技能想法候選, 評分其新穎性、可行性與交易價值,並維護一個 優先順序化的待辦清單,供下游技能生成使用。

使用時機

  • 每週自動化管線執行(週六 06:00 透過 launchd)
  • 手動更新待辦清單:python3 scripts/run_skill_generation_pipeline.py --mode weekly
  • 預覽候選(不進行 LLM 評分):python3 scripts/run_skill_generation_pipeline.py --dry-run

前置需求

  • Python 3.10+,並安裝 pyyaml 套件
  • Claude CLI 已安裝並通過驗證(使用 claude --version 確認)
  • 工作階段記錄位於 ~/.claude/projects/<project>/(由 Claude Code 自動建立)
  • 無需 API 金鑰(使用 Claude CLI 進行 LLM 呼叫)

工作流程

快速開始

# 預覽模式:僅挖掘候選,不進行 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. 根據檔案修改時間過濾出最近 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).

相關技能