
API design
Gives agents conventions for designing HTTP/JSON endpoints, errors and pagination
API design is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 8
- Last commit
- License
- MIT
- Listing updated
Similar skills
About API design
This skill sets out a consistent set of rules for HTTP and JSON APIs: how resource paths and HTTP methods are chosen, which status codes to return, and a single error body shape with stable machine-readable codes. It also covers cursor-based pagination, filtering and sorting with allow-listed fields, idempotency keys for retried POSTs, and ETag or version checks for concurrent updates.
The guidance is meant to be applied after the agent looks at a couple of existing endpoints in the repository and matches their style. The rules serve as defaults only where the codebase has no established convention. The skill also gives a backward-compatibility split between additive changes and breaking ones, plus a checklist the agent can run through when adding a new endpoint or reviewing an API contract.
It is a set of written conventions with no scripts. It works with any HTTP/JSON backend and does not depend on a particular language or framework.
When your agent uses it
Conventions for HTTP/JSON APIs built by the factory - resource paths, methods, status codes, one error body shape, cursor pagination, filtering, idempotency keys, versioning, boundary validation and backward-compatibility rules. Use when adding or changing an endpoint, or reviewing an API contract in a spec or PR.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
From a static check of its 1 file (6 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the forgeline plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add Nabwinsaud/forgeline
/plugin install forgeline@forgelineOr copy only this skill to ~/.claude/skills/api-design:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/api-design &&
cp -R "$tmp/skills/api-design" ~/.claude/skills/api-design &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/api-design inside it instead.
Copy the skill folder to ~/.agents/skills/api-design to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/api-design &&
cp -R "$tmp/skills/api-design" ~/.agents/skills/api-design &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/api-design inside it instead.
Copy the skill folder to ~/.cursor/skills/api-design to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/api-design &&
cp -R "$tmp/skills/api-design" ~/.cursor/skills/api-design &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/api-design inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/Nabwinsaud/forgeline.git --path skills/api-designOr copy the folder to ~/.gemini/skills/api-design yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/api-design:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/api-design &&
cp -R "$tmp/skills/api-design" ~/.copilot/skills/api-design &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/api-design inside it instead.
Get the folder:
git clone --depth 1 https://github.com/Nabwinsaud/forgeline.gitThen copy forgeline/skills/api-design into your agent's skills folder as api-design. Agents that support SKILL.md read one folder per skill.
What it does
- Resource path rules
- Guidance on plural nouns, kebab-case paths, sub-resources for actions and nesting depth.
- Status code reference
- A table mapping success, client error and server error situations to the right HTTP codes.
- Standard error body
- One error shape with stable codes, safe messages and field-level details.
- Cursor pagination and filters
- Opaque cursors, limit clamping, stable ordering and allow-listed sorting and filtering.
- Idempotency and concurrency
- Idempotency-Key handling for retried writes and ETag or version checks for updates.
- Backward compatibility checks
- Separates safe additive changes from breaking ones and describes a deprecate-first approach.
Good for
- Design a new orders endpoint with pagination and filtering
- Review an API change in a pull request for breaking changes
- Add idempotency keys to a payment or order creation route
- Standardize error responses across existing endpoints
- Decide whether a field change needs a new API version
API design FAQ
When does API design trigger?
It is meant for adding or changing an endpoint, or reviewing an API contract in a spec or pull request.
Does API design override the conventions already in my repo?
No. The skill says to read existing endpoints first and match them, and applies its rules only where the repo has no established convention.
Does API design include scripts or tools?
No. It consists of a SKILL.md file with written guidance and no scripts.
How do I install API design in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/api-design to use it in all your projects, or to .claude/skills/api-design in one project. Or install the forgeline plugin, which includes it: /plugin marketplace add Nabwinsaud/forgeline, then /plugin install forgeline@forgeline.
Does API design run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use API design?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to API design?
The closest alternatives to API design are API design, Go API design, HTTP semantics, API design edho ferdian and API designer.
Where this comes from
- Description: from the skill's own SKILL.md.
More from Nabwinsaud/forgeline

Records a human approve, reject or retry decision on a paused Forgeline job
- Open source
- 8 GitHub stars
- Developer tools

Gives a read-only reviewer agent a prioritized procedure for checking factory PRs
- Open source
- 8 GitHub stars
- Developer tools

Guides agents through safe Postgres schema changes, backfills and sqlc regeneration
- Open source
- 8 GitHub stars
- Databases

Turns one sentence into a Forgeline job that runs through to a reviewed PR
- Open source
- 8 GitHub stars
- Developer tools

Checks whether your machine and repo are ready to run the Forgeline factory
- Open source
- 8 GitHub stars
- Developer tools

Guides an agent to write and run Playwright end-to-end tests for acceptance criteria
- Open source
- 8 GitHub stars
- Developer tools





