Introduction¶
A common practice for individuals or small teams managing stock portfolios involves using spreadsheets to record cost basis and quantities, then separately opening a market data application to check prices. Profit and loss (P&L) must be calculated manually, and reporting requires reorganizing the data into a separate version. If you wish to maintain your portfolio, fetch real-time prices, calculate P&L, and generate reports directly within a conversation, you need a standardized workflow rather than relying on the model’s ad-hoc improvisation every time.
Below is an introduction to the community Skill on SkillHub, “Portfolio Analysis Pro” (@user_fad4194b/portfolio-analysis-pro). It encapsulates the above capabilities into a skill specification that can be invoked by an Agent. It is tagged with requires_api_key=false, meaning it does not depend on additional API Key configuration.
What is this?¶
“Portfolio Analysis Pro” is a portfolio analysis system designed for stock investments: it manages holdings, updates prices in real-time, analyzes profit and loss, and generates reports. Its coordinates are @user_fad4194b/portfolio-analysis-pro. The current version is 1.0.0, source is community, category is professional, and publisher is user_fad4194b (authored by James YinG according to the SkillHub page).
According to the official description, it is applicable when: a user needs to manage stock portfolios, view real-time prices, analyze P&L status, or generate investment reports.
SkillHub statistics (based on page and crawled metadata): Rating 100000, Downloads 6451, Installations 103.
- Skill page: https://www.skillhub.cn/skills/user_fad4194b/portfolio-analysis-pro
- Metadata address: https://api.skillhub.cn/user_fad4194b/portfolio-analysis-pro
Core Features¶
The following capabilities are derived from the official brief; details not mentioned in the source materials are not expanded upon.
- Portfolio Management: Maintain stock holdings information in a conversational context (underlying assets, quantities, cost, etc.; specific fields are subject to the installed
SKILL.md). - Real-time Price Updates: Perform real-time or near real-time price updates for the market data associated with holdings, facilitating the comparison with current market value.
- P&L Analysis: Calculate and present profit and loss based on holdings and prices.
- Investment Report Generation: Organize holdings and P&L into a readable report output.
This Skill adopts the universal SKILL.md format. The Agent reads the skill specification and responds to user intent according to the defined workflow.
Installation and Activation¶
There are two installation methods: provide the official prompt to the AI to execute, or use the SkillHub CLI on the local machine to install it to the current Agent’s skills directory.
Method 1: Prompt Installation (Recommended by the official page)¶
Send the entire block below to an AI that supports Skills (such as Cursor Agent) and instruct it to fetch the skill according to the SkillHub installation documentation:
请根据 https://skillhub.cn/install/skillhub.md,安装 `@user_fad4194b/portfolio-analysis-pro`。
Method 2: SkillHub CLI¶
First, check if the CLI is installed:
command -v skillhub && skillhub --version
If not installed, you can follow the SkillHub documentation to perform a complete installation (CLI + default Skill):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
When installing the skill, you must use --dir to point to the actual skills directory used by your current Agent. Otherwise, it will be installed to ./skills/ by default, and the Agent may fail to recognize it. Common paths documented are as follows:
| Environment | skills directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ 或项目下的 .agents/skills/ |
Example in Cursor (replace the directory with the path confirmed on your local machine):
skillhub install @user_fad4194b/portfolio-analysis-pro --dir ~/.cursor/skills/
You can also search before installing:
skillhub search portfolio-analysis
skillhub install @user_fad4194b/portfolio-analysis-pro --dir ~/.cursor/skills/
After installation is complete, restart or reload the Agent according to your client’s requirements to activate the new Skill. The differences among Codex CLI, Claude Code, and Cursor mainly lie in the skills directory location. The installation command itself follows the SkillHub documentation; no separate installation package or additional configuration items specifically for this Skill have been found.
Typical Usage¶
Public materials do not provide specific conversational scripts. The trigger method is based on the official “Use when…” description. After enabling the Skill, you can naturally request requirements consistent with the following goals, and the Agent will execute them according to SKILL.md:
- Manage Holdings: Specify the stocks, quantities, costs, etc. to be recorded or adjusted, and request an update to the current portfolio view.
- View Real-time Prices: For holdings or specified codes, request fetching and displaying real-time (or latest) prices.
- Analyze P&L: Based on existing holdings and prices, request the calculation of floating P&L and an account-level summary.
- Generate Investment Report: Request organizing holdings, prices, P&L, etc. into a structured report (such as a Markdown summary or sectioned explanation).
Example intent (expression can be replaced, but must be consistent with actual holdings):
我持有某某股票若干股,成本价 XX 元。请按股票持仓分析大师 Skill 更新持仓,拉一下实时价,算当前盈亏,并生成一份简要投资报告。
Specific interaction steps and data persistence methods are subject to the SKILL.md within the installation package. If related to market data sources or trading hours, it depends on the Skill implementation and the network environment at the time.
Use Cases and Notes¶
Target Audience
- Users already using Skills in environments like Cursor, Claude Code, or Codex who wish to complete portfolio maintenance and review within conversations.
- Those who need to string together “record holdings -> check prices -> calculate P&L -> generate report” into a fixed workflow to reduce manual prompt writing.
- Scenarios where users want to use a skill with
requires_api_key=falseand minimize extra key configurations (whether it still depends on external market data interfaces is subject to the Skill content).
Limitations and Notes
- Source is community; capabilities and maintenance pace are determined by the publisher user_fad4194b. Before use, you can check the version and description on the SkillHub page.
- “Real-time prices” depend on the market or data sources connected to the Skill. Outside of trading hours or during rate limiting, results may differ from exchange displays. Investment conclusions must be verified independently. This article does not constitute investment advice.
- An incorrect installation directory will cause the Agent to fail to find the Skill. Ensure you install the package to the corresponding client’s skills path as described in Section 3.
- Rating, download counts, etc., will change with SkillHub updates; rely on the official page opened before installation.
Conclusion¶
“Portfolio Analysis Pro” consolidates portfolio management, price updates, P&L analysis, and report generation into a single Skill workflow, making it suitable for daily portfolio reviews within an Agent. Remember the coordinates @user_fad4194b/portfolio-analysis-pro and the SkillHub installation documentation https://skillhub.cn/install/skillhub.md when installing. For skill details and installation tips, see https://www.skillhub.cn/skills/user_fad4194b/portfolio-analysis-pro .