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 CodeAlive-AI/ai-driven-development --skill code-that-fits-in-your-headgit clone --depth 1 https://github.com/CodeAlive-AI/ai-driven-developmentWrote 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/codealive-ai/ai-driven-development/code-that-fits-in-your-head)<a href="https://agentmods.dev/skills/codealive-ai/ai-driven-development/code-that-fits-in-your-head"><img src="https://agentmods.dev/badge/skills/codealive-ai/ai-driven-development/code-that-fits-in-your-head/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/codealive-ai/ai-driven-development/code-that-fits-in-your-head"><img src="https://agentmods.dev/badge/skills/codealive-ai/ai-driven-development/code-that-fits-in-your-head.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00215 | $0.01763 |
| Opus 5.5 | $0.00086 | $0.00705 |
| Sonnet 5.5 | $0.00043 | $0.00353 |
| Haiku 4.5 | $0.00021 | $0.00176 |
Grade A, and why
code-that-fits-in-your-head 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 9d 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 — 95 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Code That Fits in Your Head
Heuristics for the shape of code inside one code base, based on Mark Seemann's 2021 book and clearly labelled agent-era amendments: can the next reader, human or agent, hold a unit in mind and change it safely?
Code examples are C#-first; every rule and the tooling tables are language-neutral.
Scope
A question belongs to this skill when it is answered by reading the code.
| The question is answered by | Use |
|---|---|
| Reading the code: size, cohesion, coupling, names, types, explicit effects | This skill |
| Running something: which checks to write and at which level, whether a test can fail, a flaky or slow test, when a task is done | pragmatic-verification |
| Replaying a sequence of events: a retry, a crash, two writers, two versions; where state lives; how a schema or contract changes; rollout and rollback; what an untrusted caller can reach | pragmatic-architecture |
| Thinking before or around the code: which problem to solve, build or buy, a cause outside the code, delivery and operations | fpf-problem-solving |
The skill prescribes no order of writing tests and code. Test-driven development is a large part of the book; here it is left to pragmatic-verification, which treats it as one working technique among others. Two ideas from it stay, because they are about code and not about tests: build a feature as a thin slice from the boundary inward, and treat code that is hard to check as a design smell.
Philosophy (Why This Skill Exists)
Software development is principally a design activity, not construction. An agent may produce most of the text, but people still review, operate, extend, and own the resulting system. These heuristics make software sustainable: understandable, resistant to architectural erosion, and cheap to change after thousands of decisions.
Core mental model from Chapter 1:
| Metaphor | What it gets right | What it misses |
|---|---|---|
| Building a house | Plans, structure | Software endures; there's no construction phase (compiling is free); dependencies can start anywhere |
| Growing a garden | Pruning, refactoring, tending | Code does not improve by itself; generated code still needs stewardship |
| Art / craft | Skill, mastery, situational knowledge | Doesn't scale; leaves newcomers without guidance |
| Engineering (the target) | Heuristics, review, sign-off, checklists | We're not there yet — physical-construction calculations don't apply |
What ships with it
43 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- guidelines.md 10 KB
- README.md 4.5 KB
- references/agent-native/hallucination-debugging.md 5.7 KB
- references/agent-native/knowledge.md 1.6 KB
- references/agent-native/reviewability.md 3.7 KB
- references/agent-native/types-as-guardrails.md 3.2 KB
- references/api-design/examples.md 6.3 KB
- references/api-design/knowledge.md 2.7 KB
- references/api-design/rules.md 5.0 KB
- references/code-navigation/knowledge.md 3.9 KB
- references/code-navigation/rules.md 6.5 KB
- references/codebase-setup/checklist.md 5.4 KB
- references/codebase-setup/knowledge.md 2.2 KB
- references/codebase-setup/rules.md 6.3 KB
- references/decomposition/examples.md 7.8 KB
- references/decomposition/knowledge.md 4.4 KB
- references/decomposition/patterns.md 6.3 KB
- references/decomposition/rules.md 5.2 KB
- references/decomposition/smells.md 9.9 KB
- references/encapsulation/examples.md 6.4 KB
- references/encapsulation/knowledge.md 3.5 KB
- references/encapsulation/rules.md 5.4 KB
- references/evolution/examples.md 4.9 KB
- references/evolution/knowledge.md 2.4 KB
- references/evolution/patterns.md 5.2 KB
- references/evolution/rules.md 5.1 KB
- references/foundations/knowledge.md 4.6 KB
- references/foundations/rules.md 5.5 KB
- references/practices-glossary/knowledge.md 8.2 KB
- references/separation-of-concerns/knowledge.md 2.2 KB
- references/separation-of-concerns/patterns.md 6.1 KB
- references/separation-of-concerns/rules.md 6.5 KB
- references/teamwork-git/checklist.md 3.8 KB
- references/teamwork-git/knowledge.md 3.7 KB
- references/teamwork-git/rules.md 5.1 KB
- references/tooling/commands.md 3.6 KB
- references/troubleshooting/knowledge.md 2.7 KB
- references/troubleshooting/patterns.md 7.2 KB
- references/troubleshooting/rules.md 5.3 KB
- workflows/add-feature.md 8.3 KB
- workflows/debug-defect.md 7.1 KB
- workflows/operationalize-finding.md 4.2 KB
- workflows/review-code.md 7.4 KB
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.
- 9d ago Changed · +10 lines · +46 tokens per session ab3083acd32c
- 3mo ago First seen · 85 lines · 169 tokens per session scan A 997c0361f3b8
code-that-fits-in-your-head is a skill published in the GitHub repository CodeAlive-AI/ai-driven-development (195 stars, last pushed yesterday), licensed MIT. It adds 215 tokens to every session and 1,763 once invoked, about $0.0009 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-08-30.
code-that-fits-in-your-head compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-that-fits-in-your-headCodeAlive-AI/ai-driven-development | Skill | 195 | yesterday | MIT | A | 215 | Claude Code |
| code-reviewpeintune/runjam | Skill | 223 | 1mo ago | MIT | A | 33 | Claude Code, Codex |
| spec-reviewbenjaminthomas/spec-driven-dev | Skill | 2 | 4d ago | MIT | A | 219 | Claude Code |
| spec-walkthroughbenjaminthomas/spec-driven-dev | Skill | 2 | 4d ago | MIT | A | 172 | Claude Code |
| codeckisdou/codeck | Skill | 2 | 13d ago | MIT | A | 98 | Codex |
| application-security-pentestinghamzabellouch/agent-skills | Skill | 8 | 1mo ago | MIT | A | 43 | Claude Code, Codex |
| reviewerqwerfunch/cladding | Skill | 16 | 2mo ago | MIT | A | 68 | Claude Code, Codex |