Api patterns

From Anhvu1107/all-agent-skill · View interactive version

Api patterns is an AI agent skill from the GitHub repository Anhvu1107/all-agent-skill. ALWAYS use this when the task involves API shape, contracts, auth, versioning, response structure, error handling, or service boundary design.

How to use this skill

Skill file

API Patterns

Selective Reading Rule

Start with:

Then load only the inherited docs, scripts, assets, or examples that match the user's actual task.

Selective Reading Rule

Start with:

Start with the file that answers the current design question:

Purpose

Choose an API style that fits the consumers, the team, and the product boundary.

An API is a contract. Changing it later is expensive, so design for clarity and operational reality early.

Use This Skill When

Core Workflow

  1. Identify the consumers.
  1. Choose the transport and contract style.
  1. Define resource or procedure boundaries.
  2. Standardize responses.
  1. Decide control concerns.
  1. Document the contract in a way implementation can follow.

Heuristics

Review Questions

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.