alapi
ALAPI
Overview
Use this skill to work against the full ALAPI OpenAPI catalog without hand-parsing the schema each time. The skill bundles the raw OpenAPI source, a generated endpoint catalog, an auth guide, and a reusable request script.
Workflow
- Confirm whether
ALAPI_TOKENis available. - If the token is missing, tell the user to request one from
https://apifox.com/apihub/, then ask them to send it back. - After the user sends the token, persist it to the active shell profile, export it in the current session, and avoid echoing it back in logs.
- Use
references/intent-router.mdfirst to map a user request to the most likely endpoint with minimal context cost. - Open
references/api-catalog.mdonly for the exact endpoint you selected. - Use
scripts/alapi_request.pyfor real calls instead of rewriting HTTP boilerplate. - If the OpenAPI source changes, replace
references/openapi-source.jsonand rerunscripts/generate_references.py.
Authentication
- ALAPI uses header auth:
token: $ALAPI_TOKEN - All endpoints in the bundled OpenAPI spec use
POST - All endpoints use
application/jsonrequest bodies - Base URL:
https://v3.alapi.cn
Token Handling
Run printenv ALAPI_TOKEN first.
If the token is missing:
- Tell the user to申请或管理 ALAPI token at
https://apifox.com/apihub/ - Ask the user to send the token
- After receiving it, persist it based on the active shell:
zsh: appendexport ALAPI_TOKEN='...'to~/.zshrcbash: appendexport ALAPI_TOKEN='...'to~/.bashrc
- Also export it in the current shell before making API calls
Do not invent or reuse placeholder tokens for real requests.
References
references/auth-and-usage.md: auth model, calling conventions, error-handling checklistreferences/intent-router.md: lowest-cost full routing table from common intent to endpointreferences/api-catalog.md: endpoint-by-endpoint reference including purpose and request schemareferences/openapi-source.json: bundled ALAPI OpenAPI source of truth
Use rg '^### /api/' references/api-catalog.md to jump to a path quickly.
Scripts
scripts/alapi_request.py: send authenticated ALAPI requests with JSON bodiesscripts/generate_references.py: regenerate the reference markdown files fromreferences/openapi-source.json
Response Discipline
When answering a user with this skill:
- State the selected endpoint path explicitly
- Explain why that endpoint matches the request
- Show the required JSON body fields
- Mention that auth is via
ALAPI_TOKEN - Summarize the API response instead of dumping raw JSON unless the user asks for the full payload
More from wangyendt/wayne-skills
send-email
Send emails via SMTP with support for HTML formatting, file attachments, and email templates. Use when users ask to: (1) Send an email, (2) Email someone, (3) Send a notification, (4) Use email templates, or (5) Send files via email.
228deep-think
Use when user requests deep analysis, thorough thinking, or detailed breakdown of a problem. Triggered by phrases like: 帮我深入思考, 请仔细分析, 帮我详细拆解, 请梳理一下思路, 仔细考虑, 深入理解, 详细分析, or similar expressions indicating need for systematic thinking. The skill applies ReAct-Plan framework: interleaving chain-of-thought reasoning with explicit global planning, dynamic prediction, and reflection to overcome myopic behaviors.
90tutor-math-geometry
|
22proactive-agent
让 AI 助手从「等待任务」变成「主动预见」的架构设计。包含 WAL 协议、Working Buffer、自动定时任务等经过实战验证的模式。
13tutor-general
|
7shell-shortcuts
Configure cross-platform terminal shortcut commands on a new machine, including proxy_on/proxy_off (env vars + git global proxy), goto (persistent path jump shortcuts), gpu (nvidia-smi helper), and optional Conda auto-activation. Use when setting up Windows PowerShell Profile / CMD AutoRun, or adding functions to macOS/Linux shell rc files.
5