← 返回 Skills 市场
wwzzsl

A Stock

作者 wwzzsl · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ⚠ suspicious
110
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install stock-skill-2
功能描述
A股金融数据查询与分析助手。当用户询问任何与A股相关的问题时,使用此技能——包括:查询个股信息、实时行情、分时走势、龙虎榜、行业板块、盘口异动、市场总貌等。触发词包括但不限于:股票、A股、沪市、深市、行情、涨停、跌停、板块、龙虎榜、盘口异动、个股、股价、总市值、证券,或任何带有6位股票代码的查询(如 600519...
安全使用建议
What to check before installing/using: 1) Confirm the skill source (review the GitHub repo at the provided homepage) to ensure it matches the package you installed. 2) Verify the metadata mismatch: SKILL.md requires ASTOCK_API_KEY and Node/npx, but registry metadata omitted these — treat that as a packaging error and confirm requirements. 3) Avoid running the script from directories containing other .env files with unrelated secrets; prefer setting ASTOCK_API_KEY as an explicit environment variable or create a dedicated project directory with a minimal .env. 4) Inspect scripts/api-client.ts yourself (it is short): it only reads ASTOCK_API_KEY and calls https://api.aipmedia.cn; if you trust that service, the behavior is consistent. 5) If you have concerns about leaking the API key, isolate the process (container/VM) or review network egress controls; otherwise the key will be sent to api.aipmedia.cn as intended. 6) If you want higher assurance, ask the publisher to fix the package metadata to declare required env vars and runtime binaries. If any of these points are unclear or you want help checking the repo contents or running the script in a safe environment, I can assist.
功能分析
Type: OpenClaw Skill Name: stock-skill-2 Version: 0.1.1 The skill is a legitimate A-share stock market data assistant that queries financial information from api.aipmedia.cn. The provided TypeScript client (scripts/api-client.ts) correctly handles API authentication by reading a specific ASTOCK_API_KEY from environment variables or a local .env file, and the instructions in SKILL.md explicitly advise against exposing this key in chat logs. The code and instructions are well-structured, lack obfuscation, and do not exhibit any signs of data exfiltration or malicious execution.
能力评估
Purpose & Capability
Name/description, the included scripts, and the declared API host (api.aipmedia.cn) are consistent: the skill needs an ASTOCK_API_KEY and the TypeScript client calls that host. However, the top-level registry metadata (shown to you earlier) claims 'Required env vars: none' and 'Required binaries: none', while SKILL.md and scripts require ASTOCK_API_KEY and Node/npx. That metadata mismatch is an incoherence (likely sloppy packaging) that you should verify.
Instruction Scope
SKILL.md gives narrow, explicit runtime instructions: always run the included TypeScript client with npx tsx, obtain ASTOCK_API_KEY from .env or environment, and only call api.aipmedia.cn. The client code only reads ASTOCK_API_KEY (from .env in working dir or parent, or from env), performs an HTTP GET, and prints the returned data. There are no instructions to read or transmit other local files.
Install Mechanism
There is no external install/download step: the repo includes an instruction file and a single scripts/api-client.ts. No remote installers, archives, or obscure URLs are used. This is lower risk from an install-mechanism perspective.
Credentials
The skill legitimately requires a single API key (ASTOCK_API_KEY) for the stated API, which is proportionate. The concern is twofold: (1) the registry metadata omitted declaring the required env var and required runtime (Node/npx), making the package metadata inconsistent; (2) the script searches for .env in the current and parent directory, which could accidentally pick up an unrelated .env file containing other secrets if you run it from an unexpected location. The client sends the API key as a header to api.aipmedia.cn — you must trust that host and the key usage.
Persistence & Privilege
The skill does not request permanent presence (always:false) and the script does not persist secrets or modify other agent configuration. It reads the API key at runtime and does not write it or other data to disk.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install stock-skill-2
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /stock-skill-2 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
- Updated the skill's homepage URL in SKILL.md. - No changes to API usage, functionality, or instructions. - Documentation remains functionally the same except for the homepage metadata.
v0.1.0
Initial release of a-stock skill providing A股 (A-share) stock data query and analysis. - Enables querying of real-time and historical A股数据: individual stock info, market summary, board/industry trends, price anomalies, and more. - Strictly requires the user to configure `ASTOCK_API_KEY` from aipmedia.cn in a `.env` file or as an environment variable before use. - All data retrieval must use the provided TypeScript script via `npx tsx ~/.gemini/skills/a-stock-skill/scripts/api-client.ts`; direct API or curl usage is not allowed. - Detailed instructions and command examples for each supported query are included in the SKILL.md. - Output is always formatted in Markdown tables with unit conversion and succinct financial analysis. - Guides users to resolve missing API key issues without exposing credentials in the chat.
元数据
Slug stock-skill-2
版本 0.1.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

A Stock 是什么?

A股金融数据查询与分析助手。当用户询问任何与A股相关的问题时,使用此技能——包括:查询个股信息、实时行情、分时走势、龙虎榜、行业板块、盘口异动、市场总貌等。触发词包括但不限于:股票、A股、沪市、深市、行情、涨停、跌停、板块、龙虎榜、盘口异动、个股、股价、总市值、证券,或任何带有6位股票代码的查询(如 600519... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 110 次。

如何安装 A Stock?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install stock-skill-2」即可一键安装,无需额外配置。

A Stock 是免费的吗?

是的,A Stock 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

A Stock 支持哪些平台?

A Stock 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 A Stock?

由 wwzzsl(@wwzzsl)开发并维护,当前版本 v0.1.1。

💬 留言讨论