design-principles

design-principles is a skill for Codex from Agent-Hellboy/mcp-runtime. It costs 113 tokens per session (1,735 once invoked), scanned A, original, Apache-2.0.

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 Codex

Written for Codex: installed under .codex/.

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

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agent-hellboy/mcp-runtime/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 Agent-Hellboy/mcp-runtime --skill design-principles
Clone the repo
git clone --depth 1 https://github.com/Agent-Hellboy/mcp-runtime

Made for: Codex.

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 design-principles

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/agent-hellboy/mcp-runtime/design-principles"><img src="https://agentmods.dev/badge/skills/agent-hellboy/mcp-runtime/design-principles.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00113 $0.01735
Opus 5.5 $0.00045 $0.00694
Sonnet 5.5 $0.00023 $0.00347
Haiku 4.5 $0.00011 $0.00173

Measured 1mo ago against content hash 39cf120f73ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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 methods — GET 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-CRUD — POST /orders/{id}/cancel, POST /payments/{id}/retry as explicit sub-resources.
  11. Model meaningful state transitions — CREATED → 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. 1mo 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 (6 stars, last pushed 26d ago), licensed Apache-2.0. It adds 113 tokens to every session and 1,735 once invoked, about $0.0005 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-08-31.

Related

Other skills, from other repositories

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

api-security

Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication, authorization, rate-limit, and CI/CD testing.

xAmirHamza77/ReverseOps-Skill · 36 tokens

protocol-reverse

Use for authorized reverse engineering of custom binary protocols, Protobuf/gRPC, WebSocket frames, and PCAP-driven protocol recovery.

xAmirHamza77/ReverseOps-Skill · 30 tokens

building-mcp-servers

Use this skill whenever the user wants to design, build, harden, review, or debug an MCP (Model Context Protocol) server — including "build me an MCP server for X", connecting an AI agent/Claude to a database or API, adding tools/resources to an existing MCP server, reviewing a contributor PR against an MCP server, or…

cyberreinxy/mcp-server-skill · 160 tokens

implementing-mcp-resources

Implement new MCP resources and resource templates in the deno-mcp-template project. Provides the exact file structure, type signatures, registration steps, and patterns for static resources, KV-backed resources, resource templates with URI patterns, and subscription-based updates. Use when adding a new resource…

phughesmcr/deno-mcp-template · 76 tokens

api-conventions

House API conventions for the storefront — REST resource shapes, the shared error envelope, and pagination rules.

Tarekkharsa/agentstack · 24 tokens