Skill / SKILL.md

Code That Fits In Your Head

CodeAlive-AI/ai-driven-development

Heuristics for the shape of code inside one code base, after Mark Seemann's Code That Fits in Your Head (2021), updated for coding agents: units small enough to hold in mind, invariants in types, APIs hard to misuse, explicit effects. Use when writing or reviewing code, refactoring accidental complexity or a Big Ball of Mud, controlling technical debt in generated code, designing a type, an invariant or an in-code API, decomposing a long function or a tangled module, replacing a method or class side by side (Strangler), reading or measuring an unfamiliar code base, debugging a defect by hypothesis and bisection, setting up a maintainable code base, or turning a recurring finding into a lint or CI gate. Not for choosing, writing or repairing tests, TDD included (pragmatic-verification), choosing a design, state ownership, migration or rollout, or threat modelling (pragmatic-architecture), security audits, production incident response, performance profiling, or language and framework tutorials.
2 views 194 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Heuristics for the shape of code inside one code base, after Mark Seemann's Code That Fits in Your Head (2021), updated for coding agents: units small enough to hold in mind, invariants in types, APIs hard to misuse, explicit effects. Use when writing or reviewing code, refactoring accidental complexity or a Big Ball of Mud, controlling technical debt in generated code, designing a type, an invariant or an in-code API, decomposing a long function or a tangled module, replacing a method or class side by side (Strangler), reading or measuring an unfamiliar code base, debugging a defect by hypothesis and bisection, setting up a maintainable code base, or turning a recurring finding into a lint or CI gate. Not for choosing, writing or repairing tests, TDD included (pragmatic-verification), choosing a design, state ownership, migration or rollout, or threat modelling (pragmatic-architecture), security audits, production incident response, performance profiling, or language and framework tutorials.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/CodeAlive-AI/ai-driven-development' skill-source

Use the complete skill-source/skills/code-that-fits-in-your-head directory with your client’s skill installer.

  • skills/code-that-fits-in-your-head

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/code-that-fits-in-your-head

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Included files
44 included files
Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
712e5085405ead656879dd2b6b9eecfb7bd1417a406f0f3ddbc79ea29928b743
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills