Stock AI Analyzer — 技能工具
v2.2.1股票AI分析助手,支持基础分析和增强分析。基础模式:输入"股票名称 基本面/技术面"进行标准分析。增强模式:输入"股票名称,基本面,重点查询分析xxx"可在基础分析上追加深度专题分析。⚠️ 重要提示:1) 需要配置 TUSHARE_TOKEN 才能获取股票数据;2) 需要配置 AI 模型才能进行分析(支持 Ope...
0· 500·0 当前·0 累计
安全扫描
OpenClaw
可疑
high confidenceThe skill's code and SKILL.md consistently require a TUSHARE_TOKEN and AI-model credentials and will send stock/financial data to configured model endpoints, but the registry metadata incorrectly lists no required environment variables and the package includes executable code without an install spec — these inconsistencies warrant caution.
评估建议
This package mostly does what it claims (fetch Tushare data, compute ratios, and send analysis prompts to an AI model). Key points before installing/using:
- Metadata mismatch: the registry lists no required env vars, but the SKILL.md and code require TUSHARE_TOKEN and an AI model configuration (OPENAI_API_KEY or LLM_* or OPENCLAW_MODEL_ENDPOINT). Do not assume no secrets are needed.
- Secrets handling: provide TUSHARE_TOKEN and any model API keys only to trusted environments. The skill will s...详细分析 ▾
ℹ 用途与能力
The name/description, SKILL.md, and code align: the skill fetches stock data via Tushare, computes financial ratios, and sends analysis prompts to an AI model. The capabilities requested (TUSHARE_TOKEN, model API keys/endpoints) are appropriate for the stated purpose. However, registry metadata lists no required env vars despite the code and README clearly requiring TUSHARE_TOKEN and model credentials — an incoherence between declared metadata and actual needs.
✓ 指令范围
SKILL.md and the scripts describe and implement a focused workflow: read Tushare data (from env or .env in current dir), compute analyses, and send prompts and data to a configured AI model endpoint. The instructions explicitly warn that stock/financial data is sent to the AI service. The code does not attempt to read unrelated system paths or credentials.
ℹ 安装机制
There is no install spec (the skill is 'instruction-only' at registry level) but the bundle includes multiple Python scripts with external dependencies (tushare, pandas, numpy). This is low-risk relative to arbitrary remote downloads, but the absence of an install mechanism means the user must manually install dependencies; the presence of executable code should be noted by the user.
⚠ 凭证需求
The code legitimately requires TUSHARE_TOKEN and various AI-model credentials (OPENAI_API_KEY / OPENAI_BASE_URL, LLM_API_KEY / LLM_API_BASE / LLM_MODEL, OPENCLAW_MODEL_ENDPOINT, OPENCLAW_SESSION). That is proportionate to the functionality. The problem: the registry metadata claims 'Required env vars: none', which is inaccurate and could mislead users into under-protecting secrets. Also the data_fetcher will read a .env file in the current working directory (but not parent dirs), which users should be aware of.
✓ 持久化与权限
The skill does not request always:true, does not attempt to modify other skills or system-wide configs, and does not request persistent privileges. It only uses runtime environment variables and performs network calls to configured AI endpoints and Tushare API.
安全有层次,运行前请审查代码。
运行时依赖
无特殊依赖
版本
latestv2.2.12026/3/18
优化AI模型兼容性,改进数据展示格式
● 无害
安装命令 点击复制
官方npx clawhub@latest install stock-ai-analyzer
镜像加速npx clawhub@latest install stock-ai-analyzer --registry https://cn.clawhub-mirror.com
技能文档
# 股票AI分析助手 支持基础分析和增强分析两种模式。兼容 OpenClaw 及多种 AI 模型环境。
⚠️ 重要依赖声明
必需配置
TUSHARE_TOKEN(必需)- 用途:获取股票数据
- 获取:https://tushare.pro
- 配置:
export TUSHARE_TOKEN=your_token
- OpenClaw 环境(推荐)
- OpenAI 兼容接口
bash
export OPENAI_API_KEY=your_key
export OPENAI_BASE_URL=https://api.openai.com/v1 # 可选,默认 OpenAI
`
- 自定义 LLM 接口
`bash
export LLM_API_KEY=your_key
export LLM_API_BASE=https://your-endpoint/v1
export LLM_MODEL=your-model-name
`
- HTTP 端点
`bash
export OPENCLAW_MODEL_ENDPOINT=http://localhost:8000/generate
`
⚠️ 数据安全说明
- 股票数据和财务信息会发送到配置的 AI 模型进行处理
- 请确保您的 AI 服务端点可信
- 敏感股票数据请谨慎使用
使用模式
基础分析
`
股票名称 基本面
股票名称 技术面
`
增强分析(基础+深度专题)
`
股票名称,基本面,重点查询分析[专题]
`
示例:
- "东威科技,基本面,重点查询分析业务和AI pcb生产的关联性"
分析内容
基础模块
- 公司概况
- 财务质量分析
- 估值分析(三情景估值)
- 股东与管理层
增强专题
- 业务关联性分析
- 客户结构分析
- 竞争优势分析
文件结构
`
scripts/
├── stock_analyzer.py # 基础分析
├── enhanced_analyzer.py # 增强分析
├── data_fetcher.py # 数据获取
├── financial_ratios.py # 财务计算
└── ai_client.py # AI 模型客户端(多环境兼容)
``
依赖
- Python 3.8+
- tushare
- pandas
- numpy
免责声明
以上分析基于公开历史数据,不构成投资建议。数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制