Introduction¶
When conducting technical analysis on A-shares, a common practice is to screenshot K-line charts and feed them to large language models, or to hand-write long prompts such as “Analyze using Chan Theory” (缠论). However, models often lack a unified process: defining the timeframe, delineating the pivot (zhongshu), verifying divergence (beichi) and buy/sell points against market data—outputs are often prone to inconsistencies.
Below is an introduction to the community Skill on SkillHub: “A-Share Market Snake Flow (Chan Zhong Shuo Chan)”. It encodes the analysis steps, checklists, and output modes of the Snake Flow (the core ideology of Chan Theory) into SKILL.md. It mandates fetching market data via tools like westock-data before performing morphological and dynamic analysis. It is suitable for long-term mounting in environments that support Agent Skills, such as Cursor and Claude Code.
What is this¶
“A-Share Market Snake Flow (Chan Zhong Shuo Chan)” is a professional Agent Skill with coordinates @user_21c20569/snake-trading-analysis. The current version is 1.0.2, the source is community, and the publisher is user_21c20569. The SkillHub category is professional; the page is marked requires_api_key=false (this Skill itself does not require an API Key). SkillHub Statistics (based on crawled data): Rating 100000, Downloads 718.
One-sentence Positioning: It encapsulates the knowledge and practical guidance of the Snake Flow system, supporting trend decomposition, pivot analysis, divergence judgment, and buy/sell point identification. It can be combined with westock-data to fetch A-share, Hong Kong stock, and US stock market quotes and K-line data for analysis. The package also includes supplementary documents on morphology, kinetics, and buy/sell points under references/, available for the Agent to read as needed.
Core Functions¶
The following content is sourced from the Skill’s SKILL.md and installation package structure, containing no unverified capabilities.
Main Analysis Flow
- Fetch Market Data & K-lines: Prioritize
westock-data. - Determine Operation Level: e.g., 30-minute timeframe.
- Morphology: Fractal (Fen Xing) → Stroke (Bi) → Line Segment (Xian Duan) → Pivot (Zhong Shu) → Trend Type (Zou Shi Lei Xing).
- Sentiment: Checklist items including market phase, “dealer stock” (Zhuang Gu) risk, and concept hype stages.
- Kinematics: Trend divergence, consolidation divergence, etc.
- Buy/Sell Points: Three types of buy/sell points and the “interval套” (Interval Set/Nested Intervals) logic.
- Operation Plan: Discipline explanations centered on pivots or level consistency.
Principle: Emphasizes “No prediction, only classification”: Lists potential evolutions and boundary conditions, allowing the trend to select the path.
Three Output Modes
| User Intent (Example Triggers) | Mode |
|---|---|
| Summary, tell me the conclusion directly, concise version | Mode 1: Summary Conclusion (Default Tendency) |
| Predict daily rise/fall, bold analysis, next week | Mode 2: Bold Prediction (Document requires marking predictions as non-facts) |
| Complete analysis, follow the process | Mode 3: Complete Six-Step Output |
Pre-requisites & Risk Control
- Five Checks before Technical Analysis: Market environment, volume-price structure, quality of limit-up boards, secondary interpretation of hotspots, sector linkage, and institutional behavior.
- The document lists seven common misjudgment traps, Type A/B/C stock classifications, a 12-dimension framework, etc. It also notes specific scenarios where it is not applicable (e.g., pure blue-chip long-term holding, low daily turnover stocks, applying A-share gaming frameworks to HK/US stocks).
Data Dependencies
- Primary Data Channel:
westock-data(Search codes,quote,kline,asfund,technical, etc.). - Optional Enhancement: When Dragon-Tiger List (Longhu Bang), Northbound minute-level data, or Tonghuashun hotspots are needed, the document suggests loading the
a-stock-dataSkill (path and Python environment depend on that Skill’s documentation).
Installation & Activation¶
The official page installation prompt is: Have the Agent install @user_21c20569/snake-trading-analysis following the SkillHub Installation Instructions.
If the skillhub CLI is already installed locally, verify the version first, then install it to the current Agent’s skills directory. Note: You must use --dir; otherwise, defaulting to ./skills/ may not be recognized:
command -v skillhub && skillhub --version
skillhub install snake-trading-analysis --namespace user_21c20569 --dir <Your Agent Skills Directory>
Common skills directories (from official installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Alternatively, send the natural language installation command to the Agent, for example:
Please install @user_21c20569/snake-trading-analysis based on https://skillhub.cn/install/skillhub.md.
Restart or refresh the Agent after installation to load the Skill. Before performing live trading analysis, you must separately install and configure westock-data (and optional a-stock-data); otherwise, the command examples in the documentation cannot be executed.
Typical Usage¶
Example 1: Complete 30-Minute Level Process
User: “Help me analyze the 30-minute trend of Kweichow Moutai using Snake Flow.”
The Agent follows the Skill’s suggested order:
westock-data search 贵州茅台
westock-data kline sh600519 --period m30 --limit 100
Then completes the output regarding level confirmation, morphology, kinematics, buy/sell points, and operation plan.
Example 2: Judging the Third Type of Buy Point
User: “Is the current position of sh600519 a Snake Flow Third Type Buy Point?”
westock-data quote sh600519
westock-data kline sh600519 --period m30 --limit 60
Compare against the pivot, check if the sub-level departure and retest do not break ZG (Pivot Upper Bound), and provide a conclusion combined with the higher-level position.
Example 3: Technical Analysis + Capital Flow
westock-data search 宁德时代
westock-data kline sz300750 --period m30 --limit 100
westock-data asfund sz300750 --limit 20
Combined with morphology and indicators like MACD, incorporate major capital (main force) changes into the discussion of divergence and buy/sell points.
Output Modes
- For short conclusions, use triggers like “Summary”, “Tell me the conclusion directly” to use Mode 1.
- For step-by-step breakdowns, use triggers like “Complete analysis”, “Follow the process” to use Mode 3.
Stock Code Format (from Skill Docs): Shanghai sh + 6 digits, Shenzhen sz + 6 digits, Beijing bj + 6 digits, Hong Kong hk + 5 digits, US us + ticker. For names, use westock-data search to resolve the code first.
Applicable Scenarios & Notes¶
Best Fit For
- Users already using Agents for A-share (and some HK/US market) research who want to standardize analysis terminology and Chan Theory/Snake Flow steps.
- Users willing to cooperate with
westock-datafor data fetching and accept the A-share context checklist (sentiment, volume-price, sectors) defined in the documentation.
Limitations & Notes
- The document explicitly states that the gaming framework is not suitable for many scenarios (e.g., certain blue-chip long-term holds, stocks with extremely poor liquidity). For Hong Kong and US stocks, where mechanisms like price limits and Dragon-Tiger Lists differ from A-shares, analysis dimensions should be applied with caution/discounted.
- Mode 2 contains rise/fall predictions; the Skill requires marking “predictions are not facts”. No output can replace compliant investment advisory opinions. Live trading decisions require assuming risk independently.
- The version in the Skill’s
_meta.jsonand on SkillHub is 1.0.2; theversionfield in the package’sSKILL.mdheader is 1.0.0. The store and_meta.jsonshould be treated as authoritative. - The Python path in the
a-stock-dataexamples is the author’s environment path; adjust according to the actual installation location when migrating to other machines.
Conclusion¶
“A-Share Market Snake Flow (Chan Zhong Shuo Chan)” consolidates Snake Flow analysis processes, output templates, pre-checks, and data commands into a single Agent Skill, reducing the cost of writing repetitive prompts. If you want to conduct reproducible Chan Theory-style trend discussions in your IDE, you can install it from SkillHub and enable it provided you have a market data source.
- SkillHub Page: https://www.skillhub.cn/skills/user_21c20569/snake-trading-analysis
- API Coordinate Page: https://api.skillhub.cn/user_21c20569/snake-trading-analysis