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.
npx skills add lukas-grigis/ralphctl --skill ralphctl-api-and-interface-designgit clone --depth 1 https://github.com/lukas-grigis/ralphctlWrote 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.
[](https://agentmods.dev/skills/lukas-grigis/ralphctl/ralphctl-api-and-interface-design)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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.
- 6d ago Changed · -1 lines 900408593534
- 1mo ago First seen · 118 lines · 100 tokens per session scan A d8c7200ee113
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.
ralphctl-api-and-interface-design compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ralphctl-api-and-interface-designlukas-grigis/ralphctl | Skill | 24 | today | MIT | A | 100 | Claude Code, Codex |
| llm-providercaliber-ai-org/ai-setup | Skill | 1.3k | 2mo ago | MIT | A | 100 | Claude Code, Codex |
| tech-designopen-octo/octo-agent | Skill | 162 | today | MIT | A | 109 | Claude Code, Codex |
| codegenAterDev/Perigon.CLI | Skill | 54 | 2d ago | Apache-2.0 | A | 53 | Claude Code, Codex |
| api-interface-designMohitGoyal09/AgentForge | Skill | 67 | 11d ago | MIT | A | 23 | Claude Code, Codex |
| plugin-systemellmos-ai/skills | Skill | 10 | today | MIT | A | 99 | Claude Code, Codex |
| servetrevhud/rote | Skill | 9 | 4d ago | Apache-2.0 | A | 88 | Claude Code |