← 返回 Skills 市场
clawdiri-ai

Einstein Research — Market Theme Detector

作者 RunByDaVinci · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
132
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install einstein-research-themes-dv
功能描述
Detect and analyze trending market themes across sectors. Use when user asks about current market themes, trending sectors, sector rotation, thematic investi...
使用说明 (SKILL.md)

Theme Detector

Overview

This skill detects and ranks trending market themes by analyzing cross-sector momentum, volume, and breadth signals. It identifies both bullish (upward momentum) and bearish (downward pressure) themes, assesses lifecycle maturity (early/mid/late/exhaustion), and provides a confidence score combining quantitative data with narrative analysis.

3-Dimensional Scoring Model:

  1. Theme Heat (0-100): Direction-neutral strength of the theme (momentum, volume, uptrend ratio, breadth)
  2. Lifecycle Maturity: Stage classification (Early / Mid / Late / Exhaustion) based on duration, extremity clustering, valuation, and ETF proliferation
  3. Confidence (Low / Medium / High): Reliability of the detection, combining quantitative breadth with narrative confirmation

Key Features:

  • Cross-sector theme detection using FINVIZ industry data
  • Direction-aware scoring (bullish and bearish themes)
  • Lifecycle maturity assessment to identify crowded vs. emerging trades
  • ETF proliferation scoring (more ETFs = more mature/crowded theme)
  • Integration with uptrend-dashboard for 3-point evaluation
  • Dual-mode operation: FINVIZ Elite (fast) or public scraping (slower, limited)
  • WebSearch-based narrative confirmation for top themes

When to Use This Skill

Explicit Triggers:

  • "What market themes are trending right now?"
  • "Which sectors are hot/cold?"
  • "Detect current market themes"
  • "What are the strongest bullish/bearish narratives?"
  • "Is AI/clean energy/defense still a strong theme?"
  • "Where is sector rotation heading?"
  • "Show me thematic investing opportunities"

Implicit Triggers:

  • User wants to understand broad market narrative shifts
  • User is looking for thematic ETF or sector allocation ideas
  • User asks about crowded trades or late-cycle themes
  • User wants to know which themes are emerging vs. exhausted

When NOT to Use:

  • Individual stock analysis (use us-stock-analysis instead)
  • Specific sector deep-dive with chart reading (use sector-analyst instead)
  • Portfolio rebalancing (use portfolio-manager instead)
  • Dividend/income investing (use value-dividend-screener instead)

Workflow

Step 1: Verify Requirements

Check for required API keys and dependencies:

# Check for FINVIZ Elite API key (optional but recommended)
echo $FINVIZ_API_KEY

# Check for FMP API key (optional, used for valuation metrics)
echo $FMP_API_KEY

Requirements:

  • Python 3.7+ with requests, beautifulsoup4, lxml
  • FINVIZ Elite API key (recommended for full industry coverage and speed)
  • FMP API key (optional, for P/E ratio valuation data)
  • Without FINVIZ Elite, the skill uses public FINVIZ scraping (limited to ~20 stocks per industry, slower rate limits)

Installation:

pip install requests beautifulsoup4 lxml

Step 2: Execute Theme Detection Script

Run the main detection script:

python3 skills/theme-detector/scripts/theme_detector.py \
  --output-dir reports/

Script Options:

# Full run (public FINVIZ mode, no API key required)
python3 skills/theme-detector/scripts/theme_detector.py \
  --output-dir reports/

# With FINVIZ Elite API key
python3 skills/theme-detector/scripts/theme_detector.py \
  --finviz-api-key $FINVIZ_API_KEY \
  --output-dir reports/

# With FMP API key for enhanced stock data
python3 skills/theme-detector/scripts/theme_detector.py \
  --fmp-api-key $FMP_API_KEY \
  --output-dir reports/

# Custom limits
python3 skills/theme-detector/scripts/theme_detector.py \
  --max-themes 5 \
  --max-stocks-per-theme 5 \
  --output-dir reports/

# Explicit FINVIZ mode
python3 skills/theme-detector/scripts/theme_detector.py \
  --finviz-mode public \
  --output-dir reports/

Expected Execution Time:

  • FINVIZ Elite mode: ~2-3 minutes (14+ themes)
  • Public FINVIZ mode: ~5-8 minutes (rate-limited scraping)

Step 3: Read and Parse Detection Results

The script generates two output files:

  • theme_detector_YYYY-MM-DD_HHMMSS.json - Structured data for programmatic use
  • theme_detector_YYYY-MM-DD_HHMMSS.md - Human-readable report

Read the JSON output to understand quantitative results:

# Find the latest report
ls -lt reports/theme_detector_*.json | head -1

# Read the JSON output
cat reports/theme_detector_YYYY-MM-DD_HHMMSS.json

Step 4: Perform Narrative Confirmation via WebSearch

For the top 5 themes (by Theme Heat score), execute WebSearch queries to confirm narrative strength:

Search Pattern:

"[theme name] stocks market [current month] [current year]"
"[theme name] sector momentum [current month] [current year]"

Evaluate narrative signals:

  • Strong narrative: Multiple major outlets covering the theme, analyst upgrades, policy catalysts
  • Moderate narrative: Some coverage, mixed sentiment, no clear catalyst
  • Weak narrative: Little coverage, or predominantly contrarian/skeptical tone

Update Confidence levels based on findings:

  • Quantitative High + Narrative Strong = High confidence
  • Quantitative High + Narrative Weak = Medium confidence (possible momentum divergence)
  • Quantitative Low + Narrative Strong = Medium confidence (narrative may lead price)
  • Quantitative Low + Narrative Weak = Low confidence

