api_design

api_design is a skill for Claude Code, Codex from ahmadrrrtx/xr. It costs 0 tokens per session (81 once invoked), scanned A, original, MIT.

A guide for designing REST or GraphQL APIs, which are interfaces that let software exchange data over defined requests. It covers endpoint structure, inputs, responses, authentication, validation, and errors.

In plain words
What is it for?
Use it to define routes and methods, design request and response payloads, choose status codes, and document access and error rules.
Why use it?
It helps turn a feature request or existing data model into a consistent API contract that other developers can implement and use.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to define routes and methods, design request and response payloads, choose status codes, and document access and error rules.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ahmadrrrtx/xr/api_design
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ahmadrrrtx/xr --skill api_design
Clone the repo
git clone --depth 1 https://github.com/ahmadrrrtx/xr

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for api_design

README.md
[![agentmods](https://agentmods.dev/badge/skills/ahmadrrrtx/xr/api_design/github.svg)](https://agentmods.dev/skills/ahmadrrrtx/xr/api_design)
Your own site
<a href="https://agentmods.dev/skills/ahmadrrrtx/xr/api_design"><img src="https://agentmods.dev/badge/skills/ahmadrrrtx/xr/api_design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for api_design

Your own site · 80×15
<a href="https://agentmods.dev/skills/ahmadrrrtx/xr/api_design"><img src="https://agentmods.dev/badge/skills/ahmadrrrtx/xr/api_design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 81 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00081
Opus 5.5 $0.00000 $0.00032
Sonnet 5.5 $0.00000 $0.00016
Haiku 4.5 $0.00000 $0.00008

Measured 1mo ago against content hash 60b4f3a2f4bd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

api_design scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/api_design/SKILL.md · 13 lines

What it actually says

API Design

  1. Read the feature request / existing models.
  2. Design REST or GraphQL endpoints with methods, paths, payloads, status codes.
  3. Note auth, validation, and error contracts.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 13 lines · 0 tokens per session scan A 60b4f3a2f4bd

Subscribe to this mod's changes

api_design is a skill published in the GitHub repository ahmadrrrtx/xr (6 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 81 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

groq-inference

Ultra-fast LLM inference on custom LPU hardware. OpenAI-compatible API at api.groq.com. Lowest latency in the industry (500-1000+ tok/s). Supports chat completions, vision, audio (Whisper STT + TTS), tool calling, JSON mode, and streaming. Free tier available. Inference only — no training.

synthetic-sciences/openscience · 77 tokens

neuron-laravel-integration

Integrate Neuron AI agents into a Laravel 13 app the framework-native way — setup checklist (App\Neuron layout, config/services.php keys, one migration, NeuronServiceProvider, bootstrap/app.php exception mapping, neuron:evaluate), container-built agents bound per thread with for(), thread authorization, JSON and…

neuron-core/neuron-ai · 236 tokens

neuron-agent

Create, configure, and extend Neuron AI agents in PHP using providers, tools, chat history, memory, and custom workflow nodes. Use for Neuron Agent implementation, configuration, conversation lifecycle, and input/output extensions.

neuron-core/neuron-ai · 48 tokens

image-gen

An image-generation workflow for creating pictures, posters, and illustrations from text prompts, including requests using Qwen-Image or compatible image APIs.

xerrors/Yuxi · 48 tokens

mcp-server-building

Build a connector that lets AI agents use an outside service through well-designed tools (a Model Context Protocol server), in four phases: research, build, test, and prove it with realistic questions.

androoAGI/starnet · 44 tokens

protocolsio-integration

Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io…

synthetic-sciences/openscience · 85 tokens