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.
npx skills add hamzabellouch/agent-skills --skill rest-openapi-spec-designgit clone --depth 1 https://github.com/hamzabellouch/agent-skillsWrote 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.
[](https://agentmods.dev/skills/hamzabellouch/agent-skills/rest-openapi-spec-design)<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/rest-openapi-spec-design"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/rest-openapi-spec-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.
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/rest-openapi-spec-design"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/rest-openapi-spec-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.02498 |
| Opus 5.5 | $0.00016 | $0.00999 |
| Sonnet 5.5 | $0.00008 | $0.00500 |
| Haiku 4.5 | $0.00004 | $0.00250 |
Grade A, and why
rest-openapi-spec-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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 331 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RESTful API & OpenAPI 3.1 Specification Design
Overview
This skill provides comprehensive standards and operational patterns for designing contract-first RESTful APIs using the OpenAPI 3.1 Specification (OAS 3.1). It covers clean schema definitions, reusable $ref components, pagination, rate limiting headers, idempotency keys, error contracts (RFC 7807), and automated mock server validation.
1. Contract-First API Design Principles
- Contract-First Workflow: Define the OpenAPI 3.1 schema before writing backend code. Validate requests and responses strictly against the OAS spec using middleware.
- Resource-Oriented Nouns: Use plural nouns for resource endpoints (
/v1/orders,/v1/users/{userId}/invoices). Avoid verbs in URI paths (usePOST /v1/orders/{id}/cancelonly for RPC-style actions when RESTful state update is unsuitable). - HTTP Method Semantics:
GET: Idempotent & safe resource retrieval.POST: Non-idempotent resource creation or action execution.PUT: Idempotent resource replacement (requires full body).PATCH: Idempotent partial resource update (JSON Patch RFC 6902 or JSON Merge Patch RFC 7396).DELETE: Idempotent resource removal.
- Standardized Error Handling (RFC 7807): All API errors must return
application/problem+jsonformatted responses containingtype,title,status,detail, andinstance. - API Versioning: Enforce explicit semantic versioning in the URL path (
/v1/,/v2/) or content negotiation via custom Accept headers (Accept: application/vnd.company.v1+json).
2. API Architecture & Standard Headers
[ Client Application ]
│
│ 1. Request with Bearer Token & Idempotency-Key
▼
[ API Gateway / Reverse Proxy ] ──(Rate Limit Check: X-RateLimit-*)
│
│ 2. Validate Request against OpenAPI Spec
▼
[ Microservice Backend ] ──(RFC 7807 Problem Detail on Failure)
| Standard Header | Direction | Purpose | Example Value |
|---|---|---|---|
Authorization |
Request | Bearer JWT / API Key authentication | Bearer eyJhbGciOiJKV1Qi... |
Idempotency-Key |
Request | Guarantee safe retry execution for POST actions |
7b9e1d2c-8a4f-4e3b-9c2d-1a0e9f8c7b6a |
X-RateLimit-Limit |
Response | Max requests permitted in current window | 1000 |
X-RateLimit-Remaining |
Response | Remaining quota in active window | 984 |
X-RateLimit-Reset |
Response | UTC Epoch seconds when quota resets | 1770000000 |
Content-Type |
Both | Media type payload indicator | application/json / application/problem+json |
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.
- 2mo ago First seen · 331 lines · 40 tokens per session scan A c7fdbf4a6639
rest-openapi-spec-design is a skill published in the GitHub repository hamzabellouch/agent-skills (8 stars, last pushed 22d ago), licensed MIT. It adds 40 tokens to every session and 2,498 once invoked, about $0.0002 per session on Opus 5.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.
rest-openapi-spec-design compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rest-openapi-spec-designhamzabellouch/agent-skills | Skill | 8 | 22d ago | MIT | A | 40 | Claude Code, Codex |
| ubiquitous-languageCodeAlive-AI/ai-driven-development | Skill | 169 | today | MIT | A | 179 | Claude Code |
| laravel-expertGulajavaMinistudio/awesome-copilot-id | Skill | 93 | 11d ago | MIT | A | 15 | Claude Code, Codex |
| api-and-interface-designvinvcn/addyosmani-agent-skills-zh | Skill | 47 | 19d ago | MIT | A | 51 | Claude Code |
| nodejs-codestyleGulajavaMinistudio/awesome-copilot-id | Skill | 93 | 11d ago | MIT | A | 15 | Claude Code, Codex |
| php-laravel-codestyleGulajavaMinistudio/awesome-copilot-id | Skill | 93 | 11d ago | MIT | A | 19 | Claude Code, Codex |
| api-designsawrus/agent-guides | Skill | 19 | 5d ago | MIT | A | 68 | Claude Code, Codex |