Repository navigation
v0.18.0
The refactor path gets real safety mechanics — found by a 6-lens adversarially-verified audit.
Added
/refactor: reference sweep before editing (PascalCase and kebab-case tags, alias and relative imports, lazyimport()strings, barrel re-exports, string-keyed i18n/analytics/route/storage keys — grep is the only net in JS projects); strangler-fig migration for many-caller replacements; red-step abort rule (revert, never edit an assertion to green a refactor); visual-parity check when template/styles move; a codemod procedure for mechanical many-file changes. Sweep + abort rule mirrored inrefactoring-expert.architecture.md: Split a fat store pattern (domain split, demote to local, actions → plain functions, server data → query layer;defineStoreid is public API) and the scoped-<style>breakage gotcha on leaf extraction.workflow.md: markup-moving refactors addaccessibility-auditorto the Refactor verify board — focus/label/aria wiring breaks with tests green.
Fixed
/refactordelegation criterion now matchesworkflow.md("large, bounded restructuring") and drops the false "least-privilege" tag on a write-capable agent.