china-stock-analysis

sugarforever/01coder-agent-skills · updated May 15, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/sugarforever/01coder-agent-skills --skill china-stock-analysis
0 commentsdiscussion
summary

Value-investing analysis tool for Chinese A-shares with stock screening, deep financial analysis, and valuation modeling.

  • Four core modules: stock screener (filter by PE, ROE, dividend yield, debt ratio), financial analyzer (profitability, growth, cash flow trends), industry comparator (peer benchmarking), and valuation calculator (DCF, DDM, relative valuation methods)
  • Automated financial anomaly detection flags suspicious patterns in receivables, cash flow divergence, inventory buildup
skill.md

China Stock Analysis Skill

基于价值投资理论的中国A股分析工具,面向低频交易的普通投资者。

When to Use

当用户请求以下操作时调用此skill:

  • 分析某只A股股票
  • 筛选符合条件的股票
  • 对比多只股票或行业内股票
  • 计算股票估值或内在价值
  • 查看股票的财务健康状况
  • 检测财务异常风险

Prerequisites

Python环境要求

pip install akshare pandas numpy

依赖检查

在执行任何分析前,先检查akshare是否已安装:

python -c "import akshare; print(akshare.__version__)"

如果未安装,提示用户安装:

pip install akshare

Core Modules

1. Stock Screener (股票筛选器)

筛选符合条件的股票

2. Financial Analyzer (财务分析器)

个股深度财务分析

3. Industry Comparator (行业对比)

同行业横向对比分析

4. Valuation Calculator (估值计算器)

内在价值测算与安全边际计算


Workflow 1: Stock Screening (股票筛选)

用户请求筛选股票时使用。

Step 1: Collect Screening Criteria

向用户询问筛选条件。提供以下选项供用户选择或自定义:

估值指标:

  • PE (市盈率): 例如 PE < 15
  • PB (市净率): 例如 PB < 2
  • PS (市销率): 例如 PS < 3

盈利能力:

  • ROE (净资产收益率): 例如 ROE > 15%
  • ROA (总资产收益率): 例如 ROA > 8%
  • 毛利率: 例如 > 30%
  • 净利率: 例如 > 10%

成长性:

  • 营收增长率: 例如 > 10%
  • 净利润增长率: 例如 > 15%
  • 连续增长年数: 例如 >= 3年

股息:

  • 股息率: 例如 > 3%
  • 连续分红年数: 例如 >= 5年

财务安全:

  • 资产负债率: 例如 < 60%
  • 流动比率: 例如 > 1.5
  • 速动比率: 例如 > 1

筛选范围:

  • 全A股
  • 沪深300成分股
  • 中证500成分股
  • 创业板/科创板
  • 用户自定义列表

Step 2: Execute Screening

python scripts/stock_screener.py \
    --scope "hs300" \
    --pe-max 15 \
    --roe-min 15 \
    --debt-ratio-max 60 \
    --dividend-min 2 \
    --output screening_result.json

参数说明:

  • --scope: 筛选范围 (all/hs300/zz500/cyb/kcb/custom:600519,000858,...)
  • --pe-max/--pe-min: PE范围
  • --pb-max/--pb-min: PB范围
  • --roe-min: 最低ROE
  • --growth-min: 最低增长率
  • --debt-ratio-max: 最大资产负债率
  • --dividend-min: 最低股息率
  • --output: 输出文件路径

Step 3: Present Results

读取 screening_result.json 并以表格形式呈现给用户:

代码 名称 PE PB ROE 股息率 评分
600519 贵州茅台 25.3 8.5 30.2% 2.1% 85

Workflow 2: Stock Analysis (个股分析)

用户请求分析某只股票时使用。

Step 1: Collect Stock Information

询问用户:

  1. 股票代码或名称
  2. 分析深度级别:
    • 摘要级:关键指标 + 投资结论(1页)
    • 标准级:财务分析 + 估值 + 行业对比 + 风险提示
    • 深度级:完整调研报告,包含历史数据追踪

