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,479 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,479 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.01479
Opus 5.5 $0.00040 $0.00592
Sonnet 5.5 $0.00020 $0.00296
Haiku 4.5 $0.00010 $0.00148

Measured 6d ago against content hash 900408593534, 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 6d 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.

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

How it starts

The opening of the file, as written. The whole thing — 117 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 the first step of the task, 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 · 117 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. 6d ago Changed · -1 lines 900408593534
  2. 1mo ago 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,479 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

ralphctl-api-and-interface-design compared with skills from other repositories

ralphctl-api-and-interface-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ralphctl-api-and-interface-designlukas-grigis/ralphctlSkill24todayMITA100Claude Code, Codex
llm-providercaliber-ai-org/ai-setupSkill1.3k2mo agoMITA100Claude Code, Codex
tech-designopen-octo/octo-agentSkill162todayMITA109Claude Code, Codex
codegenAterDev/Perigon.CLISkill542d agoApache-2.0A53Claude Code, Codex
api-interface-designMohitGoyal09/AgentForgeSkill6711d agoMITA23Claude Code, Codex
plugin-systemellmos-ai/skillsSkill10todayMITA99Claude Code, Codex
servetrevhud/roteSkill94d agoApache-2.0A88Claude Code