Apply Agent Rules — Design skill for Claude Code
Apply an agent rules repo (CLAUDE.md, AGENTS.md, .cursorrules, etc.) into a target project tree.
How to install Apply Agent Rules
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open leek/apply-agent-rules and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Apply Agent Rules does
Apply an agent rules repo (CLAUDE.md, AGENTS.md, .cursorrules, etc.) into a target project tree. npx-style installer for any agent rules repo.
Alternatives in Design
- Brand Guidelines — Apply Anthropic's official brand colors and typography to artifacts 94.1k ★
- Design Expert — Apply expert UX/UI design thinking to design, redesign, enhance, or fix any interface element with meticulous 348 ★
- Platform Design Skills — 300+ design rules from Apple HIG, Material Design 3, and WCAG 2.2 for cross-platform apps 261 ★
README
apply-agent-rules
[](https://www.npmjs.com/package/apply-agent-rules) [](https://www.npmjs.com/package/apply-agent-rules) [](./LICENSE)
Install agent rules into a target project, preserving directory structure. Works like `npx skills`: any git repo is a valid source.
What is this? (read me first)
**First, a feature of AI coding agents that a lot of people don't know about.** Most folks assume an agent reads a single rules file at the repo root (one `CLAUDE.md`, one `AGENTS.md`) and that's it. But agents like Claude Code, Codex, and Cursor also read rules files **inside subdirectories** — and a rules file in a folder only applies while the agent is working in that folder.
That means you can put a `CLAUDE.md` in `app/Models/` with rules just for models, another in `database/migrations/` with rules just for migrations, and so on. Localized rules, sitting right next to the code they govern, automatically picked up when the agent touches that part of the tree. It's a powerful feature, and it's the whole reason this tool exists.
The catch: those per-directory files are valuable but painful to share. Each agent reads a *different* filename (Claude Code → `CLAUDE.md`, Codex/others → `AGENTS.md`, Cursor → `.cursorrules`, Windsurf → `.windsurfrules`…), so if you want the same conventions across many repos you end up hand-copying a whole *tree* of files, under every agent's name, in every project. They drift instantly.
`apply-agent-rules` fixes that. You keep one rules repo whose **directory layout mirrors a real project**, then install it into any project. The tool walks the whole tree and drops each rule file at the **same relative path**, rendered to whichever agents that project uses. `update` later re-pulls **without clobbering edits you've made locally**. Think `npx
Related Skills
UX Fix
Opt-in fix loop. Reads the latest report from .ux/, validates working tree, and applies findings as atomic com
Dsh Tui
Claude Code-style terminal UI for DeepSeek Harness agents, as an out-of-tree dsh plugin bundle
Claude Files Pane
A file explorer for Claude Code: see what Claude reads, edits and commits, live, in a VS Code-style file tree
Submitcheck
Check whether a LaTeX paper meets the submission requirements of a target journal. Verifies page count, requir
Improve Loop
Run an autoresearch-style keep-or-rollback loop against a measurable target (software only)
Co Change
List files that historically co-change with a target (git log heuristic; CO_CHANGE-style)
Related Agents
View Dependency Tree
npm ls yarn list pnpm list npm outdated yarn outdated npm audit yarn audit npx depcheck npx webpack-bundle-ana
Target Verifier
Real-install verifier — proves the marketplace and the installer
CoderX
Lean coding agent. Owns implementation of features, bug fixes, refactors, and tests. Must apply engineeringX p