← 返回 Skills 市场
611
总下载
1
收藏
4
当前安装
1
版本数
在 OpenClaw 中安装
/install a-share-metrics-card
功能描述
获取并生成 A股单只股票的关键指标“体检卡”(估值/盈利质量/现金流/负债/分红/交易活跃度等),输出为统一 Markdown,便于对比与持续跟踪。用在:"帮我查600406关键指标"、"做一张国电南瑞体检卡"。
使用说明 (SKILL.md)
A-Share Metrics Card
Inputs
- symbol(必填):如 "600406" / "000733"
- name(可选):中文名(若不提供则尽量自动识别)
- focus(可选):"balanced" | "value" | "growth" | "dividend"(默认 balanced)
- outputPath(可选):默认
notes/stocks/cards/{symbol}.md
Steps
- 校验参数:必须有 symbol。
- 选择数据源:
- 优先:Python + AkShare(覆盖广、适配A股)
- 备选:公开网页/API(轻量但不保证稳定)
- 拉取数据并标注“口径/时间”(能拿到就写):
- 交易面:最新价、近52周区间、成交额/换手率(如可得)
- 估值:PE(TTM/静态如可得)、PB
- 质量:ROE、毛利率/净利率(如可得)
- 健康:资产负债率、经营现金流(如可得)
- 分红:股息率/近几年分红(如可得)
- 生成统一 Markdown 卡片并写入 outputPath。
- 返回:status/summary/data/nextAction。
Output template(Markdown 卡片)
- 基本信息:代码/名称/行业(如可得)
- 快速结论(仅数据层面的“看到什么”,不做买卖建议)
- 指标表(或清单)+ 数据口径与更新时间
- 需要进一步核实的问题(2–5条)
Safety / Boundaries
- 不输出“买/卖/目标价”。只做数据与学习提示。
- 明确数据来源与可能滞后。
Failure
- 缺 symbol:报错并给示例。
- 取数失败:给出替代数据源建议,并提示检查网络/依赖安装。
安全使用建议
This skill appears coherent and focused: it fetches public market and financial data and writes a Markdown 'metrics card' locally. Before installing/using it, consider: (1) install required Python packages (akshare, curl_cffi) in a virtual environment; the skill has no automatic installer. (2) It performs network requests (Eastmoney push2 and AkShare upstream APIs) — expect rate limits, possible blocking on cloud hosts, and check source data licensing/terms. (3) It writes files to notes/stocks/cards by default — verify that path is acceptable. (4) If you run automated agents, remember this skill can be invoked by the agent (normal behavior); review the script yourself or run it in an isolated environment if you have security concerns.
功能分析
Type: OpenClaw Skill
Name: a-share-metrics-card
Version: 1.0.0
The skill's stated purpose of generating A-share metrics cards is benign. However, the `scripts/metrics_card.py` script directly uses the `args.out` parameter to construct the output file path without sanitization. This creates a path traversal vulnerability, allowing an attacker who can control the `outputPath` argument (e.g., via prompt injection against the agent) to write files to arbitrary locations on the filesystem. While not explicitly malicious code, this vulnerability makes the skill suspicious.
能力评估
Purpose & Capability
Name/description request A‑share metrics; the SKILL.md and included Python script use AkShare and public Eastmoney endpoints to fetch quotes/financial indicators and produce a Markdown card — this is coherent and proportional to the stated purpose.
Instruction Scope
Instructions and script perform parameter validation, network calls to public data sources, best-effort fallbacks, and write a Markdown file to a local path. They do not request unrelated files, secrets, or system configuration. The script clearly documents behavior and failure modes.
Install Mechanism
No install spec is provided (instruction-only), but the script requires third‑party Python packages (akshare, curl_cffi). This is not malicious but means dependencies must be installed manually in the runtime environment; the SKILL.md and README reference AkShare but do not declare a dependency block.
Credentials
The skill requests no environment variables, credentials, or config paths. Network access to public APIs is necessary for its function; there is no evidence of credential harvesting or unrelated secrets being accessed.
Persistence & Privilege
The skill does not request permanent inclusion (always: false), does not modify other skills or system settings, and only writes its own output file under notes/stocks/cards by default.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install a-share-metrics-card - 安装完成后,直接呼叫该 Skill 的名称或使用
/a-share-metrics-card触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
a-share-metrics-card 1.0.0
- Initial release of the skill for generating A股(Chinese Mainland Stock Market)single stock metrics cards.
- Supports fetching and presenting valuation, quality, cash flow, debt, dividend, and trading metrics in standard Markdown format for easy comparison and tracking.
- Accepts stock symbol as required input; allows optional customization of focus area and output path.
- Prioritizes data gathering using AkShare; falls back to public APIs or web sources if needed.
- Implements clear error handling for missing parameters or data retrieval failures.
- Ensures only factual, data-driven outputs; does not generate investment advice.
元数据
常见问题
A Share Metrics Card 是什么?
获取并生成 A股单只股票的关键指标“体检卡”(估值/盈利质量/现金流/负债/分红/交易活跃度等),输出为统一 Markdown,便于对比与持续跟踪。用在:"帮我查600406关键指标"、"做一张国电南瑞体检卡"。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 611 次。
如何安装 A Share Metrics Card?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install a-share-metrics-card」即可一键安装,无需额外配置。
A Share Metrics Card 是免费的吗?
是的,A Share Metrics Card 完全免费(开源免费),可自由下载、安装和使用。
A Share Metrics Card 支持哪些平台?
A Share Metrics Card 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 A Share Metrics Card?
由 JoiFG(@joifg)开发并维护,当前版本 v1.0.0。
推荐 Skills