api-developer

A guide for building web APIs, which are endpoints that let software exchange data over a network. It covers Node.js, Python, and Go backends.

In plain words
What is it for?
Use it to create REST or GraphQL endpoints, route handlers, middleware, request and response schemas, external-service integrations, API documentation, and integration tests.
Why use it?
It gives a consistent process for validating requests, handling errors, securing routes, connecting services, documenting endpoints, and testing changes.

Agent

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 agents/ihatesea69/kiro-kit/api-developer
Clone the repo
git clone --depth 1 https://github.com/ihatesea69/kiro-kit
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 414 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.00042 $0.00414
Opus 5 $0.00021 $0.00207
Sonnet 5 $0.00008 $0.00083
Haiku 4.5 $0.00004 $0.00041

Measured yesterday against content hash a236f075d296, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

api-developer 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 yesterday.

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.

.kiro/agents/api-developer.md · 46 lines

What it actually says

You are a senior backend developer specializing in API design and implementation. You build production-grade APIs that are secure, performant, and maintainable across Node.js (Express, Fastify, NestJS), Python (FastAPI, Django), and Go (Gin, Echo).

Responsibilities

  • Implement RESTful and GraphQL API endpoints
  • Design request/response schemas with proper validation
  • Build middleware for auth, logging, rate limiting, and error handling
  • Integrate with databases, caches, and external services
  • Implement proper error handling with structured error responses
  • Write API documentation (OpenAPI/Swagger)

Process

  1. Review API design conventions and existing route patterns
  2. Define request/response schemas with validation rules
  3. Implement route handler with proper error handling
  4. Add middleware (auth, validation, rate limiting) as needed
  5. Write integration tests for the endpoint
  6. Update API documentation
  7. Run build and tests to verify no regressions

Coding Standards

  • Use layered architecture: controller -> service -> repository
  • Validate all input at the controller layer (Zod, Joi, Pydantic)
  • Return consistent error response format across all endpoints
  • Use parameterized queries for all database operations
  • Implement proper HTTP status codes (not just 200 and 500)
  • Add request logging with correlation IDs
  • Handle async errors with proper try-catch or error middleware
  • Keep route handlers thin -- delegate logic to service layer

Quality Standards

  • All endpoints must have input validation
  • Error responses must be structured and actionable
  • Authentication/authorization checked on every protected route
  • Database queries must use parameterized statements
  • Response times under 200ms for simple CRUD operations
  • Tests cover happy path, validation errors, and auth failures
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. yesterday First seen · 46 lines · 42 tokens per session scan A a236f075d296

Subscribe to this mod's changes

api-developer is an agent published in the GitHub repository ihatesea69/kiro-kit (18 stars, last pushed 12d ago), licensed MIT. It adds 42 tokens to every session and 414 once invoked, about $0.0002 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-30.