Code That Fits In Your Head

Software-engineering heuristics based on Mark Seemann's Code That Fits in Your Head (2021), updated for agent-driven development. Use when writing or reviewing code, refactoring accidental complexity or a Big Ball of Mud, controlling technical or architectural debt in generated code, designing APIs and invariants, adding a feature through a walking skeleton and acceptance tests, debugging a defect with reproducible tests or bisection, threat-modelling endpoints and trust boundaries with STRIDE, planning a legacy or Strangler migration with rollback, or setting up a maintainable codebase. Covers decomposition and cyclomatic complexity, cohesion, encapsulation, outside-in TDD, separation of concerns, Git/review discipline, safe evolution, and troubleshooting. Not for language syntax, framework tutorials, production incident response, or performance profiling.

CodeAlive-AI Updated

File contents

CodeAlive-AI/agents-reflection-skills/tree/main/skills/code-that-fits-in-your-head commit 4fe25611a5

Frequently asked questions

npx skillmds@latest add codealive-ai-agents-reflection-skills/code-that-fits-in-your-head