Community编程与开发github.com

tradermonty/skill-idea-miner

挖掘 Claude Code 会话日志以获取技能创意候选。在每周技能生成流水线运行时使用,从最近的编程会话中提取、评分并记录新的技能创意。

skill-idea-miner 是什么?

Skill Idea Miner 是一个自动化工具,用于从 Claude Code 会话日志中提取技能创意候选,并对其进行新颖性、可行性和交易价值的评分。它主要用于每周六自动运行的技能生成流水线,但也可以手动执行。该工具通过解析会话日志中的用户消息、工具使用模式以及错误信号来识别潜在的新技能需求,然后使用 Claude CLI 进行无头推理以生成抽象创意。最后,它会使用 Jaccard 相似度进行去重,并根据组合分数对创意进行优先级排序,最终输出到日志文件中。该工具支持 Python 3.10+ 环境,并需要 Claude CLI 进行 LLM 调用,无需独立的 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 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Skill Idea Miner

自动从 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 密钥(使用 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).

相关技能