Preface¶
When discussing stocks in environments like Cursor or Claude Code, a common practice is to hand-write long prompts or ask the model to “analyze using Warren Buffett’s thinking” every time. This entails high repetition costs, and market data and indicators are easily hallucinated by the model. The community Skill @user_7f864702/investmentguru on SkillHub (display name: “20 Investment Masters Help You Analyze Stocks”) encapsulates Chinese and foreign investment frameworks, market data fetching, and report structures into SKILL.md and a supporting Python package. Agents can trigger it according to rules and call local analysis logic. The following section introduces what it is, what it can do, and how to install and use it.
What is this¶
One-liner Positioning: An intelligent stock analysis Skill based on the frameworks of 7 Chinese and 13 international investors, featuring data fetching, multi-master comparison, and conversational triggering.
Source & Maintenance: Sourced from the SkillHub community (source: community), published by account user_7f864702, with the page displaying the author as “Mai Ge’s Legend”. Current store version v1.0.2 (2026 version notes: Fixed verification risk issues, code optimization). Categorized as professional, subcategory Financial Analysis; the tag requires_api_key=false indicates that the Skill metadata does not require an additional API Key.
Store Data (SkillHub page and crawled materials): Rating 100000, approximately 3344 downloads, 14 installations; both Cohen Lab and Sanbu Security Detection rate it as “Safe, no risks”.
Official Links:
- API Coordinates:
https://api.skillhub.cn/user_7f864702/investmentguru - Details Page:
https://www.skillhub.cn/skills/user_7f864702/investmentguru
Core Features¶
The following content is derived from SKILL.md, manifest.json, and README.md within the Skill package, complementing the blank overviewMd in the store.
Investment Framework Coverage¶
- Chinese Masters (7): Duan Yongping, Zhang Lei, Li Lu, Qiu Guolu, Wang Guobin, Lin Yuan, Dan Bin; corresponding to analysis modules such as Circle of Competence, Moat, and “Three Goods” principles (implemented independently under
investment_gurus/). - International Masters (13): Warren Buffett, Peter Lynch, Cathie Wood, Benjamin Graham, Charlie Munger, Philip Fisher, Michael Burry, Bill Ackman, George Soros, Ray Dalio, Aswath Damodaran, Bill Miller, John Templeton; carried by logic such as
international_gurus.py.
Data & Reports¶
- Stock Data Fetching: Real-time quotes (price/volume, PE, market cap, etc.), K-line charts, Moving Averages MA5/10/20/60, 1-day/5-day/1-month/3-month trends, sectors/industries, and sentiment indicators.
- Intelligent Analysis: Identifies target stocks; matches master methods based on industry; outputs structured reports (including sections for quotes, trends, moving averages, sectors, master views, comprehensive suggestions, etc.); supports multi-master comparison.
- Agent Integration: Triggered when user messages contain stock names, six-digit codes, or keywords like “buy/sell/analyze/valuation”; supports specifying a master (e.g., “look at stock X using Lin Yuan’s method”) and comparing multiple targets.
Data Sources (Stated in Skill docs): Tencent Finance API (web.ifzq.gtimg.cn) is primary; Yahoo Finance (yfinance) is backup. Documentation claims support for A-shares, Hong Kong stocks, and US stocks (listing examples like Moutai, Tencent, Apple, etc.).
Analysis Dimensions: Valuation (PE/PB/PS, DCF, etc.), Fundamentals (ROE, gross margin, growth, etc.), Technicals (Moving Averages, RSI, MACD, etc.), Sentiment (News sentiment, institutional ratings, fund flow, VIX, etc., subject to Skill implementation).
Installation & Activation¶
The Skill supports SkillHub installation, Zip package, and in-package pip installation. When installing to an Agent, it must be placed in the corresponding client’s skills directory; otherwise, the Agent may fail to load it.
Method 1: Via SkillHub CLI (Recommended)¶
First, check or install the CLI according to the official installation instructions:
command -v skillhub && skillhub --version
If not installed, you can execute (full installation includes default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
When installing this Skill, use --dir to point to the current Agent’s skills directory, for example:
skillhub install user_7f864702/investmentguru --dir ~/.cursor/skills/
Common paths (excerpted from https://skillhub.cn/install/skillhub.md):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
You can also ask the AI in conversation to install it based on the same documentation: “Please install @user_7f864702/investmentguru based on https://skillhub.cn/install/skillhub.md.”
Method 2: Download Zip Package¶
The SkillHub details page provides the v1.0.2 Zip:
https://api.skillhub.cn/api/v1/download?slug=@user_7f864702/investmentguru
After unzipping, place the directory into the aforementioned skills path, or enter the unzipped directory to install Python dependencies.
Method 3: Python Package (Analysis Scripts & CLI)¶
Execute in the Skill root directory:
pip install -e .
Dependencies are listed in requirements.txt / manifest.json (including yfinance, pandas, numpy, etc.; CLI optionally uses click, rich, typer).
Typical Usage¶
After installation and pip install -e ., you can reproduce the following calls according to the Skill documentation.
Conversational (Agent scenarios):
from investment_gurus import handle_user_message
response = handle_user_message("Moutai is good to buy now?")
Direct Analysis or Specific Master:
from investment_gurus import smart_analyze
report = smart_analyze("Kweichow Moutai")
report = smart_analyze("Pien Tze Huang", guru="linyuan")
Multi-Master Comparison:
from investment_gurus import compare_all_methods
report = compare_all_methods("CATL")
Command Line:
invest-guru analyze -s Kweichow Moutai
invest-guru compare -s BYD
In an Agent where this Skill is loaded, you can also directly ask questions in natural language (containing stock names, codes, or keywords like “analyze/valuation/should I buy”), and the agent_handler will process them according to the trigger conditions in SKILL.md.
Use Cases & Notes¶
Who is it for
- Researchers needing multi-framework comparison drafts within Agent workflows, rather than single casual Q&A sessions.
- Users already utilizing SkillHub / Cursor / Claude Code who wish to manage financial capabilities using a standard Skill directory.
- Those who accept local Python environments and market data API dependencies, and are willing to verify data and conclusions independently.
Limitations & Notes
- Not Investment Advice: The output is analysis text generated by models and rules; the Skill documentation does not promise its suitability for live trading; decisions must be verified by yourself and risks assumed.
- Data & Network: Quotes depend on Tencent Finance and yfinance; network restrictions, interface changes, or failures in identifying full stock names/codes will lead to incomplete results.
- Version Fields: The store version is 1.0.2, while the package’s
manifest.jsonstatesversion: 2.0.0; rely on the actual installed Zip/CLI content. - Empty Store Introduction: The
summary/overviewMdon the SkillHub page currently has no text; capability details are subject to theSKILL.mdinside the package. - README Mentions: The reference to being “based on the ai-hedge-fund project research” is an author statement and has no additional endorsement relationship with SkillHub metadata.
Conclusion¶
@user_7f864702/investmentguru packages the analysis frameworks of over 20 investors, market data fetching, and Agent trigger rules into an installable Skill, suitable for structured stock discussion drafts within coding assistant environments. Please refer to SkillHub for installation and updates:
https://www.skillhub.cn/skills/user_7f864702/investmentguruhttps://api.skillhub.cn/user_7f864702/investmentguru