Agent Rules / Skills from Programming Books
Rules and skills for AI coding agents (Codex, Cursor, Claude Code) distilled from classic software engineering books on refactoring, architecture, DDD, and code quality.
- Source repo
- ciembor/agent-rules-books
- Stars
- ★ 3.4k
- Last updated
- 2mo ago v0.5
- FARS reviewed
- Nov 08, 2026
- License
- MIT
- FA score
- 55/100 · Major gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude CodeChatGPT (Partial support)
- Cost
- Free, no paid service needed
- OS / editors
- Cursor per README
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A developer starting a new project in Codex wants to apply Clean Code principles; they can add the clean-code rules to AGENTS.md.
- Not a fit if
- Teams expecting complete understanding without reading the books
- Users wanting automated setup or a hosted service
- Teams needing validation for every book's rule set
- Website
- ciembor.github.io/agent-rules-books ↗ set on GitHub
- Maintenance
- Commits in the last 6 monthslast commit 2026-09-10latest release v0.5 (2026-05-04)+7.3 ★/day over 7 days
- Source review
- 55/100 · Major gaps 1 safety controls not found
What does this agent do, and when should you use it?
This MIT-licensed repository provides ready-to-use AGENTS.md rule sets and skills for AI coding agents, distilled from well-known software engineering books such as Refactoring, Clean Architecture, and Domain-Driven Design. Each rule set is available in three tool-agnostic Markdown versions: mini (recommended), nano (compact), and full (canonical). The repository includes per-book rule files, usage guidance (USAGE.md), compatibility notes (COMPATIBILITY.md), changelog, and a validation experiment showing that using a mini rules set during refactoring yields code that better implements the book's principles compared to merely mentioning the book title. Rules can be integrated into Codex, Cursor, Claude Code, and GitHub Copilot.
The repository is a collection of Markdown files, each dedicated to a specific book (e.g., clean-code/clean-code.md, refactoring/refactoring.md), containing concrete coding rules, patterns, and skills. Users can copy these files into their projects as AGENTS.md, or adapt them for other tools like Cursor or Claude Code skills. The files are static and do not execute code; they serve as instructions for AI coding agents. The repository also includes documentation on usage, compatibility, and a validation experiment comparing refactoring with rules vs. without.
- A developer starting a new project in Codex wants to apply Clean Code principles; they can add the clean-code rules to AGENTS.md.
- An engineer maintaining legacy code uses the Working Effectively with Legacy Code rules to safely refactor.
- An architect designing microservices in Cursor uses Domain-Driven Design rules to define bounded contexts.
- A data engineer uses Designing Data-Intensive Applications rules to ensure reliability in data systems.
- A development team standardizes coding practices by combining rules from multiple books (e.g., Refactoring and Clean Code) in Claude Code.
- A developer wants to create Claude Code skills; they can convert a mini rule set into a skill.
How do you install or deploy this agent?
This repository is a collection of rule sets; no installation is required. Clone the repo: git clone https://github.com/ciembor/agent-rules-books.git. Then choose a book directory (e.g., clean-code/), copy the relevant .md file (e.g., clean-code.md) into your project, and rename it to AGENTS.md or CLAUDE.md as appropriate.
How do you use this agent?
- Select a rule set from the repository (e.g., clean-code/mini version). 2. Copy the corresponding file (e.g., clean-code.md) to your project root and rename it to AGENTS.md (or CLAUDE.md / .cursorrules). 3. Ensure your AI coding agent (Codex, Cursor, Claude Code) supports AGENTS.md. 4. Start coding or refactoring; the agent will follow the rules. For skills, convert the mini rules into a Claude Code skill format.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
FARS trust-control audit
- sensitive-data handling — Use dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
What are this agent's strengths and limitations?
- Rules are based on classic books, providing well-established coding principles and patterns.
- Three granularity versions (full/mini/nano) allow adjustment to different context budgets.
- Integration guides for multiple popular AI agents (Codex, Cursor, Claude Code).
- Validation experiment shows using rules improves refactoring effectiveness.
- MIT license allows free use and modification.
- Rules are not book summaries; understanding may be incomplete without reading the books.
- Requires manual integration into each project; no automated setup tools.
- Validation experiment covers only one book; effectiveness for other books is unverified.
- Rules may assume specific programming languages or technologies, requiring adjustments.
- Dependent on AI agent support for Markdown files; compatibility varies across tools.
How does this agent compare with similar options?
The repository does not explicitly mention alternatives, but similar rule sets exist in community projects like 'Awesome AGENTS.md'. This repo differentiates by systematically extracting rules from classic books and providing multiple granularity versions.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Agent Rules / Skills from Programming Books This agent | 55 · Major gaps | CLIFree | ★ 3.4k | 2mo ago | — | Codex · Claude Code |
| Solid Skills — Senior-Engineer Coding Skills for AI Agents | 32 · Major gaps | Agent plugin / skillFree | ★ 650 | 3mo ago | — | — |
| TeaQL Agent Kit | 72 · Some gaps | Agent plugin / skillFreemium | ★ 2.8k | 23d ago | TypeScript | — |
| Modern Go Guidelines | 60 · Some gaps | Agent plugin / skillFree | ★ 4k | 1mo ago | Go | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The sample SKILL.md files activate on matching work, direct the agent to a mini rule file, and reserve the full file for reference; the README also recommends scoped or on-demand loading. The supplied material does not explain sensitive-data handling, side-effect controls, recovery, or when to seek confirmation, so those criteria score low. The README identifies the book inspirations and says the material is unofficial, but it does not map individual rules to sources. Installation uses Node.js and the npx skills CLI without dependency pinning or security guidance.
The README, USAGE guide, and sample skills broadly agree on using mini by default and full as deeper reference; the release matrix lists three formats. There are no supplied instructions for failed installation or skill loading. Dependency availability is supported only by a Node.js/npm prerequisite and npx command, with no version constraints or offline alternative.
The README identifies several engineering topics, tools, and use cases, while USAGE distinguishes skills, always-on, scoped, and on-demand patterns. Sample skill triggers are reasonably specific but provide few exclusions or conflict rules. The cross-tool setup guidance is useful, though the supplied USAGE excerpt ends during the Cursor section, limiting assessment of environment coverage.
The README provides navigation, a release matrix, book list, FAQ, usage and compatibility references; sample skill names correspond to their directories and files, and the MIT license text is present. Installation instructions are usable but brief, and only four sample skills are supplied, limiting confidence in naming and FAQ coverage. A changelog and v0.6 label are referenced, but maintenance responsibility and update commitments are unclear; the author attribution offers only partial responsibility evidence.
The mini, nano, and full formats and scoped-loading advice help users choose for their context budget, and sample skills state triggers and file paths directly. The README describes one comparative experiment, but it is a qualitative ChatGPT assessment of two branches; the author calls it an early signal and says broader measurement is not planned. That limits evidence for marginal value. Cost guidance is practical but not quantified.
The README links rule files, lists sources, reports file-size metrics, and describes an experiment, making some claims traceable to repository material. The experiment is self-reported in the README; the supplied packet does not include the compared branches or independent review records, so corroboration is limited. The README labels the result an early qualitative signal and the rules unofficial inspirations, separating observation from inference to some extent, but individual rules are not mapped back to source passages.
- Not found in source: sensitive-data handlingUse dedicated, low-privilege, revocable API keys — never production credentials — and keep secrets out of logs.
- The rules are book-inspired without rule-by-rule source mapping; the reported single qualitative comparison is not independent validation or a guarantee of consistent results.
- Installation depends on Node.js/npm and the npx skills CLI; the supplied material gives no dependency version, security review, or installation-failure guidance.
- The supplied USAGE excerpt ends during the Cursor section and includes only a sample of skills; do not infer that unseen files are absent or behave a certain way.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Full Changelog: https://github.com/ciembor/agent-rules-books/compare/v0.4...v0.5View on GitHub ↗ -
Release notes excerpt
Full Changelog: https://github.com/ciembor/agent-rules-books/compare/v0.2...v0.4View on GitHub ↗ -
Release notes excerpt
Full Changelog: https://github.com/ciembor/agent-rules-books/compare/v0.2...v0.3View on GitHub ↗
FAQ
Can I use these rules with Cursor?
Are these rules official extracts from the books?
Do I need to install any specific software to use these rules?
Will these rules slow down my agent?
Can I combine rules from multiple books?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.