/uiverify-workflow:add-rule [the correction - or "sweep" for the weekly pass]from UI Verify Workflow
Turns a code-owner correction or recurring mistake into a durable rule by editing conventions docs and adding a failing lint guard when mechanically checkable. Supports point mode for specific corrections and sweep mode for weekly pattern review.
Ships in UI Verify Workflow. 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.
None: SKILL.md is the whole skill.
When you (or a reviewer, or CI) correct the same class of mistake twice, that's a rule waiting to
exist. This skill turns a correction into something durable: the right conventions-doc edit (a
CLAUDE.md / AGENTS.md, root or a subtree's own), plus a
real failing guard whenever the rule can be checked mechanically. "The linter is law" only means
something if new laws actually get written - this is how they do. It's the manual, on-demand version
of the self-improving loop, and the thing /factory and /babysit-pr call when a failure generalizes.
Two modes:
route.test.ts", "don't put an em dash in
shipped copy". Capture that one./add-rule sweep): the weekly pass. Scan recent merged PRs, review outputs, and
corrections from recent sessions for patterns worth codifying, and propose a batch.
(This replaces a scheduled cron - you're one developer; run it when you feel the drift.)Execute directly - do not enter plan mode. Always land on a concrete proposal, then act on the user's yes.
A correction has one of three homes - pick before you write anything:
route.test.ts", "batch this, don't await per story") → this skill: a conventions-doc rule + a
lint guard. Continue to Step 1.The rest of this skill is the code-rule path.
Compress the correction to a single "when X, do Y (not Z)" with the why. If you can't state it crisply, it's not a rule yet - ask the user to sharpen it, or drop it. A rule that's really a one-off typo (no plausible recurrence) is not worth capturing; say so and stop.
The order of preference - a machine catches it before a human has to:
no-explicit-any / no-non-null-assertion). Cheapest and fastest.forbidden entry with
severity: "error" and a comment.name, the rule text, a fix hint, and a run() that returns the list of violations
(each with its file, line, snippet, and detail).A mechanical guard MUST be zero-false-positive on the current tree - it runs on every push, and a noisy guard trains everyone to ignore your linter/guard. If the clean-tree state already has violations you can't cheaply fix, either fix them as part of this change, scope the guard tighter, or fall back to prose and say why (this is exactly why a rule with many pre-existing intentional hits stays prose - e.g. an em-dash ban with hundreds of pre-existing hits, including intentional ones).
Match scope to file - a rule enforced in the wrong file gets missed:
Write it in the house voice: dense, a bolded "when X do Y" lead, the why stated (a hidden invariant, a real trade-off), and a pointer to the guard/decision that enforces or justifies it. Match the surrounding bullets - don't tack on a differently-styled section.
If you added a mechanical guard, the conventions-doc rule should name it ("...enforced by
") and the guard's rule/fix strings should point back at the conventions-doc
rule - so a future reader finds one from the other. They are a pair; never add one without the other
when the rule is mechanizable.
Before presenting: run the guard/lint on the current tree and confirm it's green (no false-positives), and - for a guard - construct one throwaway example to confirm it actually fails on a real violation (don't ship a no-op guard). Run your linter/guard to confirm the whole chain still passes.
Then present the concrete change for the user's OK: the one-sentence rule, the layer you chose and why, the exact conventions-doc diff, and the guard diff if any. Only write on a yes ("adds a rule agreed"). If the user amends it, fold that in and re-confirm.
If this rule reflects a real decision (you chose a convention, reversed one, learned something that changes the plan), offer to add an entry to your decision log, if you keep one, per your conventions doc's "ask, don't assume" policy - don't write it unprompted.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
lint-rules, conventions, code-quality, self-improvement, code-review
8 skills in this plugin
/babysit-prRaise a pull request from the current branch and babysit it to green. Opens the PR, then polls CI (~every 10 min) until every check passes, reacting to each failure by reading the logs, fixing locally, and pushing. When a failure exposes a generalizable lesson it proposes capturing it as a rule (via /add-rule). Does NOT approve or merge. Use when asked to "raise a PR", "open a PR and watch it", "push this and monitor CI", "get this PR green"./designMulti-model design/architecture loop - draft a design for a feature (or take an existing draft), critique it with two independent models in parallel against a repo-tuned rubric, then a principal-architect pass verifies each critique, resolves direction conflicts, and revises - iterating draft→critique→revise→re-critique until a clean cross-model pass or a round cap. The architecture analog of review-loop/review-multi-model, but there's no diff to check against, so critiques are anchored to a verbatim quote + a rubric dimension/requirement instead. Use when asked to "design X", "/design", "plan this feature", "architect this", "critique my plan", "give me a solid design before I build"./e2e-verifyStart your dev stack on isolated ports, authenticate Playwright with the user's browser session, and test the current branch. Use when asked to "e2e verify", "playwright test", "test everything", "test my changes with playwright", or "test this branch".npx claudepluginhub uiverify/uiverify --plugin uiverify-workflowOther plugins' skills for the same job