create-rule
Skill0 starsChanged 18 days agoMITView on GitHub
Create, audit or tighten persistent rules for coding agents: .claude/rules/*.md, .cursor/rules/*.mdc, a catalog rules/ tree, CLAUDE.md or AGENTS.md. Use when asked to add a rule or coding standard, scope a rule to file globs or paths, fix a rule the agent ignores, or decide whether something is a rule, a skill or a hook.
18 other projects use a version of this.
Adopted by
Most recently taken up by
- tovrleaf/openkatatheir own version, first seen Nov 1, 2026
- ArangoGutierrez/claude-toolkittheir own version, first seen Oct 15, 2026
- 0mlkrizzz655335v/claude-skills-zhtheir own version, first seen Oct 15, 2026
- paultyng/skill-issuetheir own version, first seen Oct 13, 2026
- leishifu666/skillstheir own version, first seen Oct 9, 2026
- OffchainLabs/arbitrum-docstheir own version, first seen Oct 8, 2026
Used with
Projects with it also use review-bugbot, update-cli-config and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
0mlkrizzz655335vSkillreview-bugbot
缺陷导向代码审查。用 Bugbot 子代理找 bug。
Also in 5 projects that use this
PandelisZSkillupdate-cli-config
View and modify Cursor CLI configuration settings in ~/.cursor/cli-config.json. Use when the user wants to change CLI settings, configure permissions, switch approval mode, enable vim mode, toggle display options, configure sandbox, or manage any CLI preferences.
Also in 7 projects that use this
0mlkrizzz655335vSkillorigin
origin CLI 管理。安装、登录、更新、修复 origin.cursor.com 的 CLI。"disabled-environments:
Also in 3 projects that use this
Tsumugii24Skillsplit-to-prs
Split current work into small reviewable PRs. Use when the user asks to split a chat, set of changes, branch, or PR.
Also in 7 projects that use this
testdino-hqSkillshell
Google's official Shell scripting style guide. Covers Bash scripting, naming conventions, error handling, portability, and shell best practices.
Also in 7 projects that use this
MicrosoftSkillautomate
Propose an automation from a completed task or a new idea, then create it after approval. Use when the user asks to create an automation or wants scheduled local or cloud agent work.
Also in 4 projects that use this
- +3 more from 0mlkrizzz655335v
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- cartography-cncf/cartography★ 4.2ksame name
- ComplianceAsCode/content★ 2.8ksame name
- OffchainLabs/arbitrum-docs★ 252same name
- seqra/opentaint★ 172same name
- mgiovani/cc-arsenal★ 8same name
- paultyng/skill-issue★ 8same name
- ArangoGutierrez/claude-toolkit★ 4same name
- ralphkrauss/agent-orchestrator★ 4same name
- 0mlkrizzz655335v/claude-skills-zh★ 2same name
- 32103210/cursor-skills★ 1same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository57 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/comments.mdcCursor rule
- .cursor/rules/commit-messages.mdcCursor rule
- .cursor/rules/git-workflow.mdcCursor rule
- .cursor/rules/manage-stack.mdcCursor rule
- .cursor/rules/no-worktrees.mdcCursor rule
- manage-stackSkill
- convert-as-skillSkill
- create-agentSkill
- create-agents-mdSkill
- create-commandSkill
- create-hookSkill
- create-skillSkill
- retrospectiveSkill
- super-architectureSkill
- super-cachingSkill
- super-elixirSkill
- super-nodejsSkill
- super-protobufSkill
- super-tech-blueprintSkill
- atomic-semantic-commitSkill
- code-reviewSkill
- create-bruno-collectionSkill
- create-documentationSkill
- create-ticketsSkill
- ready-specSkill
- write-adrSkill
- write-changelogSkill
- write-mr-descriptionSkill
- write-planSkill
- write-postmortemSkill
- write-runbookSkill
- noslopSkill
- output-saversSkill
- safe-refactorSkill
- tddSkill
- verifySkill
- get-movingSkill
- later-listSkill
- standupSkill
- challenge-meSkill
- codebase-learnerSkill
- researchSkill
- second-opinionSkill
- traceSkill
- color-kitSkill
- design-system-kitSkill
- diagramSkill
- infographicSkill
- product-polish-workflowSkill
- prototype-wireframeSkill
- ui-ux-kitSkill
- evidenceSkill
- find-skillsSkill
- handoffSkill
- rumblingSkill
- use-levistackSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
A rule earns its tokens every session: If it only matters for one task, make it a skill.
- Distinctive: line 32
Give the reason in one clause: when it is not obvious, so the agent can judge edge cases.
- Distinctive: line 34
No contradictions: Read the existing rules first.
- Distinctive: line 35
Scope as narrowly as is true: Always-on only for what holds in every task.
- Distinctive: line 65
Test it: Start a fresh session, do a task the rule covers, and confirm it was followed.
- Distinctive: line 69
Put secrets, personal paths or employer names in a shared rule.
- Very specific: line 70
Write globs: *.ts unquoted (YAML reads * as an alias).
“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Create a rule
A rule is a short, standing instruction that is loaded into context, always or when matching files are touched. It guides; it does not enforce. If an action must be blocked every time, use a hook.
Principles
- A rule earns its tokens every session. If it only matters for one task, make it a skill. If it must be enforced, make it a hook.
- One concern per rule, under 50 lines. Split a long rule by topic.
- Say what to do, concretely. "Use
snake_casefor Python functions" beats "follow naming conventions". Give a good and a bad example when the fix is not obvious. - Give the reason in one clause when it is not obvious, so the agent can judge edge cases.
- Do not restate a linter or formatter. Point to the tool's command instead.
- No contradictions. Read the existing rules first. Edit an overlapping rule rather than adding a competing one.
- Scope as narrowly as is true. Always-on only for what holds in every task; otherwise scope by globs or by description.
Rule, skill, hook, or AGENTS.md?
| It is... | Use |
| A standing preference or constraint for every task | Always-on rule, or AGENTS.md / CLAUDE.md for repo facts and commands |
A convention for certain files (**/*.ts, migrations/**) | File-scoped rule |
| A procedure with steps, run on demand | Skill (create-skill) |
| Must be enforced, blocked or automated | Hook (create-hook) |
Steps
- Gather requirements. Infer from the conversation; ask only for what is missing:
- what the rule enforces or teaches;
- scope: always, certain files (concrete globs, not "the backend"), or by description only;
- target: which tool and which folder (step 3). You may write several rules when the conversation covers distinct topics.
- Check overlap. List the rule files in the target tree and read the nearest ones.
Pick the format by target. Details and frontmatter are in formats.md.
Target File Claude Code .claude/rules/<name>.md, optionalpaths:Cursor .cursor/rules/<name>.mdcwithdescription,globs,alwaysApplyA shared catalog rules/<topic>/<name>.md; a sync step may generate the.mdccopiesBoth tools, one repo Follow what the repo already does (often one tree symlinked into the other) - Write it from templates/rule.md. Lead with the instruction, not a title paragraph. Quote YAML values that contain
:,#or start with*. - Check it.
node scripts/check-rule.mjs <file-or-dir>catches YAML traps, a rule that can never apply, contradictory scope fields and oversize. In a repo with its own validation (for examplenpm run validate), run that too. - Test it. Start a fresh session, do a task the rule covers, and confirm it was followed. For a file-scoped rule, open a matching file and a non-matching one. If it is ignored, shorten it, make it more specific, or move enforcement to a hook.
Do not
- Put secrets, personal paths or employer names in a shared rule.
- Write
globs: *.tsunquoted (YAML reads*as an alias). Writeglobs: "**/*.ts". - Mark everything
alwaysApply: true. Always-on rules compete for attention. - Duplicate a rule in two folders by hand. Generate or symlink instead.
Related skills
create-hook: the rule must be enforced, not just asked.create-skill: the guidance is a procedure, not a standing rule.create-agents-md: the rule belongs in AGENTS.md or CLAUDE.md.convert-as-skill: turn a rule into a skill.
Done when
- The file is in the right folder for its tool, with frontmatter that tool reads.
check-rule.mjsreports no errors and the repo's own validation passes.- The rule is one concern, concrete, and does not contradict another rule.
- A fresh session followed it on a real task.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

