Skip to content

Instantly share code, notes, and snippets.

@ilyannn
Last active February 21, 2026 06:20
Show Gist options
  • Select an option

  • Save ilyannn/72428aa474294afa0d791dfb11f07cf7 to your computer and use it in GitHub Desktop.

Select an option

Save ilyannn/72428aa474294afa0d791dfb11f07cf7 to your computer and use it in GitHub Desktop.
Curated API-focused Agent Skill examples (non-MCP)

🤖 Created by Cursor / gpt-5.2-xhigh, edited by me

API-focused Agent Skill examples

Short, high-quality set of non-MCP skills that primarily act as API usage/docs for real products (auth, endpoints/operations, examples, rate limits, troubleshooting):

What makes these good “API skills” (checklist to copy)

  • Frontmatter triggers: name + a trigger-rich description (“use when…”), so the agent activates the skill at the right time.
  • Prereqs & auth: env vars, tokens, scopes, login checks, and a clear “verify auth first” step.
  • API surface summary: base URL, core resources, endpoint/operation list, and rate limits.
  • Copy-paste workflows: 2–5 common tasks expressed as commands/snippets.
  • Troubleshooting: common errors + fixes (missing scopes, 401s, rate limiting, pagination).
  • Progressive disclosure: keep SKILL.md compact; move deep reference into references/.

Minimal SKILL.md template (copy/paste)

---
name: product-api
description: Use when integrating with ProductX API (auth, endpoints, rate limits, troubleshooting). Triggers: “ProductX API”, “create <resource>”, “list <resource>”, “webhook”, “401”, “rate limit”.
---

# ProductX API

## Prereqs
- Env vars: `PRODUCTX_TOKEN`, `PRODUCTX_BASE_URL`
- Verify auth:
  - `curl -H "Authorization: Bearer $PRODUCTX_TOKEN" "$PRODUCTX_BASE_URL/v1/me"`

## Base URL + Auth
- Base URL: `https://api.productx.com/v1`
- Header: `Authorization: Bearer $PRODUCTX_TOKEN`

## API surface
- Resources: `widgets`, `orders`, `customers`
- Rate limits: `X-RateLimit-*` headers

## Common workflows
1. Create <resource>
2. List/paginate <resource>
3. Update <resource>
4. Webhook verify/parse (if applicable)

## Troubleshooting
- 401: token/scope
- 403: permissions
- 429: backoff and retry
- Pagination: cursors vs offset

Where to put it

  • Under .agents/skills/<your-product-api>/SKILL.md, plus a references/ folder for endpoint details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment