/workflows:jev-rulesfrom workflows
Creates and calibrates Jev rule checks from written rules. Handles rule creation, calibration, wiring, and troubleshooting misbehaving rules.
Ships in workflows. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
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.
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
references/triage.md. Script before Jev.bun ${CLAUDE_SKILL_DIR}/scripts/new-rule.ts <set> <ID> [--layout files|diff] creates
the module in the set's checks/<workflow>/rules/uncalibrated/ (a new set is the workflow
checks/<set>/), identical placeholder twins, the manifest entry and a stub test
under tests/jev-rules/. It refuses to overwrite. --manifest <path> targets another plugin's
calibration set (teaching's carries a root key).references/extractor.md: deterministic, bounded, file:line spans, the counts and
booleans the proposition reads, diff-scoped via changed, never the whole file.references/proposition.md: ONE checkable claim, YES = VIOLATED, the state field
it reads, every exemption named.references/fixtures.md. The stub test stays red until the twins differ.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-cross only when one defect rightly breaks both rules).workflow:, the per-edit mod needs a path
test in ruleSetOf (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.
every_assertion_on_mock); the fixture was not touched.--wire adds a third invocation within 0.03 of a bar.| About to | Why wrong | Do instead |
|---|---|---|
| About to edit a twin after seeing its score | the calibration then measures your edit, not the rule | add a corrected vio2/sat2 beside it; the old twin stays |
| About to relabel an accepted real case violating | the user accepted it; only they rule it wrong | ask; record the ruling in the manifest source and the docstring, then add a cured twin |
| About to hand the extractor's whole file to the state | the judge guesses, as on 9 of 10 ds rules | extract the spans and the count the proposition reads |
About to move a module out of uncalibrated/ by hand | it skips the two-invocation gate | new-rule.ts --wire |
About to change blockAt or the manifest criterion for one rule | every rule's evidence was measured against 0.85 / 0.5 | fix the question or the extractor, or park |
| About to try a fourth wording for a rule that failed two rounds on accepted work | T-ECHO never moved; T-TRANSITION wired only after the user ruled the bridge is the first and last sentence across the break | ask the user which is right, or park with the numbers in the docstring |
references/calibration.md (opens in a new tab)references/diagnosis.md (opens in a new tab)references/extractor.md (opens in a new tab)references/fixtures.md (opens in a new tab)references/proposition.md (opens in a new tab)references/triage.md (opens in a new tab)scripts/new-rule.test.ts (opens in a new tab)scripts/new-rule.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
As a github or url source: Failed to clone repository: fatal: clone of '[email protected]:edwinhu/bmll-skill.git' into submodule path 'skills/bmll' failed
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
86 skills in this plugin
/afkUse when the user says '/afk', 'afk', 'going to bed', 'I'm going to sleep', 'work autonomously', 'work on this overnight', 'don't ask me questions', 'while I'm away', or 'do whatever you think is best'. NOT for questions about overnight returns, rates or anything financial; NOT for asking how the mode works./ai-anti-patternsALWAYS load before finalizing ANY written prose, and whenever text is suspected of being machine-written - "does this sound like AI", "make this sound human", "clean up the AI-isms", "did a bot write this", "check this draft before I send it", "review this for AI tells", "this reads like ChatGPT", "review this for mannered prose", "is this too writerly", "is this student paper AI-generated", or before handing back any draft, memo, email, or article you wrote. Use proactively even if the user never mentions AI writing./Other plugins' skills for the same job