Preface¶
When conducting market quote queries, sector rotation analysis, or portfolio risk checkups within a conversation, the common practice is to write custom scripts to pull data or copy web results to the model. Without consistent data definitions and proper validation, conclusions can easily drift. Here, we introduce a community Skill on SkillHub, @user_9d5a2a39/aistockresearcher: it integrates multi-market quotes, quantitative statistics, AI interpretation templates, and optional MCP bridging into a single Agent capability. Its core logic emphasizes pure Python standard libraries, free data sources, and a verifiable data pipeline.
What is this¶
Positioning: A global intelligent investment research tool (documented version within the Skill package is v11.0), targeting quantitative analysis for all asset classes including stocks, funds, futures, and indices, covering 12 global markets.
Coordinates & Source: Published as a community Skill on SkillHub, located at @user_9d5a2a39/aistockresearcher, categorized under data-analysis, and tagged with requires_api_key=false (the Skill itself does not mandate an API Key). Skill package version 1.0.45; page statistics show a rating of 100,000 and 118,464 downloads (subject to SkillHub’s display).
Maintainer: A community Skill on SkillHub published by user_9d5a2a39; the official entry point can be found via the link at the end of the article.
Problem Solved: Completing the workflow of “pulling real quotes → multi-source validation → quantitative/ regime / prediction analysis → structured interpretation” within Agent conversations. It optionally supports connecting to external MCPs (such as Jinrong Liuri) and knowledge base note systems (v9.8 adapter capabilities, with trigger words covering Obsidian, Yuque, etc.).
Core Functions¶
The following capabilities are derived from the SkillHub page and captured descriptions, summarized according to the version timeline.
v11.0: Multi-source Data & AI Templates¶
Data Layer (data_multi_source.py) adds four types of adapters, all marked as free and requiring no Key:
SinaFinanceAdapter: Sina Finance, A-share/HK stock/US stock real-time quotes and K-lines.XueqiuAdapter: Xueqiu, A-share quotes and sentiment.FuturesExchangeAdapter: SHFE/DCE/CZCE, futures snapshots, historical K-lines, night trading sessions.TonghuashunAdapter: Tonghuashun (iFinD), A-share quotes and money flow.ExternalMCPAdapter: External MCP placeholder, bridged via stdio.
Data categories extended to FUTURES_HISTORY, MONEY_FLOW, SENTIMENT; supports ETag/If-Modified-Since caching and timeliness classification (realtime / delayed_15m / closing / estimated / stale); cross_validate performs multi-source cross-validation (median fusion of fields and deviation tolerance); detect_anomaly adopts a two-stage anomaly detection using 3σ + IQR; query_with_validation provides a one-stop outlet for querying, validation, and confidence scoring.
AI Interpretation (ai_analysis_engine.py) expanded from 7 to 11 templates: added futures, money flow, index forecasting, and portfolio diagnosis; strengthened templates for market regime, macro outlook, risk reports, and sector rotation (the page lists sub-capabilities such as open interest/basis/trading activity, northbound and ETF flows, PE percentiles, and liquidity risk).
Prediction (prediction_v1100.py): predict_multi_horizon supports multi-horizons of 1d/5d/1M/3M/6M; generic for stocks, funds, futures, and indices; calibrate_probability performs five-bucket calibration for historical probabilities.
MCP (mcp_server.py) tools increased from 14 to 20, including ai_analyze_futures, ai_analyze_money_flow, ai_analyze_index_forecast, ai_analyze_portfolio, get_futures_quote (including night sessions), predict_multi_horizon, etc.
External MCP Bridge (mcp_external_bridge.py): ExternalMCPSession (subprocess + JSON-RPC), ExternalMCPBridge singleton; configures external processes via environment variables, see the installation section below.
The page states v11.0 has zero new dependencies; on the testing side, there are 5 new test files and approximately 110 new test cases, totaling 845 tests.
Accumulated Historical Capabilities (Page Summary)¶
- v10.0: AI interpretation and multi-source MCP bridging
- v9.8: Knowledge base 12 adapters (IMA, Dify, Obsidian, RAGFlow, etc., see trigger words)
- v9.5: Expert Roundtable (consensus from six master strategies; trigger words include Soros, Fisher, Dalio, Howard Marks, Magic Formula, Livermore, Reflexivity, etc.)
Earlier versions within the Skill also include sector RPS, market regime, pattern matching prediction, advanced_stats, and other capabilities; these can be invoked via trigger words on the conversation side, such as relative strength, market regime, drawdown profiling, Kelly position sizing, JB test, pattern matching, NAV prediction, etc. The trigger word list also includes Voice Interaction for colloquial query and analysis requests (part of the Skill’s capability set alongside the zero-dependency core, specific entry points are scheduled by the Agent according to SKILL instructions).
Data Sources¶
Sources listed on the page: Tencent, Eastmoney, akshare (optional), Sina, Xueqiu, Tonghuashun, yfinance, all marked as free and requiring no Key. When multiple sources are available, v11.0’s validation and anomaly detection are used to reduce the risk of single-source bias.
Installation and Activation¶
The installation method provided by SkillHub involves instructing the AI to pull the coordinates based on a unified installation instruction, rather than git clone the repository.
In clients supporting SkillHub such as Cursor, Codex CLI, or Claude Code, you can give the Agent the following prompt to execute (original text from the page):
Please install `@user_9d5a2a39/aistockresearcher` according to https://skillhub.cn/install/skillhub.md.
Once installed, the Skill will appear in the Agent’s Skills list; requires_api_key=false indicates that a Key is not mandatory for the Skill itself (if external LLMs or third-party MCPs are used, please configure them according to their respective product requirements).
Optional: External MCP Bridging (e.g., Jinrong Liuri), set in the runtime environment:
export STOCK_RESEARCHER_EXTERNAL_MCP_COMMAND="Your external MCP launch command"
export STOCK_RESEARCHER_EXTERNAL_MCP_NAME="Display Name"
# There are also environment variables in the format of STOCK_RESEARCHER_EXTERNAL_MCP_ENV_* for the subprocess environment
If not configured, ExternalMCPAdapter acts as placeholder logic and does not affect local multi-source data and built-in MCP tools.
Typical Usage¶
The Skill works via natural language and trigger words; the following usages correspond to page capabilities and can be described directly in the conversation.
1. Market Quotes & Multi-source Validation
Specify the target and market (A-shares/HK stocks/US stocks/futures, etc.), and request the use of multi-source data or query_with_validation. The Agent will run through the adapter chain and cross-validation, returning fields related to confidence.
2. AI Deep Interpretation
Select templates based on the scenario, for example:
- “Use the money flow template to view northbound flows and ETF subscriptions/redemptions”
- “Futures analysis: open interest, basis, trading activity, roll yield”
- “Index forecast: PE percentile, RS score, multi-horizon direction”
- “Portfolio diagnosis: performance attribution, rebalancing, style drift”
These correspond to MCP side tool names such as ai_analyze_money_flow, ai_analyze_futures (exposed by the Skill in clients with MCP enabled).
3. Multi-horizon Prediction
Request predict_multi_horizon, covering horizons of 1d, 5d, 1M, 3M, 6M; asset types can be stocks, funds, futures, or indices, and probability calibration (calibrate_probability) can be requested in the conversation.
4. Expert Roundtable & Quantitative Checkup
When trigger words include “Experts, Roundtable, Master Consensus,” you can request v9.5 roundtable consensus; “Advanced Stats, Drawdown Profiling, Rolling Sharpe, Tracking Error, Information Ratio” correspond to advanced_stats capabilities. Specific parameters are defined by the scripts within the SKILL; simply clarify the target and time range in the conversation.
5. Voice Interaction
In clients supporting voice input, describe the target and analysis type colloquially (e.g., “Voice query,” “Voice prediction” type intents); the Skill trigger words include “Voice Interaction,” and the Agent will parse this and follow the same quantitative pipeline.
6. Knowledge Base & Archiving
When trigger words include Obsidian, Yuque, Notion, Feishu, etc., you can request to sync or read back analysis results (v9.8 knowledge base adapters).
Scenarios & Notes¶
Who is it for
- Developers or quantitative enthusiasts who need to do investment research drafts, risk, and regime judgment in IDE/CLI but do not want to write data scripts from scratch every time.
- Teams hoping for multi-source free data with validation and anomaly detection, followed by structured interpretation via LLM.
- Users already using the MCP ecosystem who want to connect futures, money flow, portfolio, and other capabilities to a unified tool surface.
Limitations & Notes
- The page data comes from public market sources. Timeliness classification includes states like
delayed_15m,estimated, andstale. For real-time trading decisions, you must verify exchange timestamps and compliance requirements yourself. - Prediction and AI interpretation outputs are research aids, not investment advice; probability calibration and regime judgment still depend on the length of historical samples.
- External MCP relies on local machine subprocesses and JSON-RPC; commands and environment variables need security auditing by yourself.
- The Skill package version (1.0.45) and the embedded tool documentation version (v11.0) are two different numbering systems; refer to SkillHub update notes for the latest.
Conclusion¶
@user_9d5a2a39/aistockresearcher integrates multi-market data, quantitative statistics, multi-horizon prediction, AI templates, and optional MCP bridging into a conversational investment research Skill: its zero-dependency core, multi-source validation, and 845 tests are hard metrics for its utility; trigger words for v9.5 expert roundtables, voice, and knowledge base cover the complete chain from consensus opinions to archiving and read-back.
- SkillHub Page: https://www.skillhub.cn/skills/user_9d5a2a39/aistockresearcher
- API/Coordinate Entry: https://api.skillhub.cn/user_9d5a2a39/aistockresearcher
- Installation Guide: https://skillhub.cn/install/skillhub.md