rule-creator
Skill692 starsChanged 6 days agoApache-2.0View on GitHub
Create and format agent rules with proper front matter in the
3 other projects use a version of this.
Adopted by
Most recently taken up by
- adeonir/agent-skillstheir own version, first seen Oct 13, 2026
- bis-code/claude-toolkittheir own version, first seen May 29, 2026
- aka-momo/claude-doctortheir own version, first seen Mar 6, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- adeonir/agent-skills★ 8same name
- bis-code/claude-toolkit★ 8same name
- aka-momo/claude-doctor★ 0same name
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 repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analyze-ci-failureSkill
- buildkite-get-resultsSkill
- conversation-doneSkill
- create-newsSkill
- create-prSkill
- merge-prSkill
- monitor-ci-resultsSkill
- process-dependabot-prsSkill
- retry-ci-jobSkill
- review-codeSkill
- sync-git-branch-continuouslySkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Use this skill when you need to create a new rule for the agent in the workspace.
- Very specific: line 12
All workspace-specific rules must be created as individual Markdown files under the .agents/rules/ directory:
- Distinctive: line 20
Every rule file must start with a YAML front matter block defining the trigger condition, followed by the rule content in Markdown.
- Very specific: line 39
Use for syntax/formatting rules tied to specific file types.
- Very specific: line 44
Keep language and tool rule files (starlark.md, bzl.md, python.md, docs.md) general to those domains.
- Very specific: line 46
Place rules_python-specific Bzlmod, PyPI, and rule API invariants in .agents/rules/rules_python.md.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Use this skill when you need to create a new rule for the agent in the workspace.
Rule File Location
All workspace-specific rules must be created as individual Markdown files under
the .agents/rules/ directory:
.agents/rules/<rule-name>.mdRule Format
Every rule file must start with a YAML front matter block defining the trigger condition, followed by the rule content in Markdown.
---
trigger: <trigger-condition>
---
# <Rule Title>
<Rule description and directives...>Trigger Conditions
always_on: The rule is always active and must be followed for all tasks.model_decision: The agent loads the rule based on itsdescriptionwhen relevant. Prefermodel_decisionfor conceptual, architectural, or cross-cutting rules (e.g.,pr.md,rules_python.md).glob: The rule activates when matching files (globs:) are accessed. Use for syntax/formatting rules tied to specific file types.globsmust be a quoted, comma-separated string (e.g.,globs: "*.bzl,BUILD.bazel"), never a YAML list/sequence.
Domain Separation
- Keep language and tool rule files (
starlark.md,bzl.md,python.md,docs.md) general to those domains. - Place
rules_python-specific Bzlmod, PyPI, and rule API invariants in.agents/rules/rules_python.md.
Formatting Guidelines
- Line Wrapping: Wrap all text to 80 columns.
- Prose Style (Strunk & White): Omit needless words. Do not use mannered prose or verbose phrasing; state directives directly in active voice.
Example
To create a rule that prevents adding copyrights:
---
trigger: always_on
---
# No Copyrights Rule
Unless directed by the user otherwise, do not add Bazel copyright to new or
existing files.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.

