A股分析研究助手,提供行情数据获取与技术面/基本面分析框架(仅供研究参考,不构成投资建议)。适用于:(1) 获取A股行情和历史数据,(2) 技术面分析(K线形态、MACD、KDJ、RSI、布林带等),(3) 基本面分析(财务指标、估值分析),(4) 板块热点追踪,(5) 选股策略筛选与量化因子分析,(6) 生成股市分析报告。当用户询问"帮我分析股票"、"今日选股"、"A股行情分析"、"技术分析"、"量化选股"时触发。不用于:预测明日涨跌或给出确定性买卖指令、代客决策、港股美股(数据源不同)、加密货币。
npx skills add https://github.com/staruhub/ClaudeSkills --skill a-share-analyst
专业的A股市场分析工具,整合多数据源,提供技术面、基本面综合分析和智能选股策略。
使用AKShare作为主要数据源(免费、开源、无需token):
pip install akshare --break-system-packages
import akshare as ak
# 实时行情
df = ak.stock_zh_a_spot_em() # 全部A股实时行情
# 历史K线
df = ak.stock_zh_a_hist(symbol="000001", period="daily", adjust="qfq")
# 板块行情
df = ak.stock_board_concept_name_em() # 概念板块
df = ak.stock_board_industry_name_em() # 行业板块
# 龙虎榜(日期用实际查询区间,格式 YYYYMMDD)
df = ak.stock_lhb_detail_em(start_date="<起始日>", end_date="<结束日>")
# 资金流向
df = ak.stock_individual_fund_flow(stock="000001", market="sz")
执行顺序:
对单只股票执行:
references/technical_indicators.md)references/candlestick_patterns.md)执行顺序:
策略类型选择:
scripts/strategy_multi_factor.py(已实现,内置 ST/停牌过滤)# [股票名称]([股票代码]) 分析报告
## 基本信息
- 当前价格:¥XX.XX(涨跌幅 +X.XX%)
- 市值:XXX亿 | PE(TTM):XX.X | PB:X.XX
## 技术面分析
- 趋势判断:[上升/震荡/下降]
- 支撑位:¥XX.XX | 阻力位:¥XX.XX
- 技术指标:MACD [金叉/死叉] | KDJ [超买/超卖/中性] | RSI [XX]
## 基本面分析
- 营收增速:XX% | 净利润增速:XX%
- ROE:XX% | 毛利率:XX%
## 综合评分
- 技术面:⭐⭐⭐⭐☆ (4/5)
- 基本面:⭐⭐⭐☆☆ (3/5)
## 操作建议
[具体建议及风险提示]
# 每日选股清单 [日期]
## 市场概览
- 上证指数:XXXX.XX(+X.XX%)
- 深证成指:XXXXX.XX(+X.XX%)
- 创业板指:XXXX.XX(+X.XX%)
## 热点板块 TOP5
1. [板块名称] +X.XX%
2. ...
## 精选个股
### 趋势突破型
| 代码 | 名称 | 现价 | 涨幅 | 突破形态 | 评分 |
|------|------|------|------|----------|------|
| ... | ... | ... | ... | ... | ... |
### 价值低估型
| 代码 | 名称 | 现价 | PE | PB | 评分 |
|------|------|------|-----|-----|------|
| ... | ... | ... | ... | ... | ... |
## 风险提示
投资有风险,以上分析仅供参考,不构成投资建议。
scripts/fetch_market_data.py - 市场数据获取scripts/technical_analysis.py - 技术指标计算(输出中性强弱描述,非买卖评级)scripts/strategy_multi_factor.py - 多因子选股(含 ST/停牌过滤)scripts/generate_report.py - 报告生成(需在 scripts/ 目录内运行,依赖 technical_analysis)references/technical_indicators.md - 技术指标计算公式references/candlestick_patterns.md - K线形态识别references/fundamental_metrics.md - 基本面指标说明references/factor_library.md - 量化因子库| 陷阱 | 具体表现 | 应对 |
|------|---------|------|
| akshare 接口变动 | 库更新后函数名/字段变了,脚本报错 | 报错时先查 akshare 当前版本文档,不硬猜字段 |
| 延迟数据当实时 | 用 15 分钟前的价格谈"当前" | 报告标注数据获取时间 |
| 指标堆砌无结论 | MACD/KDJ/RSI 全列一遍但互相矛盾不解释 | 指标冲突时明确说"信号分歧"及其含义 |
| 幸存者偏差选股 | 用当前成分股回测历史策略 | 回测结论标注该局限 |
| 节假日/停牌数据 | 停牌股票数据缺失导致计算错误 | 计算前过滤停牌与 ST 异常状态 |
evals/routing-evals.json — 触发边界回归用例,改 description 后用仓库根 scripts/run_routing_evals.py 校验。
Automatically organizes invoices and receipts for tax preparation by reading messy files, extracting key information, renaming them consistently, and sorting them into logical folders. Turns hours of manual bookkeeping into minutes of automated organization.
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.
This skill calculates key financial ratios and metrics from financial statement data for investment analysis
This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions
This skill retrieves upcoming earnings announcements for US stocks using the Financial Modeling Prep (FMP) API. Use this when the user requests earnings calendar data, wants to know which companies are reporting earnings in the upcoming week, or needs a weekly earnings review. The skill focuses on mid-cap and above companies (over $2B market cap) that have significant market impact, organizing the data by date and timing in a clean markdown table format. Supports multiple environments (CLI, Desktop, Web) with flexible API key management.
Crypto wallet operations via the awal CLI — sign in, check balances, send USDC/ETH/POL/SOL, trade tokens, fund the wallet, and use the x402 payment protocol to discover paid services, pay for API calls, monetize an API, or query onchain data. Use whenever the user mentions signing in, login, authentication, wallet status, balance, address, sending money, paying someone, transferring tokens, ENS names, swapping/trading/converting tokens, funding/topping up/onramp, USDC, ETH, POL, SOL, the x402 bazaar, paid APIs, monetizing an endpoint, or querying onchain data on Base.
Access real-time and historical stock market data, forex rates, cryptocurrency prices, commodities, economic indicators, and 50+ technical indicators via the Alpha Vantage API. Use when fetching stock prices (OHLCV), company fundamentals (income statement, balance sheet, cash flow), earnings, options data, market news/sentiment, insider transactions, GDP, CPI, treasury yields, gold/silver/oil prices, Bitcoin/crypto prices, forex exchange rates, or calculating technical indicators (SMA, EMA, MACD, RSI, Bollinger Bands). Requires a free API key from alphavantage.co.
Braintree Automation: manage payment processing via Stripe-compatible tools for customers, subscriptions, payment methods, and transactions
Take staruhub/a-share-analyst from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.
The instructions reference pip.
Without those the skill loads but fails at the first command.