Step 5: Analyze Results and Provide Recommendations

Cross-reference detection results with knowledge bases:

Reference Documents to Consult:

  1. references/cross_sector_themes.md - Theme definitions and constituent industries
  2. references/thematic_etf_catalog.md - ETF exposure options by theme
  3. references/theme_detection_methodology.md - Scoring model details
  4. references/finviz_industry_codes.md - Industry classification reference

Analysis Framework:

For Hot Bullish Themes (Heat >= 70, Direction = Bullish):

  • Identify lifecycle stage (Early = opportunity, Late/Exhaustion = caution)
  • List top-performing industries within the theme
  • Recommend proxy ETFs for exposure
  • Flag if ETF proliferation is high (crowded trade warning)

For Hot Bearish Themes (Heat >= 70, Direction = Bearish):

  • Identify industries under pressure
  • Assess if bearish momentum is accelerating or decelerating
  • Recommend hedging strategies or sectors to avoid
  • Note potential mean-reversion opportunities if lifecycle is Late/Exhaustion

For Emerging Themes (Heat 40-69, Lifecycle = Early):

  • These may represent early rotation signals
  • Recommend monitoring with watchlist
  • Identify catalyst events that could accelerate the theme

For Exhausted Themes (Heat >= 60, Lifecycle = Exhaustion):

  • Warn about crowded trade risk
  • High ETF count confirms excessive retail participation
  • Consider contrarian positioning or reducing ex
安全使用建议
This skill appears to do what it says: analyze industry/ETF data and surface market themes. Before installing or running it: - Confirm the correct script path (scripts/theme_detector.py) and update SKILL.md command examples if needed. - If you want full coverage, provide a FINVIZ Elite API key and optionally an FMP API key; those keys are reasonable and used only for market data — they are not declared as required in the registry, so set them only if you intend to use Elite/FMP features. - Expect the skill to perform web scraping (FINVIZ public pages) and WebSearch queries for narrative confirmation; run it in an environment where outgoing network traffic is allowed and acceptable. - Review the included Python code (present in the bundle) if you have additional security concerns; there are no remote installers or hidden endpoints in the manifest, but code-level review can verify there is no unwanted telemetry or exfiltration. - Be mindful of rate limits and terms of service when scraping FINVIZ (public mode) — the skill mentions delays but aggressive runs could trigger blocks. If you need higher assurance, request a short summary of which files make outbound HTTP calls and to which domains, or ask for a diff of any third-party libraries used.
功能分析
Type: OpenClaw Skill Name: einstein-research-themes-dv Version: 0.1.0 The 'einstein-research-themes' skill is a comprehensive tool for analyzing financial market themes using data from FINVIZ, Financial Modeling Prep (FMP), and Yahoo Finance. The code is modular, well-documented, and includes an extensive test suite. It fetches market data via legitimate APIs and a public GitHub repository (tradermonty/uptrend-dashboard) to calculate momentum, volume, and breadth scores. No evidence of data exfiltration, malicious execution, or prompt injection was found. The skill follows standard security practices, such as using environment variables for API keys and safe YAML loading.
能力评估
Purpose & Capability
Name/description (market theme detection) align with the included code (theme_detector, industry/ETF references, scoring calculators, ETF catalog, etc.). The scripts and reference files are appropriate for the stated purpose (FINVIZ data, ETF catalog, lifecycle scoring).
Instruction Scope
SKILL.md instructs running a local Python script that scrapes/consumes FINVIZ, optionally uses FMP API and an uptrend-dashboard CSV, and performs WebSearch for narrative confirmation. Those actions are within the skill's stated purpose. Note: the SKILL.md examples reference a path 'skills/theme-detector/scripts/theme_detector.py' while the package contains 'scripts/theme_detector.py' — this path mismatch could break the one-line commands in SKILL.md and should be corrected.
Install Mechanism
No remote downloads or exotic install steps. The instructions ask to pip install common Python libraries (requests, beautifulsoup4, lxml, pandas). The skill is included as code in the bundle (no installer needed) so there is no high-risk external install URL.
Credentials
Registry metadata lists no required env vars, but SKILL.md and README reference optional/recommended API keys (FINVIZ_API_KEY / FINVIZ_ELITE_KEY and FMP_API_KEY) and expect WebSearch access. These keys are reasonable for the functionality, but their omission from the declared 'required env' is an inconsistency. The skill does not request unrelated credentials (no AWS/GITHUB/etc.).
Persistence & Privilege
Skill does not request always:true and contains no install spec that would force persistent system-wide changes. It's not declared as always-present and there are no instructions to modify other skills or system settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install einstein-research-themes-dv
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /einstein-research-themes-dv 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release
元数据
Slug einstein-research-themes-dv
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Einstein Research — Market Theme Detector 是什么?

Detect and analyze trending market themes across sectors. Use when user asks about current market themes, trending sectors, sector rotation, thematic investi... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 132 次。

如何安装 Einstein Research — Market Theme Detector?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install einstein-research-themes-dv」即可一键安装,无需额外配置。

Einstein Research — Market Theme Detector 是免费的吗?

是的,Einstein Research — Market Theme Detector 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Einstein Research — Market Theme Detector 支持哪些平台?

Einstein Research — Market Theme Detector 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Einstein Research — Market Theme Detector?

由 RunByDaVinci(@clawdiri-ai)开发并维护,当前版本 v0.1.0。

💬 留言讨论