mk:api-design-principles

mk:api-design-principles is a skill for Claude Code from ngocsangyem/MeowKit. It costs 25 tokens per session (1,704 once invoked), scanned A, original, MIT.

A guide for designing shared interfaces between software components, including REST, GraphQL, RPC, and event-based APIs. An API contract defines the data, errors, permissions, and compatibility rules consumers can rely on.

In plain words
What is it for?
Use it to design or review API schemas, endpoint behavior, pagination, error handling, authorization requirements, deprecation plans, and API documentation.
Why use it?
It helps prevent inconsistent endpoints and breaking changes by checking existing consumers and conventions before proposing a contract.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to design or review API schemas, endpoint behavior, pagination, error handling, authorization requirements, deprecation plans, and API documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ngocsangyem/meowkit/api-design-principles
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 ngocsangyem/MeowKit --skill api-design-principles
Clone the repo
git clone --depth 1 https://github.com/ngocsangyem/MeowKit

Made for: Claude Code.

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 mk:api-design-principles

README.md
[![agentmods](https://agentmods.dev/badge/skills/ngocsangyem/meowkit/api-design-principles/github.svg)](https://agentmods.dev/skills/ngocsangyem/meowkit/api-design-principles)
Your own site
<a href="https://agentmods.dev/skills/ngocsangyem/meowkit/api-design-principles"><img src="https://agentmods.dev/badge/skills/ngocsangyem/meowkit/api-design-principles/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 mk:api-design-principles

Your own site · 80×15
<a href="https://agentmods.dev/skills/ngocsangyem/meowkit/api-design-principles"><img src="https://agentmods.dev/badge/skills/ngocsangyem/meowkit/api-design-principles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,704 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.
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.00025 $0.01704
Opus 5.5 $0.00010 $0.00682
Sonnet 5.5 $0.00005 $0.00341
Haiku 4.5 $0.00003 $0.00170

Measured 10d ago against content hash b489a9c130cd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mk:api-design-principles 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (eval/fixtures/existing-api/src/routes/users.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.claude/skills/api-design-principles/SKILL.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

API Design Principles

Durable interface contracts. Discover the existing contract before proposing a new one.

Ownership

Owner Owns Does NOT own
mk:api-design-principles Interface contract: resource/type/message shape, error and authorization requirements, compatibility and deprecation, consumer discovery Implementation, persistence, security verdict, release
mk:backend-development End-to-end backend change: discovery, classification, service/handler/integration work, wiring the specialists together Contract authorship, schema/SQL, security verdict, deploy
mk:database Data invariants, schema, migration and recovery, query/index evidence, ORM data-access boundary API contract, authorization verdict, infrastructure execution
mk:devops Infrastructure-as-code, containers, CI, runtime config, deployment safety design, rollback planning, incident diagnosis Deploy approval and execution, security verdict, code root-cause, schema semantics

Routing rules — identical in all four skills:

  • Contract-only API question → mk:api-design-principles, even in the middle of a task owned by another skill. "Contract" means what a consumer can observe: field set, error shape, status semantics, pagination, versioning. Extending an endpoint without changing any of those is not a contract change.
  • End-to-end backend change → mk:backend-development, which invokes the API skill only when a new, public, or breaking contract is in scope.
  • A message-based change (event, webhook, RPC) splits: the message contract belongs to mk:api-design-principles; the producer or consumer implementation belongs to mk:backend-development.
  • Schema, migration, query, index, or ORM work → mk:database. No other skill writes a migration or generic SQL.
  • Infrastructure, containers, delivery, or deployment safety → mk:devops.
  • An unscoped performance request is triaged by evidence, never by guess: mk:backend-development locates where the time actually goes, then hands a query or index question to mk:database and a capacity or runtime question to mk:devops. No skill invents the target.
  • Code root cause → mk:investigate. mk:devops owns the operational picture — what changed, where it fails, which signal proves it — and hands the defect over.
  • An auth-sensitive change: the owning skill states the requirement; mk:cso owns the verdict.
  • Any production effect → mk:ship or a human.

Read the full file on GitHub · 142 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago Changed · -12 lines b489a9c130cd
  2. 12d ago Changed · +2 lines · -3 tokens per session ef66bce33c9c
  3. 17d ago Changed · -12 tokens per session cbb422dd3370
  4. 24d ago Changed · -19 tokens per session d75c9bc4e7da
  5. 3mo ago First seen · 152 lines · 59 tokens per session scan A cb8ebbf3b8c6

Subscribe to this mod's changes

mk:api-design-principles is a skill published in the GitHub repository ngocsangyem/MeowKit (18 stars, last pushed 2d ago), licensed MIT. It adds 25 tokens to every session and 1,704 once invoked, about $0.0001 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-09-03.

Related

mk:api-design-principles compared with skills from other repositories

mk:api-design-principles next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mk:api-design-principlesngocsangyem/MeowKitSkill182d agoMITA25Claude Code
api-connector-builderericrisco/rsc-harnessSkill7072d agoMITA80Claude Code, Codex
api-designericrisco/rsc-harnessSkill7072d agoMITA105Claude Code, Codex
api-integration-architectsickn33/agentic-awesome-skillsSkill51ktodayMITA33Claude Code
conducting-api-security-testingxalgorix/xalgorixSkill1.6ktodayApache-2.0A99Claude Code, Codex
api-testing-patternsproffesor-for-testing/agentic-qeSkill539todayMITA34Claude Code
api-design-principles-v2diegosouzapw/awesome-omni-skillsSkill1813d agoMITA69Claude Code, Codex