jev-rules
FreeRuns bundled scriptsNot checkedUse when a written rule should become a Jev rule check, or an existing one misbehaves — "turn this rule into a Jev rule", "add a rule check", "make this a Jev…
by edwinhu★ 28 GitHub starsAbout this skill
What this skill carries — grep references/ for any subject the names below miss:
!d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"
A Jev rule is three parts: a deterministic extractor (evidence()), one proposition a judge
answers with P(VIOLATED), and a calibration set that proves the two separate. The runner is
skills/work/scripts/rule-check.ts; the calibrator is skills/work/scripts/rule-calibrate.ts; a rule
blocks at p >= 0.85.
--wire exits 0 only after two consecutive rule-calibrate --runs 2 invocations pass on the final
code, with real accepted cases in the set. Never by loosening a fixture, relabelling an accepted case
without the user's ruling, or moving the bar. A rule that blocks accepted work costs the user every
later round it fires on; a rule wired on noise blocks at random. Both are worse than no rule.
Iron Law: SCRIPT BEFORE JEV
A rule a regex, AST walk or count settles is a script leg in the workflow's check.sh, never a Jev
rule. Jev is for the judgement residue. DQ1 sat at 0.62–0.66 on its own violation and 0.78–0.91 on
other rules' files until a script (ds-dq.py check_dq1) took it. T-NARRATE's accepted Texas notes held
0.50–0.61 over seven invocations; its screen-phrase lexicon, as the workshop NAR check, separates
every case of its set.
The process
triage ──► ALREADY MECHANICAL / COUNTED-ADVISORY / LENS ONLY ──► stop (name the owner)
│
├──► SCRIPTABLE ──► script leg in check.sh (diff-scoped to added lines)
│
└──► JEV RULE ──► new-rule.ts <set> <ID> ──► extractor ──► proposition ──► twins
│
real accepted cases (+ legacy-base ok/bad pairs) ◄───────┘
│
new-rule.ts --wire <set> <ID>
exit 0 ──► wire into the workflow (new set only) ──► trim the lens
exit 4 ──► diagnose (references/diagnosis.md) ──► fix ──► --wire again
twice failed on accepted work, rule text right ──► ask the user, or PARK
- Triage every rule into one bucket —
references/triage.md. Script before Jev. - Scaffold:
bun ${CLAUDE_SKILL_DIR}/scripts/new-rule.ts <set> <ID> [--layout files|diff]creates the module in the set'schecks/<workflow>/rules/uncalibrated/(a new set is the workflowchecks/<set>/), identical placeholder twins, the manifest entry and a stub test undertests/jev-rules/. It refuses to overwrite.--manifest <path>targets another plugin's calibration set (teaching's carries arootkey). - Extractor —
references/extractor.md: deterministic, bounded, file:line spans, the counts and booleans the proposition reads, diff-scoped viachanged, never the whole file. - Proposition —
references/proposition.md: ONE checkable claim, YES = VIOLATED, the state field it reads, every exemption named. - Twins and real cases —
references/fixtures.md. The stub test stays red until the twins differ. - Wire:
bun ${CLAUDE_SKILL_DIR}/scripts/new-rule.ts --wire <set> <ID>. Exit 0 moved the module; 2 = Jev unavailable (never a pass); 3 = a placeholder, TODO or empty case remains; 4 = calibration failed or a cross-rule hit (--accept-crossonly when one defect rightly breaks both rules). - A new set is a new workflow directory: plans name it in
workflow:, the per-edit mod needs a path test inruleSetOf(hooks/jev/rules.ts), and the lens a trim —references/calibration.md§ Wiring.
When --wire exits 0, start the next JEV row of the triage table at once; never stop after one rule.
Facts
- Rewording the question is the first fix, never the fixture. MOCK's violating twin went 0.51 →
0.92 when the proposition named the state field (
every_assertion_on_mock); the fixture was not touched. - A whole-file or raw-search state does not separate. 9 of the 10 ds rules were unwired (213223f6) until each extractor reported a defect count (e9c530ea).
- Accepted legacy work is scored on changed lines only. DQ4/DQ6 scored 0.94–1.0 on 4 of 7 accepted scripts; diff-scoped with legacy-base pairs, bad 1.00 and ok 0.00 (9dd3be43).
- A pass at the bar is noise; fix the state, not the bar. T-STORY's charter case sat at 0.84–0.89 until the extractor withheld the diagram labels that supplied the insight its comment lacked and gave closed-list flags instead: 0.99–1.00 (b3db6917). T-TAKEAWAY ranged 0.41–0.61 across 8 runs until its state stopped showing the s
Install jev-rules in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the jev-rules skill do?
Use when a written rule should become a Jev rule check, or an existing one misbehaves — "turn this rule into a Jev rule", "add a rule check", "make this a Jev check", "calibrate this rule", "why does my rule not separate", "my rule fires on accepted work", "my rule never blocks", "the violating case scores 0.6", "park this rule", "wire this rule", "unwire it", "add a rule set for <workflow>", "add a real case for this rule". Use proactively whenever a reviewer or lens keeps re-judging the same checkable rule, even if the user never says Jev. NEGATIVE ROUTING: running the existing rules over a change is rule-check.ts inside the workflow, not this skill; whether a phrase is an AI tic is ai-tic; a skill or workflow edit that only consumes rule checks is skill-creator or workflow-creator.
How do I install the jev-rules skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the jev-rules skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic