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 j4flmao/agent-skills --skill api-responsegit clone --depth 1 https://github.com/j4flmao/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/j4flmao/agent-skills/api-response)<a href="https://agentmods.dev/skills/j4flmao/agent-skills/api-response"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/api-response/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/j4flmao/agent-skills/api-response"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/api-response.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00059 | $0.05454 |
| Opus 5.5 | $0.00024 | $0.02182 |
| Sonnet 5.5 | $0.00012 | $0.01091 |
| Haiku 4.5 | $0.00006 | $0.00545 |
Grade A, and why
backend-api-response 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 16d 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 — 660 lines — stays where its author put it; the contents beside it link to each section on GitHub.
API Response Design
Purpose
Define and enforce a universal API response contract with standardized envelopes, error codes, and pagination. Every response must be predictable regardless of success or failure.
Agent Protocol
Trigger
User request includes: api response, response envelope, response<T>, api error, exception handling, error code, api contract, pagination response, api standard.
Input Context
- Current API response format (if refactoring)
- Technology stack (language/framework)
- Error handling strategy (exceptions, result types, error codes)
- Pagination requirements
Output Artifact
A markdown document containing:
- Response envelope structure (Response with status, data, error, metadata)
- Error response format (error code, message, details, trace ID)
- Exception handling strategy (global handler, middleware, filter)
- Pagination envelope (page, pageSize, totalCount, totalPages)
- Validation error format (field-level errors)
- Success response rules (HTTP status codes per operation)
Response Format
Produce the artifact directly. No preamble, no postamble, no explanations. No filler, no hedging, no transitions. Strip articles a/an/the where unambiguous. Compress output. If response format already standardized, output API response standard already defined at: [path]. and stop.
Completion Criteria
- Envelope structure defined for success, error, validation, pagination
- Exception-to-response mapping defined for all common exception types
- HTTP status code mapping defined per operation type
- Pagination contract defined with required/optional fields
Max Response Length
4096 tokens
Architecture Decision Trees
Response Envelope Style
What is the primary client type?
├── Browser SPA / Mobile app
│ ├── Need minimal payload overhead?
│ │ ├── Yes → Wrapper envelope (success+data+error+meta)
│ │ └── No → Standard envelope with full metadata
│ └── Need GraphQL-style flexibility?
│ ├── Yes → Single endpoint with error array pattern
│ └── No → RESTful per-endpoint envelope
├── Service-to-service (internal)
│ ├── Use OpenAPI-generated clients?
│ │ ├── Yes → Full envelope with requestId for tracing
│ │ └── No → Result type pattern (monads/railway)
└── Third-party / Public API
├── Use standard envelope with domain-prefixed error codes
└── Include rate limit headers in every response
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/api-response-advanced.md 3.1 KB
- references/api-response-compression.md 2.9 KB
- references/api-response-formats.md 2.3 KB
- references/api-response-fundamentals.md 2.3 KB
- references/api-response-testing.md 5.0 KB
- references/api-response-validation.md 5.0 KB
- references/client-api-calls.md 27 KB
- references/error-handling-patterns.md 7.5 KB
- references/response-envelope.md 5.9 KB
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.
- 16d ago Changed · +1 lines · -18 tokens per session 2de4d33dd0f9
- 17d ago Changed e57c757d3eff
- 1mo ago Changed 082987b3034d
- 3mo ago First seen · 659 lines · 77 tokens per session scan A 1abdead84888
backend-api-response is a skill published in the GitHub repository j4flmao/agent-skills (47 stars, last pushed 17d ago), licensed MIT. It adds 59 tokens to every session and 5,454 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-30.
backend-api-response compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| backend-api-responsej4flmao/agent-skills | Skill | 47 | 17d ago | MIT | A | 59 | Claude Code, Codex |
| APIMonbytesagain/ai-skills | Skill | 16 | 7mo ago | none | A | 28 | Claude Code, Codex |
| nestjs-api-standardsFilippoDeSilva/skills | Skill | 2 | 5mo ago | none | A | 39 | Claude Code, Codex |
| fastapifastapi/fastapi | Skill | 105k | yesterday | MIT | A | 57 | Claude Code, Codex |
| api-integration-architectsickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 33 | Claude Code |
| mirrord-replaymetalbear-co/mirrord | Skill | 5.4k | today | MIT | A | 98 | Claude Code |
| dmrwemake-services/django-modern-rest | Skill | 1.6k | yesterday | MIT | A | 80 | Claude Code, Codex |