A share concept

From aifinlab/FinClaw · View interactive version

A share concept is an AI agent skill from the GitHub repository aifinlab/FinClaw. A股概念板块/题材分析/热点概念追踪。当用户说"概念板块"、"题材"、"热点板块"、"概念股"、"XX概念"、"AI概念"、"新能源概念"、"XX板块有哪些股票"、"今天什么板块涨了"、"风口"、"概念板块分析"、"热点题材"时触发。MUST USE when user asks about concept/thematic sectors, hot topics, or which concept boards are trending in A-shares. 基于 adata 概念板块数据和 cn-stock-data 行情数据,分析概念板块构成、走势、龙头股、资金流向。支持研报风格(f

How to use this skill

Skill file

A股概念板块/题材分析

数据源

SCRIPTS="$SKILLS_ROOT/cn-stock-data/scripts"

# 概念板块列表(adata)
python -c "import adata; df=adata.stock.info.concept_constituent(wait_time=0); print(df.head(20).to_json(orient='records', force_ascii=False))"

# 概念板块成分股(adata,需指定 concept_code)
python -c "import adata; df=adata.stock.info.concept_constituent(concept_code='BK0655'); print(df.to_json(orient='records', force_ascii=False))"

# 成分股行情
python "$SCRIPTS/cn_stock_data.py" quote --code [CODE1],[CODE2],...

# 成分股K线
python "$SCRIPTS/cn_stock_data.py" kline --code [CODE] --freq daily --start [日期]

# 成分股资金流向
python "$SCRIPTS/cn_stock_data.py" fund_flow --code [CODE]

补充:通过 web 搜索获取概念板块热度、新闻催化剂、政策驱动因素。

Workflow

  1. 确定分析对象:指定概念板块 / 今日热门概念 / 概念对比
  2. 数据获取:概念成分股列表 + 各股行情 + 资金流向
  3. 板块分析:
  1. 驱动因素分析:
  1. 输出:按用户偏好输出 formal(研报风格)或 brief(快速解读)

关键规则

  1. 概念板块与行业板块不同:一只股票可属于多个概念
  2. 题材炒作往往短期性强,需区分"长期逻辑"和"短期炒作"
  3. 概念板块数据来源不统一(东财/同花顺/adata 分类可能不同),以 adata 为准
  4. 龙头股判断标准:最先涨停 + 成交量最大 + 市值辨识度最高

参考资料

使用示例

示例 1: 基本使用

# 调用 skill
result = run_skill({
    "param1": "value1",
    "param2": "value2"
})

示例 2: 命令行使用

python scripts/run_skill.py --input data.json
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.