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 xbklairith/kisune --skill codebase-designgit clone --depth 1 https://github.com/xbklairith/kisuneWrote 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/xbklairith/kisune/codebase-design)<a href="https://agentmods.dev/skills/xbklairith/kisune/codebase-design"><img src="https://agentmods.dev/badge/skills/xbklairith/kisune/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.
<a href="https://agentmods.dev/skills/xbklairith/kisune/codebase-design"><img src="https://agentmods.dev/badge/skills/xbklairith/kisune/codebase-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.00050 | $0.00825 |
| Opus 5.5 | $0.00020 | $0.00330 |
| Sonnet 5.5 | $0.00010 | $0.00165 |
| Haiku 4.5 | $0.00005 | $0.00082 |
Grade A, and why
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 3mo 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 — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Codebase Design
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, testability for everyone.
Glossary
Use these terms exactly. Consistent language is the whole point — do not substitute "component", "service", "API", or "boundary".
- Module — anything with an interface and an implementation. Deliberately scale-agnostic: a function, class, package, or tier-spanning slice.
- Interface — everything a caller must know to use the module correctly. Not just the type signature: invariants, ordering constraints, error modes, required configuration, performance characteristics. Avoid "API" and "signature" — both are too narrow.
- Implementation — what is inside the module.
- Depth — leverage at the interface: how much behaviour a caller or test can exercise per unit of interface they must learn. Deep = large behaviour behind a small interface. Shallow = interface nearly as complex as the implementation.
- Seam (Feathers) — a place where behaviour can be altered without editing in that place; where a module's interface lives. Where to put the seam is its own decision, separate from what goes behind it. Avoid "boundary" — overloaded with DDD's bounded context.
- Adapter — a concrete thing satisfying an interface at a seam. Describes the role it fills, not what is inside it.
- Leverage — what callers get from depth: one implementation paying back across N call sites and M tests.
- Locality — what maintainers get from depth: change, bugs, and verification concentrate in one place. Fix once, fixed everywhere.
Principles
- Depth is a property of the interface, not the implementation. A deep module can be internally composed of small swappable parts; they just are not part of its interface. Modules can have internal seams used by their own tests as well as the external seam at their interface.
- The deletion test. Imagine deleting the module. If complexity vanishes, it was a pass-through. If complexity reappears across N callers, it was earning its keep.
- The interface is the test surface. Callers and tests cross the same seam. Needing to test past the interface means the module is the wrong shape.
- One adapter is a hypothetical seam. Two adapters is a real one. Do not introduce a seam unless something actually varies across it.
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.
- 3mo ago First seen · 45 lines · 50 tokens per session scan A e1921a1df979
codebase-design is a skill published in the GitHub repository xbklairith/kisune (4 stars, last pushed 24d ago), licensed MIT. It adds 50 tokens to every session and 825 once invoked, about $0.0002 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-09-03.
codebase-design compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| codebase-designxbklairith/kisune | Skill | 4 | 24d ago | MIT | A | 50 | Claude Code |
| pull-requestspingdotgg/t3code | Skill | 87k | today | MIT | A | 34 | Claude Code, Codex |
| test-reviewdatahub-project/datahub | Skill | 13k | today | Apache-2.0 | A | 0 | Claude Code, Codex |
| grade-testsdotnet/skills | Skill | 6.4k | today | MIT | A | 119 | Claude Code |
| go-testingGentleman-Programming/gentle-ai | Skill | 9.7k | today | MIT | A | 26 | Claude Code, Codex |
| brooks-testhyhmrright/brooks-lint | Skill | 1.6k | yesterday | MIT | A | 161 | Claude Code |
| dart-mechanical-refactordartsim/dart | Skill | 1.2k | 2d ago | BSD-2-Clause | A | 20 | Claude Code |