add-rule

Convert code corrections into conventions-doc rules with enforced lint guards.

21|1|Updated Jul 22, 2026
One-click install
npx skills add https://github.com/uiverify/uiverify --skill add-rule-uiverify
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: add-rule
Source: https://github.com/uiverify/uiverify/tree/main/packages/skills/skills/add-rule
Command: npx skills add https://github.com/uiverify/uiverify --skill add-rule-uiverify

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Recurring code mistakes get corrected repeatedly by reviewers or CI but never become durable, enforced rules, so the same errors keep reappearing across sessions and pull requests. ## Core Features & Use Cases - Correction Routing: Classifies a correction as a code-convention rule, a process preference, or a one-off, and only codifies what genuinely recurs. - Layered Enforcement: Prefers mechanical guards in order - existing linter rules, import-boundary rules, custom guard scripts, then prose-only conventions-doc entries as a fallback. - Sweep Mode: Runs a weekly pass over recent merged PRs and review outputs to propose a batch of rules worth codifying. - Use Case: After a reviewer corrects hand-written route paths for the second time, invoke the skill to add a conventions-doc rule plus a failing lint guard that catches the pattern on every future push. ## Quick Start Ask the agent to turn the latest review correction into a durable rule with a lint guard, or run the weekly sweep to propose rules from recent merged work.

Frequently Asked Questions about add-rule

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn a code review correction into a lint rule?▼

State the correction as a single "when X, do Y" sentence with the reason, then pick the cheapest mechanical enforcement layer: an existing linter rule, an import-boundary rule, or a custom guard script. Add the matching conventions-doc entry and verify the guard fails on a real violation before committing.

What is the best way to enforce codebase conventions automatically?▼

Prefer mechanical enforcement over prose: linter rules for AST patterns, dependency-cruiser or ESLint boundary plugins for import restrictions, and custom guard scripts for regex-checkable conventions. Prose conventions-doc rules are the fallback only when a rule cannot be mechanized.

Can a lint guard have pre-existing violations in the codebase?▼

No. A mechanical guard must be zero-false-positive on the current tree since it runs on every push. If violations exist that cannot be cheaply fixed, either fix them in the same change, narrow the guard's scope, or keep the rule as prose only.

When should a correction not become a rule?▼

Skip codification for genuine one-offs like typos or single-occurrence preferences with no plausible recurrence. Process preferences about working style belong in cross-session guidance, not lint rules. Only recurring, generalizable code mistakes justify a new enforced rule.

How do I run a weekly review of rules worth adding?▼

Invoke the skill in sweep mode to scan recent merged PRs, review outputs, and corrections from recent sessions. It proposes a batch of candidate rules for patterns worth codifying, and each proposal still requires your confirmation before anything is written.