Token导航 LogoToken导航

Agent Skill · 开发

stockbuddy(stockbuddy 分析)

stockbuddy 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

stockbuddy 是开发类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为只读;许可证为 MIT-0,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 5,604。

总安装 6,047周安装 247GitHub Stars 1下载 1,936核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.8

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:stockbuddy(stockbuddy 分析)
来源仓库:https://github.com/tacitlab/stockbuddy
安装命令:
openclaw skills install stockbuddy
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install stockbuddy

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

多市场股票分析与投资组合执行助手,融合技术与基本面分析。适用于跨市场资产配置与组合绩效评估管理任务。输入股票代码或组合,返回估值、风险与收益综合分析。安装命令:openclaw skills install stockbuddy,需前端组件与环境支持。注意界面交互逻辑需配合实际业务流定制。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install stockbuddy;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

stockbuddy 怎么安装?

在终端执行 openclaw skills install stockbuddy。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

stockbuddy 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

stockbuddy 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

stockbuddy 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

stockbuddy 用的人多吗?

公开数据是累计安装 6,047 次,近一周安装 247 次,下载 1,936 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

stockbuddy 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
stockbuddy

stockbuddy 分析 · 本页

6,0471只读MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
stockbuddy
description
Multi-market stock analysis and portfolio execution assistant for CN, HK, and US equities. Provides technical + basic valuation analysis, portfolio review, account-aware position tracking, cash balances by market/currency, and execution-aware suggestions that respect lot size, odd-lot support, and trading constraints. Use when the user asks for stock analysis, portfolio analysis, buy/sell advice, watchlist management, position management, account cash tracking, rebalancing, or practical trading actions for a stock code or company name.

StockBuddy

Overview

StockBuddy is a stock analysis and portfolio execution support skill for A-share, Hong Kong, and US equities. It outputs quantified scores and clear action labels (Strong Buy / Buy / Hold / Sell / Strong Sell). By default, responses are decision-first: give the concise conclusion, score/confidence, event-adjusted second-pass suggestion, and practical order ideas before expanding into a long-form report.

Core rule: separate durable facts from derived values.

  • Persist durable facts: share count, cost basis, account, available cash, market/currency, lot size, odd-lot support, and other user-confirmed trading constraints
  • Compute in real time: latest price, market value, position weight, unrealized P&L, executable buy/sell size, and whether partial selling is actually possible
  • Do not write latest price, position weight, or unrealized P&L back into durable storage

Five core scenarios:

  1. Single-stock analysis — analyze one stock and produce an action recommendation
  2. Batch portfolio analysis — analyze current positions and summarize stock-level and portfolio-level status
  3. Position management — add, update, remove, and inspect positions
  4. Account and allocation management — track account, cash, market/currency, and execution constraints
  5. Watchlist management — add, remove, and inspect watched stocks while storing basic stock metadata and trading rules

Execution-Aware Advice Rules

Before giving execution-ready trading advice, confirm whether the durable constraints are sufficient.

Required durable facts for execution-aware advice:

  • account context
  • market / currency
  • available cash for the account
  • lot size
  • odd-lot support when relevant

If these are incomplete:

  • still give a directional view when possible
  • label it as directional only or non-execution-ready
  • ask only for the missing durable facts
  • do not invent quantity, allocation, or partial-sell actions that may be impossible in the real market setup

Special rule for buy advice:

  • If available cash is unknown, do not provide quantity, allocation, or order-size advice.
  • Ask for the account plus available cash first.

Special rule for sell/trim advice:

  • If lot size or odd-lot support is unknown, avoid suggesting partial sells as if they are definitely executable.
  • If the user holds only one lot and odd-lot selling is not supported, suggest only executable actions such as hold or sell the full lot.

Environment Setup

Only install dependencies when they are actually missing, or when a script fails with a missing-package error:

bash {{SKILL_DIR}}/scripts/install_deps.sh

Required dependencies: numpy, pandas, built-in Python sqlite3. No yfinance dependency is required; the current implementation mainly uses Tencent Finance data.

Core Workflow

Scenario 1: Analyze a Single Stock

Trigger examples: "analyze Tencent", "can I buy this stock", "look at BYD", "analyze this ticker"

Steps:

  1. Normalize the stock code

