design-principles

A set of design rules for APIs, command-line interfaces, Kubernetes resources, gateways, and MCP tools.

In plain words
What is it for?
It is for reviewing resource names, HTTP methods and status codes, request and response formats, permissions, validation, idempotency, logging, and other system design decisions. An API is an interface that software uses to communicate.
Why use it?
It helps teams make interfaces predictable, secure by default, easier to change, and easier to diagnose.

Skill for Claude CodeCodex

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 skills/agent-hellboy/mcp-runtime/design-principles
Any agent
npx skills add Agent-Hellboy/mcp-runtime --skill design-principles
Clone the repo
git clone --depth 1 https://github.com/Agent-Hellboy/mcp-runtime

Made for: Claude Code, Codex.

Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,735 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.00113 $0.01735
Opus 5 $0.00056 $0.00868
Sonnet 5 $0.00023 $0.00347
Haiku 4.5 $0.00011 $0.00173

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

Security

Grade A, and why

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 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.

.codex/skills/design-principles/SKILL.md · 77 lines

How it starts

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

Design Principles

Apply these when designing or reviewing anything with a contract or a trust boundary in MCP Runtime: REST/JSON-RPC APIs, CRD shapes (api/v1alpha1), CLI flags, operator reconciliation, the gateway pipeline, Sentinel services, and MCP tool surfaces. Prefer these over ad-hoc choices; when two are in tension, make the tradeoff explicit (see Make tradeoffs explicit).

One-line north star:

Good design makes the right thing easy, the wrong thing hard, and future change less painful.

API design (the 12)

  1. RESTful resource naming — nouns, not verbs. GET /users/{id}, not GET /getUser.
  2. Simple, predictable URLs — guessable paths. /users/{id}/orders, not /fetchAllOrdersForUser.
  3. Correct HTTP methodsGET read, POST create, PUT full update, PATCH partial, DELETE delete.
  4. Proper status codes — 200/201, 400/401/403/404/409, 500. Don't return 200 with an error body.
  5. Consistent request/response shape — predictable JSON envelope ({ "data": …, "error": … }).
  6. Clear, coded errors{ "code": "INVALID_EMAIL", "message": "…", "field": "email" }, never just "failed".
  7. Filtering, sorting, pagination on list APIs — ?status=active&sort=created_at&page=1&limit=20. Never return everything.
  8. Don't abuse query params for identity — prefer nested paths (/users/123/orders) over ?user_id=123 for core relationships.
  9. Version your APIs/api/v1/… so breaking changes don't break old clients.
  10. Clear actions for non-CRUDPOST /orders/{id}/cancel, POST /payments/{id}/retry as explicit sub-resources.
  11. Model meaningful state transitionsCREATED → PAID → SHIPPED → DELIVERED; reject invalid jumps.
  12. Security from the start — authN (who are you), authZ (what may you do), rate limiting, input validation, no sensitive-data leaks.

API design is about resources, behavior, state, errors, security, and future compatibility — not just endpoints.

System / generic design principles

Read the full file on GitHub · 77 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. 2d ago First seen · 77 lines · 113 tokens per session scan A 39cf120f73ec

Subscribe to this mod's changes

design-principles is a skill published in the GitHub repository Agent-Hellboy/mcp-runtime (5 stars, last pushed 8d ago), licensed Apache-2.0. It adds 113 tokens to every session and 1,735 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

local-frontend-check

Smoke-test or verify UI behaviour on the local Jarvis Registry frontend running at http://localhost/gateway. Use for manual regression checks, bug-fix verification, and end-to-end confirmation of specific flows without running the automated test suite.

ascending-llc/jarvis-registry · 52 tokens

release-notes

Create release notes for a new version tag. Gathers all commits, PRs, issues fixed, and breaking changes since a previous release. Creates the release notes markdown file, tags the repo, and pushes. Asks the user to confirm the base version to diff against.

agentic-community/mcp-gateway-registry · 59 tokens

agentcore-register

Given an MCP server URL, probe the server via curl to discover its metadata and tools, then generate a markdown file with copy-pasteable content for each field in the Amazon Bedrock AgentCore "Create record" form.

agentic-community/mcp-gateway-registry · 49 tokens

debug

Debug issues in the MCP Gateway Registry using first-principles thinking. Invoke when something is broken, timing out, returning errors, or behaving unexpectedly. Forces structured root-cause analysis before any code change is proposed.

agentic-community/mcp-gateway-registry · 45 tokens

search-benchmark

Generate a search quality benchmark for the AI Registry. Generates ground truth from the registry's assets, runs 100+ queries against the semantic search API, evaluates results using NDCG@10/MRR/Recall, and produces a markdown report. Use when you want to measure search quality after changes to the scoring algorithm…

agentic-community/mcp-gateway-registry · 75 tokens

benchmark-report

Generate a benchmark report from stress test results (registration, API performance, search concurrency). Reads JSON result files and produces a markdown report suitable for docs/benchmarks/.

agentic-community/mcp-gateway-registry · 36 tokens