kok-o/contextos-agents/api-design

Claude Code and agent skill by kok-o/contextos-agents

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Design or review API contracts, compatibility, validation, errors,

Install

npx vskill@latest install kok-o/contextos-agents/api-design

SKILL.md

The same SKILL.md was published earlier as kok-o/contextos-agents/api-design.

api-design

Overview

Design or review API contracts, compatibility, validation, errors, pagination and retry-safe operations. Match guidance to the actual task and project; this document does not implement an automatic enforcer.

When to Use

An API or interface contract is being introduced, changed or reviewed. A small endpoint fix does not require redesigning the whole service.

Rules & Patterns

Inspect actual consumers, existing conventions, authentication and versioning before changing a contract. Preserve compatible behavior or describe the deliberate migration required by the task. REST, RPC, events and framework-native actions are choices tied to consumers.

Define accepted input, output, ownership and failure cases. Validate untrusted fields at the boundary and authorize the requested object before protected reads or writes. Do not confuse a valid schema with permission. Use the project's established error envelope without exposing secrets or internal stack traces.

Choose pagination and ordering that remain stable for the data and workload. Bound expensive requests. For retried mutations, define key scope, request identity, concurrency, persistence and replay behavior where duplicate effects matter; a check-then-write in memory is not a concurrency-safe idempotency design.

Keep public names and identifiers useful to clients; internal implementation details are exposed only when intentionally part of the contract. Do not change HTTP status codes, field names or error semantics just to match a preferred style.

Code Examples

For a retried payment request, scope the idempotency key to the authorized caller and operation, bind it to the request, and commit the effect and replay record atomically using the existing storage boundary. A read-only catalog endpoint needs pagination and cache semantics, not the same mutation protocol.

See EXAMPLES.md for scoped scenarios and evidence boundaries.

Validation Checklist

  • [ ] Exercise allowed and denied callers, invalid input and the existing consumer contract.
  • [ ] Check ordering, pagination boundaries and duplicate/concurrent requests when relevant.

Common Mistakes

Inventing an API standard that breaks clients; trusting client tenant IDs; treating a local Map as durable idempotency; generating an unused schema without wiring its caller.

Integration Notes

Optional companion guidance: security, testing, system-design. Use it only when relevant and available; the skill does not install tools or authorize external actions.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
10
Repository forks
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kok-o/contextos-agents/api-design/badge)](https://verified-skill.com/skills/kok-o/contextos-agents/api-design)

Something wrong with this skill or its page? Tell us.