Introduction¶
When conducting A-share short-term trading or quantitative analysis conversations in environments like Cursor and Claude Code, a common issue is that while the models understand the concepts, they lack a unified path for “querying data—plotting charts—comparing results.” Piecing together scripts yourself requires handling code parsing, minute-cycle syntax, and differences between index and individual stock interfaces; managing multiple stocks also requires aligning market data fields and normalizing trend data. The Tonghuashun (coordinate @user_6b3ace61/straightflush, current version 1.0.0) skill on SkillHub embeds these capabilities into SKILL.md: it utilizes thsdk under the hood, allowing the Agent to select flows such as minute K-lines, sector components, order book large orders, auction anomalies, and batch comparisons based on the scenario. Below is an introduction to what it is, what it can do, how to install it, and typical trigger methods.
What is this¶
Tonghuashun is an Agent Skill sourced from the SkillHub community, categorized as professional (sub-category “Financial Analysis”), published by user_6b3ace61. The page tags indicate requires_api_key=false, meaning the Skill itself does not require separate API Key configuration.
One-sentence positioning: An advanced stock analysis Skill based on thsdk—converging operations like market data, K-lines, sectors, order books, large orders, call auctions, intraday trends, and multi-stock comparisons into a unified set of calling conventions, and specifying when this Skill must be enabled (see the keyword list in the official description).
Official Entry Points:
- API Page:
https://api.skillhub.cn/user_6b3ace61/straightflush - SkillHub Details:
https://www.skillhub.cn/skills/user_6b3ace61/straightflush
Core Features¶
The following capabilities are consistent with the official description and the SKILL.md within the Skill package, summarized by data type.
Market Data & K-Lines¶
- Minute K-lines: Cycles include
1m/5m/15m/30m/60m/120m(the Skill emphasizes that forms like"5m"must be used, not"5min"). - Daily K-line and longer periods:
day/week/month, etc.; supports fetching by count or time range, with optional parameters like forward adjustment (qfq). - Intraday time-sharing, historical time-sharing: e.g.,
intraday_data,min_snapshot. - HK Stocks, US Stocks, Forex, Futures: Corresponding to
market_data_hk/market_data_us/market_data_forex/market_data_future, etc. (subject to the Skill scenario table).
Sectors, Indices & Components¶
- Major indices, Shenwan (SW) industries, concept sectors related lists and market data.
- Sector constituent stocks, Industry ranking requirements: completed via combinations of
ths_industry,ths_concept,market_data_block,block_constituents,market_data_index, etc.; indices must usemarket_data_indexand must not mistakenly use the individual stock market data interface.
Short-term Trading & Capital Flow¶
- Order book depth: Level 5 depth and bid/ask details (e.g.,
depth,order_book_bid/order_book_ask). - Large order flow:
big_order_flow. - Call auction anomalies: Scanning methods like
call_auction_anomaly("USHA").
Multi-stock Batch Analysis¶
- Table comparison, normalized trend charts, and correlation heatmaps for multiple stocks; the Skill provides example scripts like
examples/03_multi_stock_compare.pyto illustrate the coordination of batchsearch_symbols,market_data_cn, andklines.
News & Others¶
- News / Flash news:
news(). - iwencai NLP stock selection and conditional queries:
wencai_nlp(...)(seeexamples/05_wencai_nlp.pyfor examples). - IPO, dividend, and other auxiliary interfaces are listed in the scenario quick reference table.
The Skill also stipulates: when user intent is vague, clarify first (e.g., for “analyze a stock,” confirm whether to view real-time, minute K-lines, daily K-lines, or multi-stock comparison); when intent is clear, execute directly.
Installation & Enablement¶
Installation consists of two layers: the Skill Package (for the Agent to read rules) and the Python dependency thsdk (for actual data retrieval).
1. Install SkillHub CLI (if not already installed)¶
Check or install the CLI according to the official SkillHub installation documentation:
command -v skillhub && skillhub --version
If not installed, you can execute (refer to https://skillhub.cn/install/skillhub.md for full installation or CLI-only):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
2. Install Tonghuashun Skill¶
Search to confirm the coordinate and then install. The installation command shown in the official search results is:
skillhub search straightflush
skillhub install straightflush --namespace user_6b3ace61 --dir <path to current Agent's skills directory>
--dir must point to the skills directory recognized by your current client, otherwise defaulting to ./skills/ may not be loaded. Common paths in SkillHub documentation include:
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, you must reload or restart the Agent according to the requirements of your client to enable the new Skill.
3. Install thsdk¶
The Skill package requires the following Python dependency:
pip install --upgrade thsdk
System requirements (from Skill documentation): Python 3.9+; supports Linux (x86_64 / arm64), macOS, Windows. The connection example uses guest mode, no account configuration is needed at the Skill layer:
from thsdk import THS
with THS() as ths:
...
Typical Usage¶
After enabling the Skill, simply trigger it with natural language; the following expressions are consistent with the Must use this skill conditions in the official description, and the Agent should prioritize this Skill rather than generalized answers.
Single Stock Minute Trends
Pull the 5-minute K-lines for CATL (Ningde Times) for the last trading day and mark volume anomalies.
Corresponding capability: klines(code, interval="5m", count=...). The code needs to be obtained via search_symbols first to get the THSCODE (e.g., USZA300750).
Sectors & Components
Look at the top gaining industries in the Shenwan sector and list the market data for the constituent stocks of one of the concept sectors.
Multi-stock Comparison
Compare the forward-adjusted trends of Kweichow Moutai, Wuliangye, Luzhou Laojiao, and Shanxi Xinghuacun Fen Wine over the last 30 days; provide a table, normalized charts, and correlation.
The examples/03_multi_stock_compare.py in the Skill repository describes the steps for batch parsing, querying market data grouped by market, and plotting, serving as a reference for Agents or manual reproduction.
Order Book & Auctions
Check the Level 5 order book and large order flow for a Shanghai stock; also scan for call auction anomalies.
Cross-market or News
Check the real-time quote for a certain HK stock code; also pull a few related flash news.
Before querying any Chinese name or abbreviation, the Skill requires resolving it to a full THSCODE via search_symbols first, and adhering to the code selection rules for “single/multiple A-shares”; common index codes (like USHI000001 Shanghai Composite Index) can be used directly.
Applicable Scenarios & Notes¶
Who is it for
- Users who need to view more than 2 stocks simultaneously in conversations, perform gain comparison, or conduct correlation analysis.
- Scenarios focused on short-term trading, intraday minute K-lines, intraday trends, order books, large orders, and auction anomalies.
- Those doing quantitative research or sector rotation who need linkage between industry, concept, constituent stock, and index market data.
- Topics involving HK stocks, US stocks, forex, futures, news, and flash news where a unified thsdk interface is desired.
Limitations & Notes
- Name & Data Source: The Skill is displayed as “Tonghuashun,” but the implementation relies on community-published Skill documentation and thsdk (PyPI:
thsdk). Please verify data licensing, latency, and compliance requirements yourself before use. - Network & Environment: Data retrieval depends on the local machine’s access to the services used by thsdk; sandbox or offline environments require self-verification.
- Installation Path:
skillhub installmust include--dirand match the actual skills directory of Cursor / Claude Code / Codex. - Interface Details: Indices and individual stocks, or interfaces with different
MarketStrprefixes cannot be mixed; incorrect minute cycle string formats will cause call failures (see the K-line chapter in the Skill). - Community Skill: Sourced from the community, publisher
user_6b3ace61; download statistics displayed on the SkillHub page change over time, subject to the detail page.
Conclusion¶
The Tonghuashun Skill codifies minute K-lines, sector indices, order book large orders, auction anomalies, intraday trends, and multi-stock batch comparisons on thsdk into executable specifications for Agents, and clearly defines a set of conversation keywords where the Skill should be forced to enable. If you are already using Cursor or Claude Code for A-share related analysis, you can install the Skill and thsdk as described above, and start verifying with minute trend or multi-stock comparison queries.
Official Address: https://api.skillhub.cn/user_6b3ace61/straightflush (SkillHub Page: https://www.skillhub.cn/skills/user_6b3ace61/straightflush).