API Gateway Integration Routing
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @zcwl/api-gateway.
About this skill
Problem
In agent workflows, teams often need to operate across multiple third-party APIs: listing Slack channels, reading Gmail, or querying Stripe customers. Each integration brings its own auth state, connection management, event listening, and write-side risk. Manually managing connections and token state is easy to botch, while silent write operations can cause irreversible side effects.
How It Works And Where It Stops
This skill routes those calls through a hosted gateway at https://api.maton.ai/, giving one entry point for apps such as Slack, Gmail, and Stripe. Key capabilities include:
- Connection management: create, list, fetch, and delete connections, with
--connectionused to target a specific account. - Read-first flow: run
GETfirst to verify account, resource, and state before proposing changes. - Write approval: before
POST,PUT,PATCH, orDELETE, show the connection ID, endpoint, request body, and expected result, then wait for explicit approval. - Triggers and checkpoints: listen for events and replay them; after interruption, resume from the last processed event to avoid duplicate side effects.
- Multiple call styles:
maton CLI, JavaScriptfetch, and Pythonrequestsare supported.
A practical flow starts with auth verification, then lists connections and runs read-only checks. For high-risk actions such as sending messages, deleting records, changing billing, or creating Webhook flows, confirm external impact step by step. It does not replace private API proxies, OAuth server deployment, or API key distribution, requires MATON_API_KEY, and is subject to account rate limits.
Use Cases
- Use an agent to list public Slack channels by validating the connection and running a read-only GET request.
- Create a Gmail trigger that listens for new mail and posts Slack notifications, with checkpointing to avoid duplicates.
- Query Stripe customers through the gateway and filter out delinquent accounts with a jq condition.
- Before changing Salesforce records, run a read-only SOQL query and ask for explicit approval with endpoint and payload.
Best For
- Agent developers using Claude Code or Cursor to call Slack, Gmail, or Stripe services.
- Automation engineers managing third-party OAuth connections while preventing unapproved writes.
- Operations engineers building Gmail trigger workflows that forward mail events to Slack.
- Integration engineers validating connections and read-only resources before Stripe or Salesforce changes.
Related Skills
Collects daily conversations, task logs, and errors, then runs a nine-module review to surface blind spots, generate actions, and update memory.
Local long-term memory for AI agents that appends key facts and daily logs, supports cross-session context and search recall, and auto-archives old diaries to gzip files.
Run a grilling session to interact with or test AI agents.
A systematic prompt optimization skill that refines prompts using a four-step distillation framework (diagnose, structure, think, compress) and methodologies from four prompting masters.