ralphctl-api-and-interface-design

ralphctl-api-and-interface-design is a skill for Claude Code, Codex from lukas-grigis/ralphctl. It costs 100 tokens per session (1,461 once invoked), scanned A, original, MIT.

A method for designing any boundary where one part of a system communicates with another, including network endpoints, library exports, command-line options, and file or message formats. It defines inputs, outputs, errors, and validation before implementation.

In plain words
What is it for?
Use it when adding or changing APIs, module boundaries, CLI behaviour, or data formats. It helps identify consumers, define one error model, validate inputs, and avoid unplanned breaking changes.
Why use it?
Unclear or inconsistent interfaces make correct use difficult and can break existing users. A contract-first, additive approach protects current consumers and checks data at the trust boundary.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding or changing APIs, module boundaries, CLI behaviour, or data formats. It helps identify consumers, define one error model, validate inputs, and avoid unplanned breaking changes.

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

Made for: Claude Code, 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 ralphctl-api-and-interface-design

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lukas-grigis/ralphctl/ralphctl-api-and-interface-design"><img src="https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/ralphctl-api-and-interface-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,461 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.00100 $0.01461
Opus 5.5 $0.00040 $0.00584
Sonnet 5.5 $0.00020 $0.00292
Haiku 4.5 $0.00010 $0.00146

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

Security

Grade A, and why

ralphctl-api-and-interface-design 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.

src/integration/ai/skills/bundled/ralphctl-api-and-interface-design/SKILL.md · 118 lines

How it starts

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

API and Interface Design

Adapted from addyosmani/agent-skills — "API and Interface Design" (MIT). Adapted for ralphctl's harness contract.

Good interfaces make the right use easy and the wrong use hard. This applies to every surface where one piece of code talks to another: a network API, a library's exports, a module boundary inside one repository, a CLI's flags and exit codes, a file or message format. The guidance is language-neutral — express it in the project's own idiom and with its own typing or schema mechanism.

When this applies

  • Plan — when a ticket adds or changes an interface, make the contract its own task or the first step of one, and put its shape in the verification criteria: inputs, outputs, error cases, and what existing consumers must keep seeing. Name who consumes the interface today.
  • Execute — define the contract before the body, and check every change to an existing interface against its current consumers before making it. When reviewing, a breaking change the task did not ask for is a finding even when the new code is correct.

Every observable behaviour is a commitment

Hyrum's law: with enough consumers, everything observable gets depended on — field order, error message text, default values, timing, undocumented quirks. So:

  • Expose deliberately. Anything a caller can observe is something you may have to keep.
  • Keep implementation details out of the interface — storage ids, internal layout, stack traces in errors.
  • Tests are necessary but not sufficient: a "safe" change still breaks a consumer that relies on behaviour no test pins. Search for real consumers before changing what they can see.

Core principles

Contract first

Write the interface — names, input and output shapes, error cases, invariants — before the implementation. The contract is the spec; the body follows it. Separate what a caller provides from what the system returns: generated fields (ids, timestamps) appear only in the output shape.

Read the full file on GitHub · 118 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. yesterday First seen · 118 lines · 100 tokens per session scan A d8c7200ee113

Subscribe to this mod's changes

ralphctl-api-and-interface-design is a skill published in the GitHub repository lukas-grigis/ralphctl (24 stars, last pushed today), licensed MIT. It adds 100 tokens to every session and 1,461 once invoked, about $0.0004 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-10-18.

Related

Other skills, from other repositories

llm-provider

Adds a new LLM provider implementing LLMProvider interface with call() and stream() methods. Integrates with provider factory in src/llm/index.ts, config detection in src/llm/config.ts, and error handling via tracking and recovery. Use when adding a new model backend, integrating a third-party LLM API, or extending…

caliber-ai-org/ai-setup · 100 tokens

tech-design

A guided process for writing a backend technical design from a product requirements document or feature description. A technical design explains how a feature should work in code and services.

open-octo/octo-agent · 109 tokens

api-interface-design

Use when designing public APIs, module boundaries, provider adapters, tool schemas, or data contracts.

MohitGoyal09/AgentForge · 23 tokens

plugin-system

Generic plugin system for Python applications. Auto-discovery, validation, fault tolerance. Zero dependencies (Python stdlib only).

ellmos-ai/skills · 27 tokens

codegen

Use for .NET code generation work with Roslyn, Microsoft.OpenApi, Razor templates, DTO/manager/controller generation, REST API generation, C# HttpClient generation, Angular/Axios TypeScript request clients, generated formatting, and deterministic output.

AterDev/Perigon.CLI · 53 tokens

serve

Wire a compiled rote pipeline up as an MCP tool so Claude can trigger the deployed workflow directly. Use when the user says "register my compiled pipeline", "serve my pipelines over MCP", "trigger the workflow from Claude", "hook the pipeline up to Claude", or asks what to do after rote compile and deployment. Covers…

trevhud/rote · 88 tokens