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 1mo 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 1mo 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. 1mo 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 19d 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

Other skills, from other repositories

build-teaql-app

Build or change a TeaQL application in Java, Rust, Go, Swift, Python, C#/.NET, or TypeScript, including Kotlin/JVM applications that consume Java-generated libraries. Mandatory order: first draft and save a complete KSML model, then verify the client and evaluate that saved model, repair it through repeated evaluation…

teaql/teaql-agent-kit · 112 tokens

new

Create a new project to start development quickly.

clacky-ai/openclacky · 10 tokens

durable-objects

Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.

fcakyon/claude-codex-settings · 22 tokens

workflow-ai-coding

Edit, validate, debug, publish, and inspect ReachAI Workflow drafts through the Workflow AI Coding REST API. Use when asked to create or modify a workflow graph, add/update/delete nodes or edges, validate GraphSpec, dry-run or debug-run a workflow, inspect trace/run output, check release readiness, publish a validated…

w8123/EnterpriseAgentFramework · 85 tokens

om-system-extension

Extend installed Open Mercato modules through UMES enrichers, interceptors, mutation guards, widgets, menus, entity extensions, events, component/page replacements, and overrides. Use for "extend core", "add field/column/action", "hide page", "intercept API", "UMES", or "rozszerz moduł".

open-mercato/open-mercato · 73 tokens

memstack-automation-webhook-designer

Use this skill when the user says 'webhook', 'webhook handler', 'webhook endpoint', 'receive events', 'HMAC verification', 'idempotency', or needs secure webhook handlers with signature verification, retry handling, and dead letter queues. Do NOT use for full n8n workflows or scheduled tasks.

cwinvestments/memstack · 74 tokens