- Hong Kong stocks: normalize to XXXX.HK - A-shares: normalize to SH600519 / SZ000001 - US stocks: normalize to AAPL / TSLA - If the user provides only a company name, infer the market from context first; ask for confirmation only if the mapping is ambiguous

  1. Run the analysis script
   python3 {{SKILL_DIR}}/scripts/analyze_stock.py <CODE> --period 6mo

Optional period values: 1mo / 3mo / 6mo (default) / 1y / 2y / 5y

Data and caching behavior: - Raw daily K-line data, watchlist data, and portfolio data are stored in ~/.stockbuddy/stockbuddy.db (SQLite) - Positions are linked through watchlist_id - Analysis results are cached separately in SQLite with a default TTL of 10 minutes - Cache cleanup runs automatically and total cached analysis rows are capped - If the user explicitly asks to "refresh data" or "reanalyze", add --no-cache - To clear analysis cache: --clear-cache

  1. Interpret and present the result

- The script returns JSON analysis data - For default single-stock requests, use the default query template in references/output_templates.md - The default response must include: stock basics, data-driven action recommendation (with score and confidence), important events, event-adjusted second-pass suggestion, and practical order ideas - Default order style = balanced. Only switch when the user explicitly asks for a conservative or aggressive version - Only produce the full report when explicitly requested with phrases like "full report", "detailed analysis", or "complete analysis" - The top natural-language summary is mandatory in both short and long versions: 2-4 sentences covering regime, main recommendation, confidence, support/risk points, and whether the stock is actionable today - Only expand into a more open-ended explanation when the user asks for detail such as "explain why", "show the reasoning", "how about short-term", or "what stop-loss/stop-profit should I use" - Final output must be normal Markdown, not wrapped in code fences; prefer short paragraphs, bullet points, and card-style formatting over wide tables unless the user explicitly wants a detailed report

Scenario 2: Batch Portfolio Analysis

Trigger examples: "analyze my portfolio", "look at my holdings", "how are my positions doing"

Default output should still be decision-first: for each position, give the action label, score/confidence, important events, event-adjusted second suggestion, and a compact practical order version. Do not expand every holding into a full long report unless the user explicitly wants a detailed version.

Steps:

  1. Check portfolio data
   python3 {{SKILL_DIR}}/scripts/portfolio_manager.py list

Portfolio data is stored in the positions table in ~/.stockbuddy/stockbuddy.db.

  1. If the portfolio is empty → guide the user to add positions first (see Scenario 3)
  1. Run batch analysis
   python3 {{SKILL_DIR}}/scripts/portfolio_manager.py analyze
  1. Interpret and present the result

- Format the result using the "Portfolio Batch Analysis Report" section in references/output_templates.md - Output normal Markdown, not code fences - It may use standard Markdown tables mixed with lists when helpful, but keep it readable on chat surfaces - Include stock-level recommendations and portfolio-level P&L summary - Prefer real-time computed fields in the output: latest price, market value, unrealized P&L, position weight, and executable action constraints such as whole-lot vs odd-lot behavior - Do not write latest price, position weight, or unrealized P&L back into durable storage; the database should only hold stable user-confirmed facts and trading rules

Scenario 3: Position Management

Trigger examples: "add a Tencent position", "I bought 100 shares of BYD", "remove Alibaba from my holdings"

ActionCommand
Add positionpython3 {{SKILL_DIR}}/scripts/portfolio_manager.py add <CODE> --price <BUY_PRICE> --shares <SHARES> [--date <DATE>] [--note <NOTE>] [--account <ACCOUNT_NAME_OR_ID>]
List positionspython3 {{SKILL_DIR}}/scripts/portfolio_manager.py list
Update positionpython3 {{SKILL_DIR}}/scripts/portfolio_manager.py update <CODE> [--price <PRICE>] [--shares <SHARES>] [--note <NOTE>] [--account <ACCOUNT_NAME_OR_ID>]
Remove positionpython3 {{SKILL_DIR}}/scripts/portfolio_manager.py remove <CODE>
List accountspython3 {{SKILL_DIR}}/scripts/portfolio_manager.py account-list
Create/update accountpython3 {{SKILL_DIR}}/scripts/portfolio_manager.py account-upsert <ACCOUNT_NAME> [--market <MARKET>] [--currency <CURRENCY>] [--cash <TOTAL_CASH>] [--available-cash <AVAILABLE_CASH>] [--note <NOTE>]
Set trading rulepython3 {{SKILL_DIR}}/scripts/portfolio_manager.py rule-set <CODE> [--lot-size <LOT_SIZE>] [--tick-size <TICK_SIZE>] [--odd-lot]

