konsistent-fix-violations
Installation
SKILL.md
konsistent — Fix Violations
Run konsistent, surface what is broken, and resolve violations. The hard part is not the mechanical fix — it is deciding whether the rule or the code is wrong when a single rule has many violations, and which non-trivial violations are worth attempting versus deferring.
The canonical workflow and per-predicate triage rubric are documented in node_modules/konsistent/docs/guides/fixing-violations.md. Read it before classifying violations. This skill layers strict gating, user confirmation, and AskUserQuestion interactions on top of that workflow.
Workflow (strict order)
- Run the CLI and collect all violations as JSON.
- Group violations by rule and identify rules with high violation counts.
- For each high-count rule, ask the user whether to keep, change, or remove the rule.
- Update
konsistent.jsonvia thekonsistent-configskill if any rules need changes. - Re-run the CLI to refresh the violation list, then stop and ask for explicit confirmation before modifying any code.
- Triage remaining violations into trivial vs. non-trivial.
- Surface non-trivial violations to the user and let them decide how to handle each.
- Fix the approved violations and re-run the CLI to verify.
Do not skip steps. Do not collapse them. The asks for user input at steps 3, 5, and 7 are non-negotiable.