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

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.

agentmods
npx agentmods add skills/telus-labs/stagecraft/api-conventions
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00051 $0.01887
Opus 5 $0.00026 $0.00944
Sonnet 5 $0.00010 $0.00377
Haiku 4.5 $0.00005 $0.00189

Measured 4d ago against content hash fe92f2b3765b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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 (6 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 1,887 once invoked, about $0.0003 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

intuitive-preflight

Turn a vague task, plan, issue, or "LGTM/go ahead" request into an approval-ready preflight contract before implementation starts. Use when the user wants prompt preflight, clearer scope, non-goals, context package, acceptance criteria, definition of done, verification, stop gates, the exact execution command, or…

MiaoDX/intuitive-flow · 112 tokens

crypto-report

Get cryptocurrency market data. Get Binance AI analysis report. Get blockchain news updates.

opencue/cuecards · 19 tokens

signal-config

Generates YAML signal configs for agent simulation experiments. Use when the user wants to define what signals to track, how to extract them from run artifacts, and how to aggregate them into experiment-level metrics. Trigger when users say: "generate a signal config", "create signals for my experiment", "I want to…

opencue/cuecards · 120 tokens

sub-agents

Execute external CLI AIs as isolated sub-agents for task delegation, parallel processing, and context separation. Use when delegating complex multi-step tasks, running parallel investigations, needing fresh context without current conversation history, or leveraging specialized agent definitions. Returns structured…

opencue/cuecards · 66 tokens

spec-kitty-mission-system

Understand how Spec Kitty missions work: the 4 built-in mission types, how they define workflows via step contracts and action indices, how missions and work packages relate, how templates are resolved through the 6-tier chain, and how doctrine artifacts (procedures, tactics, directives) compose mission behavior.…

Priivacy-ai/spec-kitty · 160 tokens

goal-framing

Use when the user explicitly sets an Aegis goal with /aegis-goal, Aegis goal:, or asks to define goal, success evidence, stop condition, or task boundaries before work.

GanyuanRan/Aegis · 46 tokens