agent-rules-books is a free, open source ai development platforms project written in several languages and released under MIT. It has 2,816 GitHub stars, 499 forks and 5 open issues, and was last pushed 8 days ago. On this registry it ranks #128 of 139 tracked projects in AI Development Platforms, with 5 head-to-head comparisons available.

What is agent-rules-books?

agent-rules-books is an MIT-licensed, tool-agnostic collection of AGENTS.md rules and agent skills, distilled from classic software engineering books, that installs into AI coding agents such as Codex, Cursor and Claude Code to steer them toward better refactoring, architecture, domain-driven design and code quality.

What it is

The project provides ready-to-use rule sets for coding agents, each one derived from a well-known book on software design, architecture, refactoring, legacy code, reliability or data-intensive systems. Covered titles include Clean Code, Clean Architecture, Code Complete, Refactoring, Domain-Driven Design, Designing Data-Intensive Applications and A Philosophy of Software Design. Every rule set ships in three tool-agnostic Markdown versions: mini, described as the recommended version for most real task use; nano, a compact fallback for very tight context budgets; and full, the canonical complete source and reference version. Each book directory contains a standard SKILL.md entrypoint that loads the mini rule set by default while keeping the full file available as deeper reference material.

The concrete problem it solves is the blank page that greets anyone writing agent instructions. Instead of hand-authoring project rules and hoping they capture decades of accumulated engineering judgement, a user installs curated rule sets that already encode the practices from these books. It lives in the emerging agent skills and AGENTS.md ecosystem, alongside the open Agent Skills CLI, and it replaces the ad hoc, self-written rule files that teams otherwise maintain separately for Codex, Cursor and Claude Code. The rules are deliberately tool-agnostic Markdown, which is what lets a single source serve all three editors.

Key capabilities

  • Three release tiers per book — mini, nano and full — so the same rule set scales from recommended everyday use down to very tight context budgets.
  • A standard SKILL.md entrypoint in every book directory, allowing installation through the open Agent Skills CLI.
  • Skills CLI commands for bulk and selective installs: npx skills add ciembor/agent-rules-books --all, --list to preview without installing, and --skill refactoring to install a single rule set.
  • docs/USAGE.md documents always-on versus on-demand usage, skills, scoped rules and the preferred setup for each of Codex, Claude Code and Cursor.
  • A release matrix reporting deterministic metrics per rule set, including line counts from wc -l, rule counts from a fixed counting convention, and raw byte sizes from wc -c.
  • Rule sets spanning refactoring, code quality, clean architecture, domain-driven design and data-intensive systems.
  • CRITICISM.md collects constructive criticism from Reddit, and CHANGELOG.md records release history, with the current line at v0.6.

Who uses it and how

  • Teams running more than one AI coding agent, using a shared Markdown rule source so Codex, Cursor and Claude Code behave consistently.
  • Developers working under tight context limits, who install the nano version instead of the recommended mini one.
  • Engineers doing refactoring or legacy-code work, who install the targeted refactoring skill rather than the whole collection.
  • Architects and domain-modelling practitioners applying the Clean Architecture and Domain-Driven Design rule sets as always-on or scoped rules.
  • Contributors who read CRITICISM.md before adopting, and track changes through CHANGELOG.md.

Getting started

Install Node.js with npm, then install every book skill with npx skills add ciembor/agent-rules-books --all; skills itself does not need separate installation. For editor-specific, manual or scoped setups, follow docs/USAGE.md.

How it compares

No list of paid products this project replaces is provided in the facts, and no directly comparable tool is named, so it stands alone in this registry. What the facts do establish is its position across three agent ecosystems at once — Codex, Cursor and Claude Code — served from one MIT-licensed Markdown source rather than per-editor rule formats.

When to use it — and when not to

There is nothing to operate: no database, storage layer or SMTP service is mentioned, because the deliverable is Markdown plus a Node.js-based CLI install. It is a poor fit for anyone expecting a hosted product, and the rule sets are distilled summaries of the source books rather than replacements for reading them. The facts also show that a CRITICISM.md file exists, which signals the maintainers consider the rule sets debatable rather than settled.

project readme (upstream, from github) — read inline

Polish Repo badge skills.sh

AI agents Rules / Skills from
Programming Books v0.6

AGENTS.md rules / skills for Codex, Cursor, Claude Code, distilled from classic software engineering books about refactoring, architecture, DDD and code quality.

About · Installation · Rules / Skills · Books List · Usage · Books Compatibility

About

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, 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 use
  • nano: the compact fallback for very tight context budgets
  • full: the canonical complete source and reference version

For constructive criticism from Reddit, see CRITICISM.md.

For release history, see CHANGELOG.md.

Installation as Skills

Prerequisite: install Node.js with npm. You can run the Skills CLI through npx without installing skills separately.

Install all book skills with the open Agent Skills CLI:

npx skills add ciembor/agent-rules-books --all

List available skills without installing:

npx skills add ciembor/agent-rules-books --list

Install one selected skill:

npx skills add ciembor/agent-rules-books --skill refactoring

Every book directory contains a standard SKILL.md entrypoint. The skill loads the corresponding mini rule set by default and keeps the full file available as deeper reference material.

If you prefer another setup, see USAGE.md for manual, scoped, always-on, and editor-specific installation patterns.

Release Matrix

Metrics:

  • lines: physical line count from wc -l
  • rules: Markdown list items counted with the deterministic release convention
  • size: 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 full 370 177 13561 B mini 46 28 5774 B nano 35 17 2258 B
Clean Architecture full 515 289 17782 B mini 49 31 5486 B nano 36 18 2254 B
Clean Code full 297 220 13851 B mini 47 29 3804 B nano 32 14 1235 B
Code Complete full 354 180 12407 B mini 56 38 6717 B nano 41 23 2544 B
Designing Data-Intensive Applications full 393 205 16084 B mini 55 37 6949 B nano 34 16 2575 B
Domain-Driven Design full 979 523 42424 B mini 48 30 5683 B nano 39 21 2266 B
Domain-Driven Design Distilled full 317 158 11351 B mini 56 38 6438 B nano 41 23 2535 B
Implementing Domain-Driven Design full 337 177 12848 B mini 57 39 7333 B nano 37 19 2723 B
Patterns of Enterprise Application Architecture full 404 196 15501 B mini 54 36 8099 B nano 35 17 2823 B
Refactoring full 433 242 17866 B mini 49 31 5167 B nano 37 19 1986 B
Release It! full 382 204 13542 B mini 48 30 6372 B nano 38 20 2205 B
The Pragmatic Programmer full 359 179 13398 B mini 65 47 7165 B nano 44 26 2263 B
Working Effectively with Legacy Code full 371 193 13817 B mini 50 32 5707 B nano 35 17 1792 B
Refactoring.Guru full 765 478 62561 B mini 64 46 6287 B nano 41 23 2593 B

Books List

A Philosophy of Software Design

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.

Clean Architecture

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.

Clean Code

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.

Code Complete

Author: Steve McConnell

The book covers a broad range of software construction practices: routine design, variables, classes, c

readme truncated — read the full docs on github

Frequently asked questions

Is agent-rules-books free to use?

agent-rules-books is open source under the MIT licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does agent-rules-books do?

AGENTS.md rules / skills for AI coding agents: Codex, Cursor & Claude Code. Inspired by Clean Code, Refactoring, DDD, Clean Architecture and DDIA programming bo

What is agent-rules-books written in?

agent-rules-books's source is publicly available at https://github.com/ciembor/agent-rules-books, with 2,816 GitHub stars.