← Back to Skills Marketplace
hzx0385-cpu

A 股投资决策助手

by 尘埃 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
89
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install a-stock-decision-fugui
Description
从共享记忆读取持仓,生成 A 股投资决策报告(止损/止盈/仓位管理)
README (SKILL.md)

stock-decision Skill - A 股投资决策助手

功能说明

本 Skill 提供以下功能:

  1. 持仓读取 - 从 SHARED_MEMORY.md 动态读取持仓配置
  2. 实时价格 - 获取 A 股实时行情数据
  3. 买卖信号 - 生成止损/止盈/仓位调整建议
  4. 风险预警 - 触及阈值自动预警
  5. 报告生成 - 生成 Markdown 格式投资决策报告

使用方式

命令行调用

openclaw skill run stock-decision

配置参数

openclaw skill config stock-decision --maxPosition 20 --stopLoss -8 --stopProfit 15

输出示例

# 📊 A 股投资决策报告

## 🚨 紧急操作
### 太辰光 (300570) strong_sell
- 操作:减仓/止损
- 理由:触及止损线 (-8.0%)
- 止损价:119.91 元
- 止盈价:149.89 元

配置说明

环境变量

export FEISHU_WEBHOOK="https://open.feishu.cn/open-apis/bot/v2/hook/xxx"

参数说明

参数 默认值 说明
maxPosition 20.0 单票最大仓位%
stopLoss -8.0 止损线%
stopProfit 15.0 止盈线%

依赖

pip3 install requests

更新日志

v1.0.0 (2026-04-03)

  • ✅ 初始版本发布
  • ✅ 从 SHARED_MEMORY 动态读取持仓
  • ✅ 实时价格获取
  • ✅ 买卖信号生成

支持

  • 作者:富贵儿
  • 文档:https://docs.openclaw.ai
  • 社区:https://discord.com/invite/clawd
Usage Guidance
简明建议: - 验证 shared_memory_loader 实现:在安装/运行前手动检查 ~/.openclaw/workspace/shared_memory_loader.py(或等效文件),确认 get_latest_holdings 只读取 SHARED_MEMORY.md 并且不会执行或导出其它不明代码。因为该 skill 会把 workspace 加入 sys.path 并 import 模块,恶意/被篡改的模块可能执行任意代码。 - 检查 SHARED_MEMORY.md 内容:确保其中不包含敏感凭据或不应上传/读取的私人数据(该 skill 会读取并在本地/报告中包含持仓信息)。 - 关于 FEISHU_WEBHOOK:README/SKILL.md 提到该环境变量,但当前代码并未使用它;不要在不信任的第三方上设置含敏感信息的 webhook URL。若你期望自动推送,请要求作者提供实现或在可信代理/脚本中自行实现发送逻辑。 - 沙箱测试:首次运行在隔离环境或非生产账户中执行,观察网络请求(会访问 qt.gtimg.cn 用于行情)以及产生的文件 (~/.openclaw/decisions)。 - 依赖安装:只需 requests 库,但按需在虚拟环境中安装以减少对系统环境的影响。 总体上该 skill 功能与描述相符,但文档/实现不一致与运行时导入用户 workspace 的做法增加了风险;在信任 shared_memory_loader 和 workspace 内容之前,不建议在敏感环境直接使用。
Capability Analysis
Type: OpenClaw Skill Name: a-stock-decision-fugui Version: 1.0.0 The stock-decision skill is a legitimate tool for analyzing A-share stock holdings and generating investment reports. It fetches real-time market data from a public Tencent Finance API (qt.gtimg.cn) and processes data stored in the local OpenClaw workspace (~/.openclaw/workspace/SHARED_MEMORY.md). The code in skill.py follows the stated purpose without any evidence of data exfiltration, unauthorized execution, or malicious prompt injection.
Capability Assessment
Purpose & Capability
Skill 名称/描述与实现基本一致:从共享记忆读取持仓(通过 shared_memory_loader.get_latest_holdings),获取 A 股实时价格(qt.gtimg.cn),生成并保存 Markdown 报告到 ~/.openclaw/decisions。唯一不一致之处是文档中提到的 FEISHU_WEBHOOK(用于推送)在实际代码中未使用;另外文档的 CLI 配置参数名(maxPosition/stopLoss/stopProfit)与代码中配置字段名不完全对齐。总体功能与请求的资源相符,但文档/实现不同步。
Instruction Scope
SKILL.md 与 README 明确要求读取 SHARED_MEMORY.md(位于 ~/.openclaw/workspace)。实现通过将 ~/.openclaw/workspace 加入 sys.path 并 import shared_memory_loader.get_latest_holdings,这意味着在运行时会执行该 workspace 下的 Python 代码 —— 如果 workspace 被篡改或包含不受信任的模块,这会导致任意代码执行。该行为对完成“读取持仓”是必要的,但也带来较高的信任边界。文档还建议设置 FEISHU_WEBHOOK 环境变量,但代码并未发送任何数据到该 webhook(不一致)。
Install Mechanism
没有安装脚本或远程下载;只有源文件和 requirements.txt(仅 requests)。这是较低的安装风险(没有从不可信 URL 下载或提权安装)。
Credentials
Skill 本身不声明需要任何凭据或环境变量。SKILL.md/README 建议导出 FEISHU_WEBHOOK,但代码并未使用它——这是文档与实现的不一致(可导致用户误以为技能会把报告发送到第三方)。该技能需要访问用户主目录的两个位置:~/.openclaw/workspace(读取/导入模块/数据)和 ~/.openclaw/decisions(写入报告);这些访问与其目的直接相关 but warrant review of the files in workspace.
Persistence & Privilege
flags: always:false(默认),不修改其他技能或系统配置。它会在用户主目录下创建/写入 ~/.openclaw/decisions,这是合理的行为 for saving reports. No elevated privileges requested.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install a-stock-decision-fugui
  3. After installation, invoke the skill by name or use /a-stock-decision-fugui
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
stock-decision v1.0.0 - 初始版本发布 - 支持从共享记忆动态读取持仓信息 - 获取 A 股实时行情数据 - 自动生成止损/止盈/仓位调整建议 - 提供风险预警和报告生成功能
Metadata
Slug a-stock-decision-fugui
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is A 股投资决策助手?

从共享记忆读取持仓,生成 A 股投资决策报告(止损/止盈/仓位管理). It is an AI Agent Skill for Claude Code / OpenClaw, with 89 downloads so far.

How do I install A 股投资决策助手?

Run "/install a-stock-decision-fugui" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is A 股投资决策助手 free?

Yes, A 股投资决策助手 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does A 股投资决策助手 support?

A 股投资决策助手 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created A 股投资决策助手?

It is built and maintained by 尘埃 (@hzx0385-cpu); the current version is v1.0.0.

💬 Comments