Introduction¶
In financial investment research, common practice often involves manually pulling market data, calculating indicators in Excel, and then opening separate documents to write conclusions. These steps are fragmented, making it difficult to maintain a unified format. If you want an Agent to run through the complete workflow of “Data Retrieval — Indicator Calculation — Chart Generation — Report Writing” according to a fixed process, you need a set of reusable skill definitions rather than rewriting prompts from scratch every time.
Below is an introduction to the “Financial Investment Research Skill” on SkillHub (Coordinate: @user_5e4a0654/baiji1). It embeds the “Zhiyan Assistant” investment research pipeline into a universal SKILL.md and comes with an executable Python project. It is suitable for installation in environments that support Skills (such as Cursor), allowing the Agent to invoke functions according to the documentation or run the CLI directly within the skill directory.
What is this?¶
The “Financial Investment Research Skill” is categorized under professional on SkillHub, originates from the community (community), is published by user_5e4a0654, and the current list version is 1.0.0. The page is marked with requires_api_key=false, meaning configuring a third-party API Key is not mandatory for installing the skill itself. The documentation within the package defines the Skill as “Zhiyan Assistant · Financial Investment Research Skill.” The authors are listed as the Tencent Cloud AI Hackathon Team, and the Skill ID is financial-research-report (subject to the SKILL.md inside the skill package).
Core Problem: After a user inputs a US, Hong Kong, or A-share stock code, the skill automatically completes data retrieval, technical indicator and valuation/risk calculations, optional LLM analysis, chart generation, and outputs a structured Word investment research report.
Official Entries:
- SkillHub Page: https://www.skillhub.cn/skills/user_5e4a0654/baiji1
- API Coordinate: https://api.skillhub.cn/user_5e4a0654/baiji1
As of the data retrieval time, SkillHub shows a rating of approximately 100000 and 1445 downloads (installation count is 0, subject to page statistics).
Core Features¶
The following capabilities are derived from the descriptions in SKILL.md / README.md within the skill package, organized according to the workflow sequence.
Data and Market Identification¶
- Automatically identifies the market (US / HK / A) based on the ticker symbol, supporting formats such as
AAPL,00700.HK,000001.SZ,600519.SS, and 6-digit A-share numbers. - Market Data & Fundamentals: US/HK stocks use yfinance, A-shares use akshare; includes historical market data, financial statement-related data, news, etc. (specific fields are subject to runtime API returns).
Quantitative Analysis¶
- Technicals: MA, MACD, RSI, Bollinger Bands, KDJ, Volume, etc., providing a summary of long/short signals.
- Valuation: PE, PB, ROE, ROA, PEG, Gross Margin, Net Profit Margin, etc.
- Risk: Annualized Volatility, Sharpe Ratio, Max Drawdown, VaR, Calmar Ratio, Win Rate, etc.
- Comprehensive Scoring: Weighted scoring across five dimensions: Trend, Momentum, Valuation, Quality, and Risk Control (documentation specifies 25% / 20% / 20% / 20% / 15%), scored 0–100 with mapped grades.
Output and Optional AI¶
- Charts: Multi-panel technical analysis charts, financial trend charts, scoring radar charts (PNG, default location
charts/). - Reports:
Investment_Research_Report_{Ticker}_{Date}.docx, described in the documentation as a 9-chapter structure plus a disclaimer. - AI Analysis (Optional): After configuring environment variables like
DEEPSEEK_API_KEYorOPENAI_API_KEY, it can invoke LLMs to generate Markdown-style in-depth analysis; if the API fails, the documentation states it will downgrade to rule-based engine analysis. - JSON Export (Optional): The CLI supports
--save-jsonto save structured results.
Installation and Activation¶
1. Install SkillHub CLI (if not already installed)¶
First, check if the CLI is available:
command -v skillhub && skillhub --version
If not installed, you can follow the official SkillHub instructions to execute (full installation example):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Instructions: https://skillhub.cn/install/skillhub.md
2. Install the skill into the current Agent’s skills directory¶
During installation, you must use --dir to point to the skills directory recognized by the current Agent. Otherwise, it might install to the default ./skills/ and fail to be loaded. Common path examples:
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Installation command (consistent with the prompt in SkillHub search results):
skillhub install baiji1 --namespace user_5e4a0654 --dir ~/.cursor/skills
You can also let the Agent install it via the official prompt:
Please install `@user_5e4a0654/baiji1` according to https://skillhub.cn/install/skillhub.md.
After installation, the skill is typically located at ~/.cursor/skills/@user_5e4a0654/baiji1/ (path varies with --dir).
3. Install Python Dependencies¶
The skill requires Python 3.8+. Install dependencies in the skill directory:
cd ~/.cursor/skills/@user_5e4a0654/baiji1
pip install -r requirements.txt
The documentation allows a minimal set for testing US stocks only without analyzing A-shares: yfinance, pandas, numpy, matplotlib, python-docx. Analyzing A-shares requires akshare.
4. Optional Environment Variables (LLM)¶
The documentation states that quantitative and reporting capabilities can still be used without configuring an API Key. To enable AI chapters, you can set:
| Variable | Required | Default Value | Description |
|---|---|---|---|
DEEPSEEK_API_KEY |
No | — | DeepSeek Key |
DEEPSEEK_BASE_URL |
No | https://api.deepseek.com |
API URL |
LLM_MODEL |
No | deepseek-chat |
Model Name |
OPENAI_API_KEY |
No | — | OpenAI Alternative |
OPENAI_BASE_URL |
No | https://api.openai.com/v1 |
OpenAI URL |
Typical Usage¶
Command Line Analysis¶
Execute in the skill directory and pass in the stock code to trigger the full workflow (consistent with manual triggering in SKILL.md):
python main.py AAPL
python main.py 00700.HK
python main.py 000001.SZ
Parameters such as saving JSON or skipping LLM are subject to the README.md in the package, for example:
python main.py AAPL --save-json
Web Interface¶
Requires Streamlit dependencies to be installed:
streamlit run web_app.py
Enter the code in the browser and trigger the analysis (default local http://localhost:8501).
Usage within Agent Sessions¶
After installing to the skills directory, you can reference this Skill in the conversation, allowing the model to organize steps (Market ID → fetch_all_data → Technical/Valuation/Risk → Scoring → Optional llm_deep_analysis → Charts & generate_enhanced_report) based on the function list and workflow in SKILL.md. When file output is required, clearly specify executing the above CLI in the skill directory and explain the .docx and charts/ images in the output directory.
Applicable Scenarios and Notes¶
Who is it for?
- Those who need to quickly generate investment research weekly report drafts with charts and tables, and want the process to be scriptable and repeatable.
- Those already using Skills in environments like Cursor / Claude Code who want to solidify investment research SOPs into
SKILL.md. - Covers US, HK, and A-share codes, accepting the latency and interface change risks of public data sources (yfinance / akshare).
Limitations and Notes
- The documentation states that yfinance free data may have a delay of approximately 15–20 minutes; a large number of requests in a short time may result in rate limiting.
- A-shares rely on akshare; interfaces may change with data sources, requiring package version upgrades.
- On Linux, Chinese fonts may be missing in charts; CJK font packages need to be installed manually.
- LLM analysis consumes approximately thousands of tokens; if the API fails, it downgrades to rule-based analysis, and the “AI In-depth Analysis” chapter in the report may become shorter or missing.
- The documentation version inside the skill package is written as “v2.0 Competition Enhanced Version.” When coexisting with the SkillHub list version 1.0.0, verify behavior based on the installed
SKILL.md/_meta.jsonin the package. - Disclaimer: Generated content is for learning and research only and does not constitute investment advice.
Conclusion¶
The “Financial Investment Research Skill” encapsulates the investment research chain—from code input to Word report output—into an installable skill, retaining both CLI and Streamlit trigger methods. The quantitative part does not depend on an API Key, while in-depth interpretation can connect to DeepSeek or OpenAI as needed. To try it locally, install @user_5e4a0654/baiji1 from SkillHub and configure the Python environment and dependencies as described above.
Official Address: https://www.skillhub.cn/skills/user_5e4a0654/baiji1