rule
Skill2 starsChanged 2 months agoMITView on GitHub
Turns a plain-language rule description into one or more entries in .jevguard/rules.json. Invoke it explicitly with /jevguard:rule <description> when the user dictates a specific rule to add, rather than asking for a full /jevguard:init scan.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- officialunofficial/skillstheir own version, first seen Nov 29, 2026
- vale-cli/agent-toolstheir own version, first seen Nov 29, 2026
- sanmidable/skillstheir own version, first seen Nov 8, 2026
- raphaelsalaja/skillstheir own version, first seen Nov 1, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- raphaelsalaja/skills★ 72same name
- vale-cli/agent-tools★ 10same name
- officialunofficial/skills★ 7same name
- sanmidable/skills★ 2same 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.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
1
Distinctive
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
- Very specific: line 13
Always write instructions and criteria in English, regardless of the conversation's language.
- Very specific: line 45
Leave action unset unless the description says this rule should behave differently from the project default (e.g.
- Distinctive: line 49
If the description is genuinely ambiguous about what should trigger the rule (not just missing a field you can default), ask one short …
- Very specific: line 78
Read the existing .jevguard/rules.json first (if it exists) and add to it: don't overwrite other rules.
- Very specific: line 83
Write the file, then run node "${CLAUDE_PLUGIN_ROOT}/dist/bin/jevguard-validate.js" and fix whatever it reports.
“Common” is measured: kept by at least 6 in 10 of the 4 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
The user described a rule in plain language: $ARGUMENTS
Turn it into one or more entries in .jevguard/rules.json, following the
same conventions as /jevguard:init:
- Always write
instructionsandcriteriain English, regardless of the conversation's language. - Pick
type(noulfor yes/no,scorefor a scale,choicefor a fixed set of categories) based on what the description actually asks for. - For
noul, phraseinstructionsas a direct, positive statement about what IS present/true, never a negation ("avoid X"); pickpass_ifaccordingly instead of flipping the wording. - For
score, the schema only supportsmin_scoreas a floor (score must be>=it): there's no ceiling. If the rule is about NOT wanting too much of something, ordercriteriawith the clean/desired state as the LAST (highest) level, and setmin_scorenear that top value. Every level's description must itself be a direct positive statement of what that level looks like, same rule asnoul.
Before writing the rule, check whether Jev can actually judge it. Jev
only ever sees the content being written right now (state), never a
diff, never the previous version, never what happened in earlier turns.
That means:
- Good fit: anything visible in a single snapshot of the content, such as style, presence of a pattern, language, tone, whether something is mentioned.
- Bad fit: anything that requires comparing to a previous version, such as
"keep this backward compatible", "don't change the behavior", "don't
regress performance". These need an old-vs-new diff Jev doesn't reliably
get from a single noul/score question on the new content alone. Don't
create a rule like this; tell the user why and suggest scoping it down to
something checkable in the current content (e.g. "the function signature
named in
instructionsstill appears unchanged" is closer to checkable than "behavior is preserved"). - Pick
scope(edit/bash/response/all) from what the description implies the rule should check. If it's ambiguous, default to the narrowest scope that matches the literal description rather thanall. - Leave
actionunset unless the description says this rule should behave differently from the project default (e.g. "always block this, no exceptions" ->action: "block").
If the description is genuinely ambiguous about what should trigger the rule (not just missing a field you can default), ask one short clarifying question before writing anything. Don't stall on things you can reasonably default.
Calibrate min_score with real numbers, don't guess it. Temporarily set
min_score to an unreachable value like 99, then trigger the rule with
three test writes: a clear violation, clearly clean content, and a short or
minimal edge case (Jev tends to answer less confidently on very short
input, so test that separately from a realistic full-length one). Every
write will report a score X, required >= 99 failure with the real
number. Read the three scores and set the real min_score between the
clean case and the violating ones, with margin. Then remove the 99.
Gotcha: while min_score is still at the unreachable calibration value,
editing .jevguard/rules.json to fix it also gets blocked, because the
rule fails by construction on any content, including the fix itself. Ask
the user to run /jevguard:pause first; never invoke it yourself.
If a noul rule turns out unstable (the same or similar content passes
one time and fails another, or only weakly crosses 0.5), don't keep
tweaking the wording: switch it to score. noul is reliable for clear
semantic things (an emoji is present, the text is in English, a function
has a comment) but weaker for subtle, low-signal patterns, such as a
specific punctuation mark (a double hyphen used as a dash, for example).
A score with 2-3 explicitly described
levels gives the model concrete anchors instead of one loose yes/no
boundary, which tends to produce a cleaner separation between passing and
failing content.
Read the existing .jevguard/rules.json first (if it exists) and add to
it: don't overwrite other rules. Pick an id that doesn't collide with an
existing one; if the description is clearly meant to replace an existing
rule, say so and confirm before overwriting it.
Write the file, then run
node "${CLAUDE_PLUGIN_ROOT}/dist/bin/jevguard-validate.js" and fix
whatever it reports.
Close with the id(s) you added or changed and a one-line description of what each now checks.
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.

