market-analysis

Generates A-share market snapshot reports with index, breadth, sector, and capital flow data as Markdown and PDF.

1.5k|337|Updated Apr 15, 2026
One-click install
npx skills add https://github.com/qusong0627/QuantMind --skill market-analysis-qusong0627
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: market-analysis
Source: https://github.com/qusong0627/QuantMind/tree/main/skills/market-analysis
Command: npx skills add https://github.com/qusong0627/QuantMind --skill market-analysis-qusong0627

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, and includes scripts (resource) components.

What problem does it solve? It turns raw QuantDB market data (indices, market breadth, sector heatmaps, capital flows) into a structured daily market analysis report without manual data wrangling, delivering both Markdown and research-style PDF outputs. ## Core Features & Use Cases - Full-market data aggregation: Pulls core indices, advance/decline breadth, limit-up/down counts, Shenwan industry and concept heatmaps, 1/3/5-day sector performance, and 1/5/10-day capital flows via the backend quantdb_feed module. - AI-written interpretation: The agent writes market overview, structural opportunities, risk warnings, and next-day watch items strictly from the generated facts JSON, with no fabricated numbers. - Report delivery pipeline: Converts Markdown to a research-styled PDF via md_to_pdf_report.py and files both formats into the stock reports directory visible in the frontend. - Use Case: Ask "今天市场怎么样" and receive a same-day market snapshot report covering index structure, sentiment temperature, strongest sectors, and capital flow direction. ## Quick Start Ask the assistant to run a market analysis report for the latest trading day and deliver the Markdown and PDF to the stock reports page.

Frequently Asked Questions about market-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a daily A-share market analysis report?

Run the market_analysis.py script inside the quantmind container to produce a facts JSON and report skeleton for the latest trading day. The AI then writes the interpretation section from the facts, and the Markdown is converted to PDF via md_to_pdf_report.py.

What data sources does this market report use?

It uses QuantDB tables through the backend quantdb_feed module: index_daily for indices, technical_indicators for breadth and limit-up/down counts, sector_members for industry and concept classification, and l2_factors for capital flow data.

Can I generate a market report for a historical date?

No. The skill only supports the latest trading day, matching the market analysis page behavior. Historical date replay is not supported by the data-fetch script.

Why is the capital flow section empty in my report?

Capital flow depends on l2_factors L2 data, which updates daily and can lag the market data by one day. When L2 data is not yet updated, that section is left empty and the report notes this rather than filling zeros.

What is the difference between market-analysis and daily-review?

market-analysis produces a market snapshot covering price structure, sector strength, and capital flows at any time. daily-review is a post-close deep review that additionally includes news sentiment, model inference signals, and next-day multi-dimensional assessment.