← Back to Skills Marketplace
luokeer52

持仓诊断

by luokeer52 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
125
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install portfolio-diagnosis
Description
持仓诊断技能(Tushare驱动版)——专为A股投资者设计。当用户说"帮我诊断持仓"、"看看我的股票组合"、"仓位合理吗"、"持仓风险大吗"、"我的组合夏普比率多少"时触发。使用Tushare SDK获取实时行情和历史数据,进行包含波动率、Beta、夏普比率、最大回撤在内的量化风险诊断,并生成专业诊断报告,包含:...
Usage Guidance
This package is a thin 'Prana/Claw' client, not a local Tushare implementation: it forwards your messages and portfolio data to a remote service for execution. Important things to consider before installing or running: - Data leaving your environment: The scripts POST user messages to remote endpoints (agent-run/agent-result). If you share private portfolio data, it will be transmitted to that remote service. - Automatic credential fetch and on-disk storage: By default the client will call GET /api/v1/api-keys on a base URL (defaults to https://claw-uat.ebonex.io/) and, if successful, write a public_key:secret_key line into config/api_key.txt. If you do not want keys written, set PRANA_SKILL_SKIP_WRITE_API_KEY=1 or disable auto-fetch via PRANA_SKILL_NO_AUTO_API_KEY=1 and supply PRANA_SKILL_PUBLIC_KEY / PRANA_SKILL_SECRET_KEY or PRANA_SKILL_API_KEY yourself. - Default base URL is a staging/test domain: Unless you set NEXT_PUBLIC_URL to a production/trusted endpoint, the client will contact the default claw-uat.ebonex.io host. Verify the target service and privacy policy before sending sensitive data. - Manifest/documentation mismatch: The skill frontmatter claims 'Tushare驱动' but no Tushare code is included locally — processing happens remotely. Ask the publisher where execution runs and whether Tushare or other vendor services will receive your data. Recommendations: - If you trust the remote Prana/Claw service and understand the credential handling, you can proceed but set PRANA_SKILL_SKIP_WRITE_API_KEY=1 if you prefer not to persist keys. - If you do not want your portfolio data or platform credentials sent to a remote endpoint you don't control, do not install/run this skill. - Ask the publisher for the canonical remote base URL, privacy/security policy, and confirmation that the remote service actually uses Tushare and will not retain or misuse your data. Confidence note: medium — the code is straightforward and readable, so the behaviors described are clear; the primary uncertainty is whether the remote service behavior/policies are appropriate for your data and whether the default base URL is intended for production.
Capability Analysis
Type: OpenClaw Skill Name: portfolio-diagnosis Version: 1.0.2 The skill bundle acts as a thin client for a remote portfolio diagnosis service hosted at claw-uat.ebonex.io. The Python and Node.js scripts (prana_skill_client.py/js) are designed to forward user-provided portfolio data to a remote API and retrieve analysis results. Key behaviors include automatic API key retrieval from the remote server and local persistence in config/api_key.txt, which are documented and aligned with the stated purpose of a SaaS-backed financial tool. No evidence of data exfiltration of sensitive local files, malicious execution, or prompt injection was found.
Capability Assessment
Purpose & Capability
The SKILL.md description claims a 'Tushare-driven' portfolio diagnosis. However the included code is a thin client that forwards user messages to a remote Prana/Claw service (POST /api/claw/agent-run) rather than implementing Tushare logic locally. That can be legitimate (server-side implements Tushare), but the skill metadata and files do not make explicit that all data processing happens remotely — possible user expectation mismatch.
Instruction Scope
Runtime instructions / scripts will: (1) attempt to GET /api/v1/api-keys from a remote base URL (default https://claw-uat.ebonex.io/); (2) write fetched credentials into config/api_key.txt by default; (3) POST user messages to remote agent-run endpoints and poll agent-result. These actions transmit user-provided portfolio data and persist platform credentials. The SKILL.md frontmatter does not prominently declare automatic credential fetching/persistence, which is a scope & privacy concern.
Install Mechanism
No network download/install of arbitrary code is present in the package. Node dependency is minimal ('yaml') declared in package.json. There is no external archive download or obscure install URL; overall install risk is low.
Credentials
The skill manifest declared no required env vars, but the scripts read and act on multiple environment variables (NEXT_PUBLIC_URL, ENCAPSULATION_TARGET, ACCOUNT_ID/PRANA_ACCOUNT_ID, PRANA_SKILL_PUBLIC_KEY / PRANA_SKILL_SECRET_KEY / PRANA_SKILL_API_KEY, PRANA_SKILL_SKIP_WRITE_API_KEY, PRANA_SKILL_NO_AUTO_API_KEY, poll interval/attempts). The scripts will auto-fetch and persist platform public_key:secret_key credentials unless disabled — this is sensitive behavior and was not surfaced as required/provided env in the manifest.
Persistence & Privilege
The package will persist credentials to disk (config/api_key.txt) by default after an automatic GET /api/v1/api-keys. skill.yaml allows network and filesystem. The skill is not 'always: true', but automatic credential retrieval and on-disk storage increase persistent sensitive state and blast radius if the remote endpoints or default base URL are unexpected.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install portfolio-diagnosis
  3. After installation, invoke the skill by name or use /portfolio-diagnosis
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
portfolio-diagnosis 1.0.2 - 新增 Node.js 支持:添加 package.json 和 prana_skill_client.js,支持通过 Node.js 18+ 调用技能。 - 文档更新:SKILL.md 增加 Node.js 使用方法和付费技能说明。 - 现在可根据需求选择 Python 或 Node.js 客户端运行。
v1.0.1
- 新增封装属性 encapsulation_target,明确分发体系(如 prana、claw_hub 等)。 - 文档优化,增加对 encapsulation_target 字段与分发说明的注释说明。 - 其余功能无变更。
v1.0.0
portfolio-diagnosis v1.0.0 - Initial release of a Tushare-driven portfolio diagnosis tool tailored for A-share (A股) investors. - Delivers professional reports including hero rankings, key metrics, interactive charts (radar, pie, bar, profit/loss), detail tables, and risk assessment cards. - Supports multiple formats for portfolio input (plain text and JSON). - Provides comprehensive quantitative risk metrics: volatility, Beta, Sharpe ratio, and max drawdown. - Offers risk tips and portfolio optimization suggestions.
Metadata
Slug portfolio-diagnosis
Version 1.0.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is 持仓诊断?

持仓诊断技能(Tushare驱动版)——专为A股投资者设计。当用户说"帮我诊断持仓"、"看看我的股票组合"、"仓位合理吗"、"持仓风险大吗"、"我的组合夏普比率多少"时触发。使用Tushare SDK获取实时行情和历史数据,进行包含波动率、Beta、夏普比率、最大回撤在内的量化风险诊断,并生成专业诊断报告,包含:... It is an AI Agent Skill for Claude Code / OpenClaw, with 125 downloads so far.

How do I install 持仓诊断?

Run "/install portfolio-diagnosis" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 持仓诊断 free?

Yes, 持仓诊断 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 持仓诊断 support?

持仓诊断 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 持仓诊断?

It is built and maintained by luokeer52 (@luokeer52); the current version is v1.0.2.

💬 Comments