Step 2: Fetch Stock Data

python scripts/data_fetcher.py \
    --code "600519" \
    --data-type all \
    --years 5 \
    --output stock_data.json

参数说明:

  • --code: 股票代码
  • --data-type: 数据类型 (basic/financial/valuation/holder/all)
  • --years: 获取多少年的历史数据
  • --output: 输出文件

Step 3: Run Financial Analysis

python scripts/financial_analyzer.py \
    --input stock_data.json \
    --level standard \
    --output analysis_result.json

参数说明:

  • --input: 输入的股票数据文件
  • --level: 分析深度 (summary/standard/deep)
  • --output: 输出文件

Step 4: Calculate Valuation

python scripts/valuation_calculator.py \
    --input stock_data.json \
    --methods dcf,ddm,relative \
    --discount-rate 10 \
    --growth-rate 8 \
    --output valuation_result.json

参数说明:

  • --input: 股票数据文件
  • --methods: 估值方法 (dcf/ddm/relative/all)
  • --discount-rate: 折现率(%)
  • --growth-rate: 永续增长率(%)
  • --margin-of-safety: 安全边际(%)
  • --output: 输出文件

Step 5: Generate Report

读取分析结果,参考 templates/analysis_report.md 模板生成中文分析报告。

报告结构(标准级):

  1. 公司概况:基本信息、主营业务
  2. 财务健康:资产负债表分析
  3. 盈利能力:杜邦分析、利润率趋势
  4. 成长性分析:营收/利润增长趋势
  5. 估值分析:DCF/DDM/相对估值
  6. 风险提示:财务异常检测、股东减持
  7. 投资结论:综合评分、操作建议

Workflow 3: Industry Comparison (行业对比)

Step 1: Collect Comparison Targets

询问用户:

  1. 目标股票代码(可多个)
  2. 或者:行业分类 + 对比数量

Step 2: Fetch Industry Data

python scripts/data_fetcher.py \
    --codes "600519,000858,002304" \
    --data-type comparison \
    --output industry_data.json

或按行业获取:

python scripts/data_fetcher.py \
    --industry "白酒" \
    --top 10 \
    --output industry_data.json

Step 3: Generate Comparison

python scripts/financial_analyzer.py \
    --input industry_data.json \
    --mode comparison \
    --output comparison_result.json

Step 4: Present Comparison Table

指标 贵州茅台 五粮液 洋河股份 行业均值
PE 25.3 18.2 15.6 22.4
ROE 30.2% 22.5% 20.1% 18.5%
毛利率 91.5% 75.2% 72.3% 65.4%
评分 85 78 75 -

Workflow 4: Valuation Calculator (估值计算)

Step 1: Collect Valuation Parameters

询问用户估值参数(或使用默认值):

DCF模型参数:

  • 折现率 (WACC): 默认10%
  • 预测期: 默认5年
  • 永续增长率: 默认3%

DDM模型参数:

  • 要求回报率: 默认10%
  • 股息增长率: 使用历史数据推算

相对估值参数:

  • 对比基准: 行业均值 / 历史均值

Step 2: Run Valuation

python scripts/valuation_calculator.py \
    --code "600519" \
    --methods all \
    --discount-rate 10 \
    --terminal-growth 3 \
    --forecast-years 5 \
    --margin-of-safety 30 \
    --output valuation.json

Step 3: Present Valuation Results

估值方法 内在价值 当前价格 安全边际价格 结论
DCF ¥2,150 ¥1,680 ¥1,505 低估
DDM ¥1,980 ¥1,680 ¥1,386 低估
相对估值 ¥1,850 ¥1,680 ¥1,295 合理

Financial Anomaly Detection (财务异常检测)

在分析过程中自动检测以下异常信号:

