by ciembor
AGENTS.md rules for AI coding agents: Codex, Cursor & Claude Code. Inspired by Clean Code, Refactoring, DDD, Clean Architecture and DDIA programming books.
# Add to your Claude Code skills
git clone https://github.com/ciembor/agent-rules-booksGuides for using ai agents skills like agent-rules-books.
Last scanned: 5/6/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-05-06T06:29:37.441Z",
"semgrepRan": false,
"npmAuditRan": true,
"pipAuditRan": true
}
MIT licensed universal project rules for coding agents.
This repository contains ready-to-use rule sets inspired by well-known books on software design, architecture, refactoring, legacy code, reliability, and data-intensive systems.
For editor-specific setup in Codex, Claude Code, and Cursor, see USAGE.md. It covers always-on vs on-demand usage, skills, scoped rules, MCP or RAG patterns, and the preferred setup for each editor.
Each rule set is released in three tool-agnostic Markdown versions:
mini: the recommended version for most real task usenano: the compact fallback for very tight context budgetsfull: the canonical complete source and reference versionFor constructive criticism from Reddit, see CRITICISM.md.
For release history, see CHANGELOG.md.
Metrics:
lines: physical line count from wc -lrules: Markdown list items counted with the deterministic release conventionsize: raw bytes from wc -c| Rule Set | Full file | Full lines | Full rules | Full size | Mini file | Mini lines | Mini rules | Mini size | Nano file | Nano lines | Nano rules | Nano size | | --- | --- | ---: | ---: | ---: | --- | ---: | ---: | ---: | --- | ---: | ---: | ---: | | A Philosophy of Software Design | | 370 | 177 | 13561 B | | 46 | 28 | 5774 B | | 35 | 17 | 2258 B | | | | 515 | 289 | 17782 B | | 49 | 31 | 5486 B | | 36 | 18 | 2254 B | | | | 297 | 220 | 13851 B | | 47 | 29 | 3804 B | | 32 | 14 | 1235 B | | | | 354 | 180 | 12407 B | | 56 | 38 | 6717 B | | 41 | 23 | 2544 B | | | | 393 | 205 | 16084 B | | 55 | 37 | 6949 B | | 34 | 16 | 2575 B | | | | 979 | 523 | 42424 B | | 48 | 30 | 5683 B | | 39 | 21 | 2266 B | | | | 317 | 158 | 11351 B | | 56 | 38 | 6438 B | | 41 | 23 | 2535 B | | | | 337 | 177 | 12848 B | | 57 | 39 | 7333 B | | 37 | 19 | 2723 B | | | | 404 | 196 | 15501 B | | 54 | 36 | 8099 B | | 35 | 17 | 2823 B | | | | 433 | 242 | 17866 B | | 49 | 31 | 5167 B | | 37 | 19 | 1986 B | | | | 382 | 204 | 13542 B | | 48 | 30 | 6372 B | | 38 | 20 | 2205 B | | | | 359 | 179 | 13398 B | | 65 | 47 | 7165 B | | 44 | 26 | 2263 B | | | | 371 | 193 | 13817 B | | 50 | 32 | 5707 B | | 35 | 17 | 1792 B | | | | 765 | 478 | 62561 B | | 64 | 46 | 6287 B | | 41 | 23 | 2593 B |
No comments yet. Be the first to share your thoughts!
Author: John Ousterhout
The book focuses on fighting complexity through deep modules, simple interfaces, information hiding, and design choices that reduce cognitive load. This rule set is especially useful for API design, module design, and refactoring shallow abstractions.
Author: Robert C. Martin
The book describes designing systems around stable boundaries, the dependency rule, and the separation of business policies from details such as frameworks, databases, and UI. This rule set helps keep code resistant to technology churn.
Author: Robert C. Martin
The book focuses on readability, naming, small functions, responsibilities, tests, and simplicity. This rule set is a strong default for everyday coding and code review.
Author: Steve McConnell
The book covers a broad range of software construction practices: routine design, variables, classes, control flow, defensive programming, coding standards, and testing. This rule set helps agents make disciplined implementation decisions.
Author: Martin Kleppmann
The book covers reliability, scalability, consistency, replication, partitioning, transactions, data streams, and schema evolution. This rule set is intended for systems where data ownership, event flows, and consistency semantics matter.
Author: Eric Evans
The book introduces domain modeling, ubiquitous language, bounded contexts, tactical patterns, and strategic design. This rule set helps agents think in terms of the business model rather than tables, controllers, or DTOs.
Author: Vaughn Vernon
The book is a short, practical introduction to DDD. It focuses on subdomains, bounded contexts, context mapping, and basic tactical patterns. This rule set is a good fit when you want the benefits of DDD without excessive ceremony.
Author: Vaughn Vernon
The book shows how to apply DDD in real systems: aggregates, domain events, contexts, integrations, and application architecture. This rule set is more implementation-focused than domain-driven-design-distilled.
Author: Martin Fowler
The book catalogues enterprise application patterns: layers, service layer, transaction script, domain model, data mapper, repository, unit of work, identity map, DTO, and integration patterns. This rule set helps choose an appropriate pattern instead of mixing responsibilities accidentally.
Author: Martin Fowler
The book describes safe ways to improve code structure without changing observable behavior. This rule set emphasizes small steps, tests, code smell d