Connect your AI Agent (Agent Skill)
A Skill is a manual for the AI: install it once and it already knows which endpoint to call, what units the fields use, and how errors behave — instead of you pasting usage notes every time.
MCP gives the AI tools (it calls them itself); a Skill gives the AI knowledge (how to call, what fields mean, where the traps are). They sit side by side — a client can have both.
| MCP | Skill | |
|---|---|---|
| What it is | A protocol + server | A folder + Markdown |
| What you need | URL + key (a server) | Copy one directory (plain files) |
| What the AI gets | Tools (22, auto-invoked) | Knowledge (endpoints / fields / errors / SDK) |
| Client support | 19 (remote MCP capable) | 45+ (open standard) |
| Best for | AI looks data up in chat | AI writes code / understands fields / unsupported clients |
Install (pick one)
Download the zip and unzip it into your client’s skills directory (next table). Restart the client after installing.
Download ashareapi-skill.zip~20 KB · 5 files · MITReplace `~/.claude/skills` with your client’s directory (see the table below).
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -sL https://ashareapi.com/ashareapi-skill.zip -o s.zip && unzip -oq s.zip && rm s.zipPut `ashareapi/` into your project’s skills directory and commit — everyone who clones the repo gets it.
Client paths
| Client | Global (all projects) | Project (commit to git) |
|---|---|---|
| Claude Code | ~/.claude/skills/ | .claude/skills/ |
| opencode | ~/.config/opencode/skills/ | .opencode/skills/ |
| Cursor | ~/.claude/skills/ | .cursor/skills/ |
| Codex (OpenAI) | ~/.codex/skills/ | .codex/skills/ |
| Antigravity (Google) | ~/.gemini/antigravity/skills/ | .agents/skills/ |
| VS Code / GitHub Copilot | ~/.copilot/skills/ | .github/skills/ |
| WorkBuddy | — | .workbuddy/skills/ |
| DeepSeek Harness (DSH) | ~/.dsh/skills/ | .dsh/skills/ |
`~` is your home directory. Not sure which to use? Either `.claude/skills/` or `.agents/skills/` works — both are "universal" locations read by Claude Code / opencode / Cursor / Antigravity / DeepSeek Harness. Full client list: agentskills.io/clients.
.claude/skills/ · .agents/skills/
More supported clients
The same open standard is supported by these too (45+ in total) — follow each client’s own docs for its paths:
How to confirm it works
After restarting, ask an A-share question (you don’t need to mention the skill):
- What is the price of 600667 right now?
- Show me the last 5 daily candles for 600519
- Which sectors gained the most today?
- Find stocks with PE under 20 and ROE above 15 (needs a key)
The difference: it proactively calls ashareapi endpoints instead of asking you for code — and it knows that "no data" and "fetch failed" are two different things.
What’s inside
Four reference files load on demand (so the AI isn’t flooded up front):
The free endpoints (quote / kline / hot / market overview / breadth) need no key — install and try. Grab a key when you need financials, fund flow or top-trader boards.