
Here is ESLint-like tool for composing AI agent rules — here's why
If you use AI coding agents — Claude Code, Cursor, Copilot, Codex, Windsurf — you already know the pain: every agent wants its own context file. Claude Code reads CLAUDE.md , Cursor wants .cursorrules , Copilot expects .github/copilot-instructions.md , Codex needs AGENTS.md . The rules inside are usually the same, but you end up maintaining them separately across files you can never remember the name of. I kept copying the same guidelines between projects and agents, tweaking formatting, forgetting to update one file when I changed another. So I built ai-rulesmith — a CLI that lets you define your rules once and compose them into the right output for each agent. The ESLint analogy The mental model is borrowed directly from ESLint. Rules are small, focused atoms — each one enforces a single practice (like code-style/strict-typescript or workflow/verify-before-completing ). You pick the ones you need, skip the ones you don't, and compose them into a config. The tool generates the right f
Continue reading on Dev.to
Opens in a new tab




