Install
openclaw skills install @sunsongyeah/industry-prosperity-tracker跟踪任意行业景气度,用 A 股龙头股财务数据 + 宏观指标(PMI/PPI/进出口)计算综合景气评分(0-100), 判断行业处于上行周期、下行周期还是拐点区域。支持内置行业(半导体、医药、新能源、消费品)和任意自定义行业。
openclaw skills install @sunsongyeah/industry-prosperity-trackerWhen a user wants to track an industry's prosperity / business cycle status, this Skill:
scripts/fetch_indicators.py (using free public data sources only via AKShare)scripts/calculate_score.pyscripts/generate_report.py using assets/report_template.htmlThis Skill uses a generic indicator framework that works for any industry:
Universal Macro Layer (40% weight, same for all industries):
Dynamic Stock Layer (60% weight, per-industry):
Weights are automatically distributed based on the number of stocks provided. No manual weight configuration needed.
When a user says something like "看医药行业景气度" or "帮我跟踪新能源板块":
Check if the industry is in BUILTIN_SECTORS (see scripts/fetch_indicators.py):
semiconductor (半导体): 北方华创, 韦尔股份pharma (医药): 恒瑞医药, 药明康德, 片仔癀new_energy (新能源): 宁德时代, 比亚迪consumer (消费品): 贵州茅台, 五粮液If built-in: use directly.
If NOT built-in (e.g. user says "看军工行业"):
--stocks parameter: --stocks "600760:中航沈飞,002179:中航光电,000768:中航西飞" --sector-name "军工"Run scripts/fetch_indicators.py:
# Built-in industry
python scripts/fetch_indicators.py --sector semiconductor
# Custom industry (AI picks stocks)
python scripts/fetch_indicators.py --sector military --sector-name "军工" \
--stocks "600760:中航沈飞,002179:中航光电,000768:中航西飞"
# List all built-in sectors
python scripts/fetch_indicators.py --list-sectors
Output: data/{sector}_latest.json
python scripts/calculate_score.py --input data/{sector}_latest.json --output data/{sector}_scored.json
python scripts/generate_report.py --input data/{sector}_scored.json --output output/{sector}_report.html
Present the generated HTML report to the user with a summary of the score and key signals.
When selecting representative stocks for a new industry, choose stocks that are:
Good examples:
| Sector ID | Name | Stocks | Indicators |
|---|---|---|---|
| semiconductor | 半导体 | 北方华创(002371), 韦尔股份(603501) | 9 (5 macro + 4 stock) |
| pharma | 医药 | 恒瑞医药(600276), 药明康德(603259), 片仔癀(600436) | 11 (5 macro + 6 stock) |
| new_energy | 新能源 | 宁德时代(300750), 比亚迪(002594) | 9 (5 macro + 4 stock) |
| consumer | 消费品 | 贵州茅台(600519), 五粮液(000858) | 9 (5 macro + 4 stock) |
To add a new built-in industry: add an entry to BUILTIN_SECTORS dict in scripts/fetch_indicators.py.
All data sources are from the compliance whitelist. See references/data_sources.md for details.
Key principle: this Skill uses free public data exclusively via AKShare open-source library. Data sources include National Bureau of Statistics (PMI, PPI), Customs General Administration (exports, imports), and exchange-disclosed financial reports (stock Financial Abstract). No paid terminal data (Wind, Bloomberg, iFinD) is used.
This Skill provides data aggregation and indicator calculation only. It does NOT:
Every output includes the disclaimer: "本工具仅提供数据整理和指标计算服务,不构成任何投资建议。历史数据不代表未来表现。数据可能存在延迟。"
See the bottom of assets/report_template.html for the fixed disclaimer footer.
See references/scoring_methodology.md for full details.
The report includes: