api

A command for designing or reviewing REST APIs, which are web interfaces that let software exchange data using standard HTTP requests.

In plain words
What is it for?
Use it to define resources and operations, map them to HTTP methods, specify request and response schemas, document an OpenAPI specification, and plan validation, pagination, filtering, or versioning.
Why use it?
It helps make URLs, data formats, errors, authentication, and documentation consistent for frontend, mobile, and third-party clients.

Command

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 commands/srstomp/pokayokay/api
Clone the repo
git clone --depth 1 https://github.com/srstomp/pokayokay
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 355 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.00007 $0.00355
Opus 5 $0.00003 $0.00178
Sonnet 5 $0.00001 $0.00071
Haiku 4.5 $0.00001 $0.00036

Measured 2d ago against content hash 6a0c176064e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

api 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 2d 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.

plugins/pokayokay/commands/api.md · 60 lines

What it actually says

API Design Workflow

Design or review API for: $ARGUMENTS

Steps

1. Understand Requirements

  • What data/operations are needed?
  • Who are the consumers (frontend, mobile, third-party)?
  • Performance/scale requirements?

2. Design Resources

  • Identify nouns (resources)
  • Define URL structure
  • Map CRUD to HTTP methods

3. Define Contracts

  • Request schemas
  • Response schemas
  • Error responses

4. Document

  • OpenAPI/Swagger spec
  • Example requests/responses
  • Authentication requirements

5. Create Implementation Tasks

npx @stevestomp/ohno-cli create "Implement [endpoint]" -t feature

Covers

  • Resource identification and URL structure
  • HTTP methods and status codes
  • Request/response contracts
  • Error handling and validation
  • OpenAPI documentation
  • Pagination, filtering, versioning
  • /pokayokay:arch - Broader architecture review
  • /pokayokay:work - Implement designed API
  • /pokayokay:audit --dimension security - Security review of API

Skill Integration

When API design involves:

  • Database changes → Also load database-design skill
  • Security concerns → Also load security-audit skill
  • CI/CD pipeline → Also load ci-cd for deployment
  • Monitoring needs → Also load observability skill
  • Third-party APIs → Consider /pokayokay:integrate instead
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. 2d ago First seen · 60 lines · 7 tokens per session scan A 6a0c176064e0

Subscribe to this mod's changes

api is a command published in the GitHub repository srstomp/pokayokay (9 stars, last pushed 1mo ago), licensed MIT. It adds 7 tokens to every session and 355 once invoked, about $0.0000 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.