ralphctl-codebase-design

ralphctl-codebase-design is a skill for Claude Code, Codex from lukas-grigis/ralphctl. It costs 80 tokens per session (1,075 once invoked), scanned A, original, MIT.

A set of design rules for organising code into modules with small interfaces and clear boundaries. An interface is the part callers must know to use a module; a seam is a boundary where behaviour can vary or be tested.

In plain words
What is it for?
Use it when planning modules, interfaces, abstractions, or changes that split responsibilities. It helps decide where variation belongs and whether a new layer earns its place.
Why use it?
It helps prevent pass-through layers, scattered behaviour, and abstractions that add work without hiding useful complexity. Clear boundaries make code easier to maintain and test.

Skill for Claude CodeCodex

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

Good fit Use it when planning modules, interfaces, abstractions, or changes that split responsibilities. It helps decide where variation belongs and whether a new layer earns its place.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lukas-grigis/ralphctl/ralphctl-codebase-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-codebase-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-codebase-design

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/lukas-grigis/ralphctl/ralphctl-codebase-design"><img src="https://agentmods.dev/badge/skills/lukas-grigis/ralphctl/ralphctl-codebase-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,075 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.00080 $0.01075
Opus 5.5 $0.00032 $0.00430
Sonnet 5.5 $0.00016 $0.00215
Haiku 4.5 $0.00008 $0.00108

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

Security

Grade A, and why

ralphctl-codebase-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-codebase-design/SKILL.md · 83 lines

How it starts

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

Codebase Design

Adapted from mattpocock/skills — "Codebase Design" (MIT). Adapted for ralphctl's harness contract.

Design deep modules: a lot of behaviour behind a small interface, placed at a clean seam, testable through that interface. The aim is leverage for callers, locality for maintainers, and testability for everyone. Reason with the vocabulary below; in code and in signals, keep the project's own terms when it has established ones.

When this applies

  • Plan — when splitting work, prefer tasks that deepen one module behind a small interface over tasks that spread one concept across several shallow ones. When a task introduces a seam, name it in the steps along with what varies across it.
  • Execute — whenever you add a module, an interface, or an abstraction. When reviewing, apply the deletion test and the one-adapter rule below to every new layer.

Vocabulary

  • Module — anything with an interface and an implementation, at any scale: a function, a type, a package, a slice spanning several layers.
  • Interface — everything a caller must know to use the module correctly: the type signature, plus its invariants, ordering constraints, error modes, required configuration, and performance characteristics.
  • Implementation — the code inside the module.
  • Depth — leverage at the interface: how much behaviour a caller or test can exercise per unit of interface it has to learn. Deep when much sits behind little; shallow when the interface is nearly as complex as what it hides.
  • Seam (Michael Feathers) — a place where behaviour can be altered without editing in that place; the location where a module's interface lives. Where to put the seam is its own decision.
  • Adapter — a concrete thing that satisfies an interface at a seam. It names a role, not a size.
  • Leverage — what callers gain from depth: more capability per thing they learn.
  • Locality — what maintainers gain from depth: change, bugs, and knowledge concentrated in one place. Fix once, fixed everywhere.

Read the full file on GitHub · 83 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 · 83 lines · 80 tokens per session scan A ea90c71c5987

Subscribe to this mod's changes

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

save-learning

Saves user instructions as persistent learnings for future sessions. Use when the user says 'remember this', 'always do X', 'from now on', 'never do Y', or gives any instruction they want persisted across sessions. Proactively suggest when the user states a preference, convention, or rule they clearly want followed in…

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

review

Review local code changes for bugs, regressions, missing tests, and pragmatic improvements. Use when the user asks to review the current changes from git status, or to review a specific backlog task by id such as task-65 or TASK-65. Also trigger when the user says things like "review", "review current changes", "check…

devoxx/DevoxxGenieIDEAPlugin · 90 tokens

web-access

A method for handling difficult web tasks across search, page fetching, and a real browser. It covers sites that need login sessions, dynamic pages, anti-bot handling, or exploration before their structure is understood.

open-octo/octo-agent · 139 tokens

skill-creator

A skill for creating or improving reusable instructions for an agent. It covers capturing the intended workflow, writing a draft, testing it, and refining its trigger description.

open-octo/octo-agent · 123 tokens

repo

Repository operating rules for verified Mythos edits.

thewaltero/mythos-router · 11 tokens

ce-work

Execute a plan or concrete work prompt end-to-end. Use when implementing from docs/plans, a spec path, or a clear build request; use ce-debug for open-ended bugs.

elleryfamilia/loadout · 40 tokens