api-conventions

api-conventions is a skill for Claude Code, Codex from telus-labs/stagecraft. It costs 51 tokens per session (1,887 once invoked), scanned A, original, MIT.

A shared set of rules for designing web APIs, including URL names, HTTP methods, data formats, errors, versions, and page-by-page results.

In plain words
What is it for?
Use it when designing or implementing REST endpoints, including their request and response shapes, status codes, versioning, and pagination.
Why use it?
It helps APIs behave consistently, so clients and reviewers know how requests and responses should be structured.

Skill for Claude CodeCodex

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

Good fit Use it when designing or implementing REST endpoints, including their request and response shapes, status codes, versioning, and pagination.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/telus-labs/stagecraft/api-conventions
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 telus-labs/stagecraft --skill api-conventions
Clone the repo
git clone --depth 1 https://github.com/telus-labs/stagecraft

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-conventions

README.md
[![agentmods](https://agentmods.dev/badge/skills/telus-labs/stagecraft/api-conventions/github.svg)](https://agentmods.dev/skills/telus-labs/stagecraft/api-conventions)
Your own site
<a href="https://agentmods.dev/skills/telus-labs/stagecraft/api-conventions"><img src="https://agentmods.dev/badge/skills/telus-labs/stagecraft/api-conventions/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-conventions

Your own site · 80×15
<a href="https://agentmods.dev/skills/telus-labs/stagecraft/api-conventions"><img src="https://agentmods.dev/badge/skills/telus-labs/stagecraft/api-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,887 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 19
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 149
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 150
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
How audits are shown
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.00051 $0.01887
Opus 5.5 $0.00020 $0.00755
Sonnet 5.5 $0.00010 $0.00377
Haiku 4.5 $0.00005 $0.00189

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

Security

Grade A, and why

api-conventions 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 3mo 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-conventions/SKILL.md · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Conventions

Load this skill when designing or implementing API endpoints. Each rule has a concrete example so reviewers can recognise the shape.

REST Conventions

  • Resources are plural nouns. Actions live on HTTP methods, not in the path.

    GOOD:   GET    /users
            POST   /users
            GET    /users/42
            DELETE /users/42
    
    BAD:    GET    /getUser?id=42
            POST   /createUser
            GET    /user/delete?id=42       # never, ever
    
  • HTTP methods map to actions. Pick one row and stick to it.

    Method Semantics Idempotent Has body?
    GET Read; no side effects yes no
    POST Create (or non-idempotent action) no yes
    PUT Full replace yes yes
    PATCH Partial update usually yes
    DELETE Remove yes (here) no
  • Nested resources express ownership. One level deep is plenty.

    GOOD: GET /users/42/orders
    BAD:  GET /users/42/orders/17/items/3/refunds   # design smell — flatten to /refunds/{id}
    

Request / Response Shape

  • All responses are JSON with Content-Type: application/json; charset=utf-8.

  • Success responses include a data key:

    { "data": { "id": "usr_42", "email": "[email protected]" } }
    
  • Error responses use this exact shape (top-level error object):

    { "error": { "code": "RESOURCE_NOT_FOUND", "message": "User 42 not found" } }
    

    Codes are SCREAMING_SNAKE_CASE strings (machine-readable). The message is human-readable but does not include stack traces, paths, or query fragments. See security-checklist#error-handling.

  • Timestamps are ISO 8601 UTC with the Z suffix:

    GOOD: "2026-03-26T12:00:00Z"
    GOOD: "2026-03-26T12:00:00.123Z"
    BAD:  "2026-03-26 12:00:00"            # not ISO 8601
    BAD:  "2026-03-26T12:00:00+00:00"      # use Z for UTC, not +00:00
    BAD:  1711454400                        # Unix epoch — pick ISO and stick to it
    

Read the full file on GitHub · 166 lines

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. 3mo ago First seen · 166 lines · 51 tokens per session scan A fe92f2b3765b

Subscribe to this mod's changes

api-conventions is a skill published in the GitHub repository telus-labs/stagecraft (7 stars, last pushed 2mo ago), licensed MIT. It adds 51 tokens to every session and 1,887 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.

Related

api-conventions compared with skills from other repositories

api-conventions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
api-conventionstelus-labs/stagecraftSkill72mo agoMITA51Claude Code, Codex
build-teaql-appteaql/teaql-agent-kitSkill2.8k25d agoMITA112Codex
durable-objectsfcakyon/claude-codex-settingsSkill1.2ktodayApache-2.0A22Claude Code
newclacky-ai/openclackySkill1.2ktodayMITA10Claude Code
om-system-extensionopen-mercato/open-mercatoSkill2.0ktodayMITA73Claude Code, Codex
firebaseericrisco/rsc-harnessSkill7093d agoMITA77Claude Code, Codex
backend-builderhashgraph-online/awesome-codex-pluginsSkill1.6k2d agoApache-2.0A43Claude Code, Codex