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.

Stars
★ 3.4k
Last updated
2mo ago v0.5
FARS reviewed
Nov 08, 2026
License
MIT

At a glance

How it runs
CLIAgent plugin / skill
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
GitMarkdown editorShell / CLI
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
Maintenance
Commits in the last 6 monthslast commit 2026-09-10latest release v0.5 (2026-05-04)+7.3 ★/day over 7 days

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.

  1. A developer starting a new project in Codex wants to apply Clean Code principles; they can add the clean-code rules to AGENTS.md.
  2. An engineer maintaining legacy code uses the Working Effectively with Legacy Code rules to safely refactor.
  3. An architect designing microservices in Cursor uses Domain-Driven Design rules to define bounded contexts.
  4. A data engineer uses Designing Data-Intensive Applications rules to ensure reliability in data systems.
  5. A development team standardizes coding practices by combining rules from multiple books (e.g., Refactoring and Clean Code) in Claude Code.
  6. 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?

  1. 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)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

FARS trust-control audit

Not found in source — apply before daily use
  • 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?

Pros
  • 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.
Limitations
  • 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?

FollowAgents source review · FARS-2.1
Major gaps
55/ 100 5-point scale 2.8 / 5
Trust 12/29
Reliability 5/14
Adaptability 14/18
Convention 13/18
Effectiveness 7/13
Verifiability 4/8
Why each dimension lost points
Trust12 / 29 · 2.1/5

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.

Reliability5 / 14 · 1.8/5

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.

Adaptability14 / 18 · 3.9/5

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.

Convention13 / 18 · 3.6/5

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.

Effectiveness7 / 13 · 2.7/5

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.

Verifiability4 / 8 · 2.5/5

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.

Risks and how to mitigate them
  • 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.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision 893a88a6fce3
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/agent-rules-books.svg)](https://followagents.com/en/agents/agent-rules-books)
<a href="https://followagents.com/en/agents/agent-rules-books"><img src="https://followagents.com/badge/agent-rules-books.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.5
    Release notes excerpt
    Full Changelog: https://github.com/ciembor/agent-rules-books/compare/v0.4...v0.5
    View on GitHub ↗
  2. v0.4
    Release notes excerpt
    Full Changelog: https://github.com/ciembor/agent-rules-books/compare/v0.2...v0.4
    View on GitHub ↗
  3. v0.3
    Release notes excerpt
    Full Changelog: https://github.com/ciembor/agent-rules-books/compare/v0.2...v0.3
    View on GitHub ↗

FAQ

Can I use these rules with Cursor?
Yes, the README explicitly states the rule sets can be adapted to Cursor project rules or kept as AGENTS.md-style instructions.
Are these rules official extracts from the books?
No. The README emphasizes that the rules are practical engineering instructions, not reproductions of book text, and not a substitute for reading the books.
Do I need to install any specific software to use these rules?
No. The rules are plain Markdown files; you only need an AI coding agent that supports AGENTS.md (like Codex or Claude Code) and a text editor.
Will these rules slow down my agent?
The mini version is optimized for most real tasks, while nano is more compact. Actual impact depends on your context budget and project size.
Can I combine rules from multiple books?
Yes, the repository provides COMPATIBILITY.md documentation on how to combine multiple rule sets.
Was this page helpful?
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related concepts