When adding a position, ensure the stock exists in the watchlist and is linked through positions.watchlist_id -> watchlist.id. If the user does not provide a date, default to the current date. If the user provides natural-language trade info such as "I bought 100 shares of Tencent last week at 350", extract price, share count, date, and account info where possible, then execute the appropriate command.

After the first successful position record, proactively guide the user to fill the missing durable facts needed for execution-aware advice. Do not stop at only code / shares / cost if important constraints are still unknown.

Ask for or help the user confirm these fields, in this priority order:

  1. Account context — which account this belongs to, and its market / currency
  2. Cash — total cash or available cash in that account
  3. Lot rule — lot size for the stock
  4. Odd-lot support — whether the broker supports odd-lot selling / buying
  5. Trade date — if omitted and relevant for later review
  6. Notes — optional thesis, time horizon, or special constraints

If some fields are already known, only ask for the missing ones. Keep the follow-up compact: confirm what was captured, state what is still missing, and ask for the missing durable facts in one short message.

If the user gives only partial follow-up info, update what is available and continue asking only for the remaining missing fields. Once enough execution constraints are known, stop prompting and proceed normally.

Scenario 4: Account and Allocation Management

Trigger examples: "my HK account has 3000 HKD cash", "track available cash", "record this under my US account", "how concentrated is my portfolio"

Rules:

  • Keep cash, account, market, and currency as durable facts
  • Keep position weights, market value, and unrealized P&L as computed fields
  • If the user has multiple markets or currencies, treat them as separate account contexts unless the user explicitly wants cross-account aggregation
  • Use account information to improve practical trading advice: whether the user can afford a new lot, whether a rebalance is even possible, and whether the trade would increase concentration too much

Scenario 5: Watchlist Management

Trigger examples: "watch Tencent", "add Apple to my watchlist", "remove Moutai from watchlist"

ActionCommand
List watchlistpython3 {{SKILL_DIR}}/scripts/portfolio_manager.py watch-list
Add watch itempython3 {{SKILL_DIR}}/scripts/portfolio_manager.py watch-add <CODE>
Remove watch itempython3 {{SKILL_DIR}}/scripts/portfolio_manager.py watch-remove <CODE>

Analysis Methodology

The scoring system combines technicals (roughly 60% weight) and basic valuation (roughly 40% weight). Final score range is approximately -10 to +10:

Score RangeRecommendation
≥ 5🟢🟢 Strong Buy
2 ~ 4🟢 Buy
-1 ~ 1🟡 Hold / Watch
-4 ~ -2🔴 Sell
≤ -5🔴🔴 Strong Sell

Only read references/technical_indicators.md when the user asks for detailed scoring logic, indicator interpretation, or when you need help calibrating a more detailed explanation.

When deciding the final output format, choosing between default query vs full report, or generating practical order suggestions, prefer references/output_templates.md. It defines the default query template, atomic templates, full-report composition rules, and the conservative / balanced / aggressive order-price generation rules (balanced is the default).

Important Notes

  • All analysis is for reference only and is not investment advice
  • The primary data source is Tencent Finance, which may have delays, gaps, or field limitations
  • Hong Kong stocks do not have the same daily price-limit structure as A-shares and therefore carry higher intraday volatility risk
  • Every final analysis output must include a risk disclaimer
  • Technical analysis can fail during extreme market conditions
  • Encourage the user to combine macro conditions, sector trends, and company fundamentals in final decision-making
  • Only store user-confirmed durable facts in the database; latest price, market value, unrealized P&L, and position weight should be fetched or calculated at analysis time

Resource Files

FilePurpose
scripts/analyze_stock.pyCore analysis script for market data retrieval, technical indicators, and valuation scoring
scripts/portfolio_manager.pyPortfolio/account/watchlist management and batch analysis entry point
scripts/install_deps.shDependency installation script
references/technical_indicators.mdDetailed technical indicator and scoring reference
references/output_templates.mdOutput template controller: default query template, atomic templates, full-report rules, and practical order generation rules
references/data-source-roadmap.mdData-source roadmap for primary/fallback/event-layer evolution; read only when extending data sources or event coverage

平台分布

OpenClaw

97.95%
按下载量换算1,896

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills