create-rule
Skill1 starsChanged 13 days agoMITView on GitHub
Creates rule files that define always-on constraints for agent sessions. Investigates the repo for existing conventions, writes a RULE.md with clear structure, and validates against real usage. Use when the user wants to create a rule, add a convention, enforce a standard, establish a project-wide constraint, define coding style, standardize formatting across generated files, notices inconsistent output across sessions, or is setting up a new project's conventions.
18 other projects use a version of this.
Adopted by
Most recently taken up by
- pahlevikun/levistacktheir own version, first seen Oct 25, 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 10 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
MicrosoftSkillcreate-hook
Create a hook (.json) to enforce policy or automate agent lifecycle events.
Also in 9 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
- +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 repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- openkata-eval-runnerSkill
- openkata-optimize-skillsSkill
- openkata-review-ruleSkill
- openkata-review-skillSkill
- openkata-rule-conventionsSkill
- openkata-ryu-releaseSkill
- openkata-skill-conventionsSkill
- commit-conventionsSkill
- create-adrSkill
- create-evalsSkill
- create-profileSkill
- create-skillSkill
- critical-thinkingSkill
- github-create-prSkill
- git-worktreeSkill
- grill-meSkill
- grill-with-docsSkill
- makefile-conventionsSkill
- spec-workflowSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 18 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Create rules — always-on constraints applied to every agent session.
- Distinctive: line 37
Don't ask the user what you can look up yourself.
- Distinctive: line 70
Verify the conventions are consistent with what's already there
“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 Rule
Create rules — always-on constraints applied to every agent session. Unlike skills, rules don't need triggers. They're loaded at session start and apply to all work.
Workflow
- Gather intent — Understand what the rule should enforce.
Collect:
- A short name (lowercase, hyphenated)
- What conventions or constraints to enforce
- Any style guides or standards to draw from
Investigate the repo — Before asking questions, search for facts that reduce ambiguity:
- Existing rules and conventions
- Style guides, linter configs, or formatting standards
- Patterns in existing files that reveal implicit conventions
Don't ask the user what you can look up yourself.
- Clarify — Ask only questions that materially affect the
rule. Push until these are clear:
- Which file types or contexts the rule applies to
- Hard requirements vs preferences
- Any exceptions or edge cases
Write RULE.md — Structure:
# Rule Name Brief description of what this rule enforces. ## Section - Convention one - Convention twoWriting principles:
- Be specific. "Use
-for unordered lists" is enforceable. "Use consistent formatting" is not. - State conventions, not explanations. The agent doesn't need to know why a convention exists to follow it.
- Group by concern. Separate sections for structure, spacing, emphasis, etc.
- Keep it short. Rules are loaded every session — every line costs tokens on every interaction.
- Be specific. "Use
- Validate — Check the rule against existing files:
- Pick 2–3 representative files in the repo
- Verify the conventions are consistent with what's already there
- Note any conflicts with existing patterns
- Confirm — Show the user the created rule and ask if adjustments are needed.
Example Scenario
User: "Every model formats markdown differently, I want consistency."
- Skill checks repo for
.editorconfig, linter configs, existing rules — finds none - Asks: "Which conventions matter most — headings, lists, code blocks, line length?"
- Reads 2–3 existing markdown files to extract implicit patterns
Creates
markdown-style/RULE.mdwith specific, enforceable conventions grouped by concern:# Markdown Style Enforces consistent markdown formatting across all generated files. ## Lists - Use `-` for unordered list items, never `*` or `+`. - Indent nested lists with 2 spaces. ## Headings - Use ATX headings (`#`), never setext (`===` or `---`). - One blank line before and after every heading. ## Code Blocks - Use fenced code blocks (` ``` `) with an explicit language tag. - Never use indented code blocks. ## Line Length - Wrap prose at 80 characters. - Do not wrap code blocks or tables.- Validates against existing files — no conflicts
Common Failures
- Too vague to enforce — "use consistent formatting" is
unenforceable. "Use
-for unordered lists" is clear. - Conflicts with existing tooling — the rule says one thing,
the linter config says another. Check for
.editorconfig, linter configs, and formatter settings first. - Too long — rules load every session. A 200-line rule costs tokens on every interaction, even when irrelevant.
- Overlaps with existing rules — check
.agents/rules/for rules that already cover the same concern.
A good rule is enforceable by reading it literally. If an agent has to interpret intent, the rule is too vague.
Quality Checklist
Before finalizing, verify:
Design
- Every convention is specific enough to apply mechanically
- No convention requires inferring intent
- Sections are grouped by concern, not by discovery order
Validation
- Checked 2–3 existing repo files — no conflicts found
- Checked
.editorconfig, linter configs, and formatters - Checked
.agents/rules/for overlapping rules
Token efficiency
- No sentence that restates another
- No explanations — only conventions
- Rule is as short as it can be while remaining complete
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.

