← 返回 Skills 市场
luokeer52

持仓诊断

作者 luokeer52 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
125
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install portfolio-diagnosis
功能描述
持仓诊断技能(Tushare驱动版)——专为A股投资者设计。当用户说"帮我诊断持仓"、"看看我的股票组合"、"仓位合理吗"、"持仓风险大吗"、"我的组合夏普比率多少"时触发。使用Tushare SDK获取实时行情和历史数据,进行包含波动率、Beta、夏普比率、最大回撤在内的量化风险诊断,并生成专业诊断报告,包含:...
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install portfolio-diagnosis
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /portfolio-diagnosis 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug portfolio-diagnosis
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

持仓诊断 是什么?

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

如何安装 持仓诊断?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install portfolio-diagnosis」即可一键安装,无需额外配置。

持仓诊断 是免费的吗?

是的,持仓诊断 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

持仓诊断 支持哪些平台?

持仓诊断 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 持仓诊断?

由 luokeer52(@luokeer52)开发并维护,当前版本 v1.0.2。

💬 留言讨论