← Back to Skills Marketplace
wwzzsl

A Stock

by wwzzsl · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ⚠ suspicious
110
Downloads
0
Stars
0
Active Installs
2
Versions
Install in OpenClaw
/install stock-skill-2
Description
A股金融数据查询与分析助手。当用户询问任何与A股相关的问题时,使用此技能——包括:查询个股信息、实时行情、分时走势、龙虎榜、行业板块、盘口异动、市场总貌等。触发词包括但不限于:股票、A股、沪市、深市、行情、涨停、跌停、板块、龙虎榜、盘口异动、个股、股价、总市值、证券,或任何带有6位股票代码的查询(如 600519...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install stock-skill-2
  3. After installation, invoke the skill by name or use /stock-skill-2
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug stock-skill-2
Version 0.1.1
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 2
Frequently Asked Questions

What is A Stock?

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

How do I install A Stock?

Run "/install stock-skill-2" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is A Stock free?

Yes, A Stock is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does A Stock support?

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

Who created A Stock?

It is built and maintained by wwzzsl (@wwzzsl); the current version is v0.1.1.

💬 Comments