codebase-design

codebase-design is a skill for Claude Code from xbklairith/kisune. It costs 50 tokens per session (825 once invoked), scanned A, original, MIT.

A set of concepts for designing software modules with clear boundaries and interfaces. It covers modules, interfaces, adapters, and seams, where a seam is a place where code can be changed or tested independently.

In plain words
What is it for?
Use it to design or improve module interfaces, choose where components meet, and find ways to make code more testable.
Why use it?
It helps expose overly complicated interfaces and makes code easier to change and test.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the dev-workflow plugin — 28 skills, 1 command, 8 agents, 1 hook, 1 plugin shipped together

Good fit Use it to design or improve module interfaces, choose where components meet, and find ways to make code more testable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xbklairith/kisune/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 xbklairith/kisune --skill codebase-design
Clone the repo
git clone --depth 1 https://github.com/xbklairith/kisune

Made for: Claude Code.

Or install dev-workflow, the plugin that ships this one along with the rest of its 28 skills, 1 command, 8 agents, 1 hook, 1 plugin.

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 codebase-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/xbklairith/kisune/codebase-design/github.svg)](https://agentmods.dev/skills/xbklairith/kisune/codebase-design)
Your own site
<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.

agentmods 80×15 button for codebase-design

Your own site · 80×15
<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>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 825 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.00050 $0.00825
Opus 5.5 $0.00020 $0.00330
Sonnet 5.5 $0.00010 $0.00165
Haiku 4.5 $0.00005 $0.00082

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

Security

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.

dev-workflow/skills/codebase-design/SKILL.md · 45 lines

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.

Read the full file on GitHub · 45 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. 3mo ago First seen · 45 lines · 50 tokens per session scan A e1921a1df979

Subscribe to this mod's changes

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.

Related

codebase-design compared with skills from other repositories

codebase-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
codebase-designxbklairith/kisuneSkill424d agoMITA50Claude Code
pull-requestspingdotgg/t3codeSkill87ktodayMITA34Claude Code, Codex
test-reviewdatahub-project/datahubSkill13ktodayApache-2.0A0Claude Code, Codex
grade-testsdotnet/skillsSkill6.4ktodayMITA119Claude Code
go-testingGentleman-Programming/gentle-aiSkill9.7ktodayMITA26Claude Code, Codex
brooks-testhyhmrright/brooks-lintSkill1.6kyesterdayMITA161Claude Code
dart-mechanical-refactordartsim/dartSkill1.2k2d agoBSD-2-ClauseA20Claude Code