检测项目

  1. 应收账款异常

    • 应收账款增速 > 营收增速 × 1.5
    • 应收账款周转天数大幅增加
  2. 现金流背离

    • 净利润持续增长但经营现金流下降
    • 现金收入比 < 80%
  3. 存货异常

    • 存货增速 > 营收增速 × 2
    • 存货周转天数大幅增加
  4. 毛利率异常

    • 毛利率波动 > 行业均值波动 × 2
    • 毛利率与同行严重偏离
  5. 关联交易

    • 关联交易占比过高(> 30%)
  6. 股东减持

    • 大股东近期减持公告
    • 高管集中减持

风险等级

  • 🟢 低风险:无明显异常
  • 🟡 中风险:1-2项轻微异常
  • 🔴 高风险:多项异常或严重异常

A-Share Specific Analysis (A股特色分析)

政策敏感度

根据行业分类提供政策相关提示:

  • 房地产:房住不炒政策
  • 新能源:补贴政策变化
  • 医药:集采政策影响
  • 互联网:反垄断、数据安全

股东结构分析

  1. 控股股东类型(国企/民企/外资)
  2. 股权集中度
  3. 近期增减持情况
  4. 质押比例

Output Format

JSON输出格式

所有脚本输出JSON格式,便于后续处理:

{
  "code": "600519",
  "name": "贵州茅台",
  "analysis_date": "2025-01-25",
  "level": "standard",
  "summary": {
    "score": 85,
    "conclusion": "低估",
    "recommendation": "建议关注"
  },
  "financials": { ... },
  "valuation": { ... },
  "risks": [ ... ]
}

Markdown报告

生成结构化的中文Markdown报告,参考 templates/analysis_report.md


Error Handling

网络错误

如果akshare数据获取失败,提示用户:

  1. 检查网络连接
  2. 稍后重试(可能是接口限流)
  3. 尝试更换数据源

股票代码无效

提示用户检查股票代码是否正确,提供可能的匹配建议。

数据不完整

对于新上市股票或财务数据不完整的情况,说明数据限制并基于可用数据进行分析。


Best Practices

  1. 数据时效性:财务数据以最新季报/年报为准,价格数据为当日收盘价
  2. 投资建议:所有分析仅供参考,不构成投资建议
  3. 风险提示:始终包含风险提示,特别是财务异常检测结果
  4. 对比分析:单只股票分析时,自动包含行业均值对比

Important Notes

  • 所有分析基于公开财务数据,不涉及任何内幕信息
  • 估值模型的参数假设对结果影响较大,需向用户说明
  • A股市场受政策影响较大,定量分析需结合定性判断
how to use china-stock-analysis

How to use china-stock-analysis on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add china-stock-analysis
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/sugarforever/01coder-agent-skills --skill china-stock-analysis

The skills CLI fetches china-stock-analysis from GitHub repository sugarforever/01coder-agent-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/china-stock-analysis

Reload or restart Cursor to activate china-stock-analysis. Access the skill through slash commands (e.g., /china-stock-analysis) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.632 reviews
  • Luis Menon· Dec 20, 2024

    china-stock-analysis fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • Luis Yang· Dec 16, 2024

    china-stock-analysis has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Chaitanya Patil· Dec 12, 2024

    Useful defaults in china-stock-analysis — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Li Diallo· Nov 11, 2024

    Registry listing for china-stock-analysis matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Piyush G· Nov 3, 2024

    china-stock-analysis is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Shikha Mishra· Oct 22, 2024

    Keeps context tight: china-stock-analysis is the kind of skill you can hand to a new teammate without a long onboarding doc.

  • Olivia Verma· Oct 2, 2024

    china-stock-analysis reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Liam Malhotra· Sep 21, 2024

    I recommend china-stock-analysis for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Evelyn Johnson· Sep 17, 2024

    china-stock-analysis has been reliable in day-to-day use. Documentation quality is above average for community skills.

  • Rahul Santra· Sep 13, 2024

    china-stock-analysis has been reliable in day-to-day use. Documentation quality is above average for community skills.

showing 1-10 of 32

1 / 4