The perfect TS codebase
What I’ve learned getting AI agents to write code that fits my codebase. Make sure you adapt lessons learned to your style.
Understand better
5 articles
Understand betterName conditions and numbers
Understand betterComments are for what the code can't say
Coming soonUnderstand betterUse types as documentation[Coming Soon]
Coming soonUnderstand betterKeep files small and single-purpose[Coming Soon]
Coming soonUnderstand betterKeep data flow explicit[Coming Soon]
Follow existing patterns
4 articlesSpend fewer tokens
5 articles
Coming soonSpend fewer tokensKeep AGENTS.md short[Coming Soon]
Coming soonSpend fewer tokensProvide one fast verification command[Coming Soon]
Coming soonSpend fewer tokensKeep generated files out of the search path[Coming Soon]
Coming soonSpend fewer tokensAvoid duplication[Coming Soon]
Coming soonSpend fewer tokensMake error messages name the fix[Coming Soon]
Find faster
5 articles
Coming soonFind fasterUse searchable, unique names[Coming Soon]
Coming soonFind fasterMake the path predictable from the feature[Coming Soon]
Coming soonFind fasterName files after what they contain[Coming Soon]
Coming soonFind fasterAvoid dynamic indirection[Coming Soon]
Coming soonFind fasterKeep one entry point per concern[Coming Soon]
Improve existing patterns
5 articles
Coming soonImprove existing patternsState the reason behind each rule[Coming Soon]
Coming soonImprove existing patternsTurn a correction into a check or a rule[Coming Soon]
Coming soonImprove existing patternsKeep commits small and single-concern[Coming Soon]
Coming soonImprove existing patternsSay when deviation is welcome[Coming Soon]
Coming soonImprove existing patternsPrune rules[Coming Soon]



