rest-api-architect

rest-api-architect is a skill for Claude Code, Codex from vivek-viswanat/dev-arsenal. It costs 21 tokens per session (482 once invoked), scanned A, original, MIT.

A design and review skill for resource-oriented REST APIs, which let software exchange data over HTTP using endpoints and methods such as GET and POST.

In plain words
What is it for?
Use it to design endpoints, review OpenAPI 3.1 files, or generate implementation plans from an API contract.
Why use it?
It provides consistent rules for naming resources, describing API fields, choosing HTTP methods, and assigning response codes.

Skill for Claude CodeCodex

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

Good fit Use it to design endpoints, review OpenAPI 3.1 files, or generate implementation plans from an API contract.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vivek-viswanat/dev-arsenal/rest-api-architect
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 vivek-viswanat/dev-arsenal --skill rest-api-architect
Clone the repo
git clone --depth 1 https://github.com/vivek-viswanat/dev-arsenal

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 rest-api-architect

README.md
[![agentmods](https://agentmods.dev/badge/skills/vivek-viswanat/dev-arsenal/rest-api-architect/github.svg)](https://agentmods.dev/skills/vivek-viswanat/dev-arsenal/rest-api-architect)
Your own site
<a href="https://agentmods.dev/skills/vivek-viswanat/dev-arsenal/rest-api-architect"><img src="https://agentmods.dev/badge/skills/vivek-viswanat/dev-arsenal/rest-api-architect/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 rest-api-architect

Your own site · 80×15
<a href="https://agentmods.dev/skills/vivek-viswanat/dev-arsenal/rest-api-architect"><img src="https://agentmods.dev/badge/skills/vivek-viswanat/dev-arsenal/rest-api-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 482 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.00021 $0.00482
Opus 5 $0.00010 $0.00241
Sonnet 5 $0.00004 $0.00096
Haiku 4.5 $0.00002 $0.00048

Measured 8d ago against content hash f8d27ac265fb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

rest-api-architect 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 8d 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/rest-api-architect/SKILL.md · 42 lines

What it actually says

Context

Use this skill when:

  1. Designing new API endpoints or resources.
  2. Reviewing existing OpenAPI (swagger.yaml/json) files.
  3. Generating boilerplate code from an API contract.

Design Principles

1. Resource-First Naming

  • Nouns Only: Use /users, not /getUsers. Actions are defined by HTTP methods.
  • Plurality: Use plural nouns for collections (/orders) and IDs for instances (/orders/{id}).
  • Case: All paths MUST be kebab-case and lowercase.

2. Semantic HTTP Methods

  • GET: Idempotent retrieval. No side effects.
  • POST: Create a new resource or trigger a non-idempotent action.
  • PUT: Full replacement of a resource (Idempotent).
  • PATCH: Partial update (Preferred over PUT for performance).
  • DELETE: Remove a resource.

3. Standardization (OpenAPI 3.1)

  • OperationId: Every operation must have a unique, camelCase operationId (e.g., listUsers).
  • Descriptions: Every parameter, property, and response must have a description field for AI discoverability.
  • Status Codes: - 201 Created for successful POSTs.
    • 422 Unprocessable Entity for validation errors (Standard in 2026).
    • 429 Too Many Requests for rate-limiting.
  • Error Format: Follow RFC 9457 (Problem Details for HTTP APIs).

4. Collection Handling

  • Pagination: Use cursor-based pagination for large datasets.
  • Filtering: Use query parameters (e.g., /products?category=tech).
  • Sorting: Use a standardized sort parameter (e.g., ?sort=-created_at).

Instructions for the Agent

  • When asked to "create an endpoint," first define the Path, then the Request Schema, then the Success/Error Responses.
  • Always use $ref to keep schemas modular and reusable in components/schemas.
  • Ensure all Date/Time fields use format: date-time (ISO 8601).
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. 8d ago First seen · 42 lines · 21 tokens per session scan A f8d27ac265fb

Subscribe to this mod's changes

rest-api-architect is a skill published in the GitHub repository vivek-viswanat/dev-arsenal (4 stars, last pushed 5mo ago), licensed MIT. It adds 21 tokens to every session and 482 once invoked, about $0.0001 per session on Opus 5. 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

muapi-platform

Setup and utility scripts for muapi.ai — configure API keys, test connectivity, and poll for async generation results.

SamurAIGPT/Generative-Media-Skills · 26 tokens

agentsop-http-tool-wrapping

Decision protocol for wrapping a REST / GraphQL / RPC API as a tool an LLM agent can call. The load-bearing premise: the tool surface is an LM-friendly subset of the API surface — one tool per user intent, not one per endpoint. Activates when a coder agent must expose an external HTTP API to a model (function calling…

agentsope/SkillAlchemy · 155 tokens

agentsop-streaming-output

Enhancement-overlay decision protocol for STREAMING the output of long-running LLM / agent runs from the backend, not just wiring a typing animation in the UI. Activates when a coder agent must stream final tokens to a chat client, surface intermediate agent steps (which tool, which node, partial reasoning), emit…

agentsope/SkillAlchemy · 140 tokens

inkbox-agent-self-signup

Use when guiding or implementing the Inkbox agent self-signup flow, including verification, resend-verification, signup restrictions, and optional signup fields like agent handles or mailbox local parts.

inkbox-ai/inkbox · 43 tokens

binance-spot-openapi-skill

Operate Binance Spot market, account, and order APIs through UXC with a curated OpenAPI schema, Binance query signing, and separate mainnet/testnet link flows.

holon-run/uxc · 42 tokens

discord-openapi-skill

Operate Discord HTTP API through UXC with Discord OpenAPI schema. Bot token recommended for full API access including messages and server management. OAuth2 user authentication available for limited profile operations only.

holon-run/uxc · 43 tokens