Introduction¶
When performing technical analysis on A-shares or the STAR Market, a common practice is to ask large language models to “take a look at the K-line charts” or paste images to ask for buy/sell points. Models often skip the concepts of levels, strokes, segments, and centers (hubs), providing conclusions in the language of stock commentators. This results in outputs that do not align with the structural definitions in Teach You How to Trade Stocks: 108 Lessons, nor are they useful for post-market review.
Below is an introduction to the community skill chanlun-zyc on SkillHub (Coordinate: @user_eff2814d/chanlun-zyc). It uses a standard SKILL.md to break down Chan Lun analysis into an executable hierarchical workflow and comes with a Python analyzer skeleton. It is suitable for enabling in Agents that support Skills, such as Cursor, to ensure conversational analysis proceeds through the three layers of morphology, dynamics, and operational strategy.
What is this¶
chanlun-zyc is an Agent Skill dedicated to Chan Lun (缠论) technical analysis, maintained by the community publisher user_eff2814d. On SkillHub, it is categorized as professional, with the current page version listed as v1.0.0 and the source marked as community. SkillHub metadata indicates requires_api_key=false (the skill package itself does not enforce an API Key; however, if you integrate market data sources like Tushare yourself, you must configure keys according to the data source’s requirements).
The skill package description states it was initially designed for CherryStudio integration but follows a universal Skill format. It can be installed into the skills directory of clients like Cursor and Codex, where the Agent reads SKILL.md as a persona and analysis protocol. The skill’s declared goal is to help users “read” market trends and create plans based on complete classification, rather than predicting absolute price points. The documentation includes a disclaimer at the end: for technical analysis reference only, not constituting investment advice.
Core Functions¶
The following capabilities are derived from explicit descriptions within the skill package’s SKILL.md, README.md, and SKILL_INDEX.json.
Analysis Protocol (Agent Side)¶
The skill fixes Chan Lun analysis into three levels:
- Morphology: Confirm operation level \(\rightarrow\) Process K-line containment relationships \(\rightarrow\) Fractals and Strokes \(\rightarrow\) Segments \(\rightarrow\) Trend Centers (ZD/ZG) \(\rightarrow\) Trend Types (Up/Down/Consolidation).
- Dynamics: Locate divergence segments, use force comparison or MACD to assist in judging divergence, and use interval inclusion (区间套) to refine judgments when necessary.
- Operation Strategy: Identify Type 1, 2, and 3 buy/sell points according to definitions, provide “measurement-free prediction” (不测而测) plans based on complete classification, and emphasize risk and mental discipline.
Interaction rules require: clarifying the level first, citing theoretical expressions, refusing specific stock recommendations and absolute point predictions, and maintaining objective language.
Skill Invocation Command Table¶
SKILL.md lists command tags that the Agent can trigger for reference, such as [Determine Operation Level], [Draw Fractals and Strokes], [Construct Trend Center], [Locate Divergence Segment], [Identify Type 3 Buy/Sell Points], [Formulate Complete Classification Response Plan], etc., used to align output structures in conversations.
Scripts and Dependencies (Local Side)¶
The package includes chanlun_analyzer.py (Python 3.8+). requirements.txt declares basic dependencies as pandas, numpy, matplotlib; Tushare and AKShare are listed as optional comments in the dependency file. INSTALL.md also explains that market data can be connected via environment variables like TUSHARE_API_KEY, which is an optional data source configuration and not mandatory for SkillHub installation.
The feature list in SKILL_INDEX.json is consistent with the documentation: Center determination, Type 3 buy/sell points, trend types, divergence detection, level division, trend evolution deduction, and complete classification response plans.
Installation and Activation¶
Via SkillHub CLI (Cursor, etc.)¶
The installation prompt provided on the official SkillHub page is: Follow the SkillHub Installation Documentation to install the coordinate @user_eff2814d/chanlun-zyc.
First, confirm that skillhub is available on your machine:
command -v skillhub && skillhub --version
If not installed, you can execute the full installation script according to the documentation (requires internet connection):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
When installing the skill, you must use --dir to point to the current Agent’s skills directory. The common path for Cursor is ~/.cursor/skills/:
skillhub install @user_eff2814d/chanlun-zyc --dir ~/.cursor/skills/
Codex can use ~/.codex/skills/ or .agents/skills/ under the project; Claude Code uses ~/.claude/skills/. Paths should follow Section 4 of the SkillHub Installation Documentation. After installation, refresh or restart according to the client’s requirements to load the new Skill.
CherryStudio Environment (Included in Skill Package)¶
The manual path described in INSTALL.md is to copy files to:
mkdir -p ~/.config/CherryStudio/Data/Skills/chanlun
After copying the skill package contents, execute chmod to grant read and execute permissions to the scripts, and restart CherryStudio. The install.sh inside the package defaults to the target directory ~/.config/CherryStudio/Data/Skills/chanlun and will attempt to install pandas, numpy, and matplotlib.
Python Dependencies¶
In the skill directory, you can install dependencies via requirements.txt:
pip install -r requirements.txt
Typical Usage¶
1. Analyze via Protocol in Agent Conversations¶
After enabling the Skill, ask the Agent questions related to market trends. The skill requires asking back for the Operation Level (e.g., 30-minute, Daily) if it is not explicitly defined, and then proceeding with Morphology \(\rightarrow\) Dynamics \(\rightarrow\) Operation Strategy. For example, when asking “Does a certain code constitute a buy point?”, it should first lock in the level, then discuss fractals, strokes, centers, and buy/sell point types, providing branch plans rather than single-point predictions.
2. Command Line Examples (Documentation and Scripts)¶
Examples in SKILL.md and USAGE.md are as follows (In CherryStudio scenarios, these may map to commands like /chanlun; in standalone runs, they correspond to chanlun_analyzer.py):
# View analysis flow by 30-minute level (Requires self-prepared market data)
python chanlun_analyzer.py --code 688577 --interval 30m
# Check toggles for buy points, sell points, reversals, etc. (Consistent with argparse definitions)
python chanlun_analyzer.py --code 688577 --check-buypoint
python chanlun_analyzer.py --code 688577 --check-sellpoint
python chanlun_analyzer.py --code 688577 --check-center
python chanlun_analyzer.py --code 688577 --check-reversal
If load_data has not injected a DataFrame, chanlun_analyzer.py will prompt “Please provide stock data for analysis.” Analysis results depend on external market data integration; the skill itself does not replace data sources.
USAGE.md also provides shell loop examples for batch traversing stock codes and calling --check-reversal, as well as configurations for adding monitoring scripts to crontab, suitable for users with self-built data and scheduling environments.
Applicable Scenarios and Notes¶
Who is it for
- Those already using Chan Lun for structural analysis who want Agent responses to adhere to definitions of levels, centers, divergence, and Type 3 buy/sell points, rather than vague “bullish/bearish” opinions.
- Users of environments supporting Skills like Cursor or CherryStudio who are willing to constrain model output formats via
SKILL.md. - Those capable of connecting A-share/STAR Market data themselves (documentation mentions T+1 data, optional Tushare/AKShare) and understand that technical analysis does not constitute investment advice.
Limitations and Pitfalls
- The SkillHub page version is 1.0.0, while the package’s
SKILL_INDEX.jsonwrites 1.1.0; rely on the package you actually downloaded. Feature descriptions should primarily followSKILL.md. README.mdandSKILL.mdare not completely consistent regarding some CLI parameter naming (e.g.,identify-centervs.--check-centerin the script). Refer to theargparsedefinition inchanlun_analyzer.py.INSTALL.mdcontains placeholder repository addresses and instructions likepip install chanlun-stock-monitoring, which are not verified as official release channels in SkillHub metadata; recommend relying on the SkillHub installation coordinate to avoid using unverified third-party URLs.- The README/USAGE in the package contains the publisher’s personal monitoring lists, Feishu channels, and time slot configurations, which are example operational configurations that other users need to rewrite themselves.
- SkillHub statistics (as of page capture): Rating 100000, Downloads 949; the skill tag indicates no API Key is needed, which is separate from the optional market data source configuration.
Conclusion¶
chanlun-zyc encodes the discipline of “fix the level first, then draw the structure, and finally discuss buy/sell points” from Chan Lun into an Agent Skill, accompanied by an extensible Python analyzer and dependency descriptions. It is suitable as an analysis protocol plugin in environments like Cursor, rather than a one-click stock recommendation tool.
Official SkillHub Page: https://www.skillhub.cn/skills/user_eff2814d/chanlun-zyc
API Coordinate Page: https://api.skillhub.cn/user_eff2814d/chanlun-zyc