← Back to Skills Marketplace
joifg

A Share Metrics Card

by JoiFG · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
611
Downloads
1
Stars
4
Active Installs
1
Versions
Install in OpenClaw
/install a-share-metrics-card
Description
获取并生成 A股单只股票的关键指标“体检卡”(估值/盈利质量/现金流/负债/分红/交易活跃度等),输出为统一 Markdown,便于对比与持续跟踪。用在:"帮我查600406关键指标"、"做一张国电南瑞体检卡"。
README (SKILL.md)

A-Share Metrics Card

Inputs

  • symbol(必填):如 "600406" / "000733"
  • name(可选):中文名(若不提供则尽量自动识别)
  • focus(可选):"balanced" | "value" | "growth" | "dividend"(默认 balanced)
  • outputPath(可选):默认 notes/stocks/cards/{symbol}.md

Steps

  1. 校验参数:必须有 symbol。
  2. 选择数据源:
    • 优先:Python + AkShare(覆盖广、适配A股)
    • 备选:公开网页/API(轻量但不保证稳定)
  3. 拉取数据并标注“口径/时间”(能拿到就写):
    • 交易面:最新价、近52周区间、成交额/换手率(如可得)
    • 估值:PE(TTM/静态如可得)、PB
    • 质量:ROE、毛利率/净利率(如可得)
    • 健康:资产负债率、经营现金流(如可得)
    • 分红:股息率/近几年分红(如可得)
  4. 生成统一 Markdown 卡片并写入 outputPath。
  5. 返回:status/summary/data/nextAction。

Output template(Markdown 卡片)

  • 基本信息:代码/名称/行业(如可得)
  • 快速结论(仅数据层面的“看到什么”,不做买卖建议)
  • 指标表(或清单)+ 数据口径与更新时间
  • 需要进一步核实的问题(2–5条)

Safety / Boundaries

  • 不输出“买/卖/目标价”。只做数据与学习提示。
  • 明确数据来源与可能滞后。

Failure

  • 缺 symbol:报错并给示例。
  • 取数失败:给出替代数据源建议,并提示检查网络/依赖安装。
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install a-share-metrics-card
  3. After installation, invoke the skill by name or use /a-share-metrics-card
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug a-share-metrics-card
Version 1.0.0
License
All-time Installs 4
Active Installs 4
Total Versions 1
Frequently Asked Questions

What is A Share Metrics Card?

获取并生成 A股单只股票的关键指标“体检卡”(估值/盈利质量/现金流/负债/分红/交易活跃度等),输出为统一 Markdown,便于对比与持续跟踪。用在:"帮我查600406关键指标"、"做一张国电南瑞体检卡"。 It is an AI Agent Skill for Claude Code / OpenClaw, with 611 downloads so far.

How do I install A Share Metrics Card?

Run "/install a-share-metrics-card" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is A Share Metrics Card free?

Yes, A Share Metrics Card is completely free (open-source). You can download, install and use it at no cost.

Which platforms does A Share Metrics Card support?

A Share Metrics Card is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created A Share Metrics Card?

It is built and maintained by JoiFG (@joifg); the current version is v1.0.0.

💬 Comments