npx skills add ...
npx skills add gjkim42/kanon-repo --skill design-cleanup
Sweep the current branch for leftovers of an abandoned design after a significant mid-work decision change, and rewrite the affected code, comments, tests, and docs so the result reads as if it had been designed this way from the beginning. Use when the user says "design cleanup", "clean up the old approach", "erase the journey", says a design decision changed and asks to clean up after it, or after a pivot in approach mid-branch. This is a rewrite pass over the code touched by the decision only — not a general refactoring or bug-hunting pass.
npx skills add gjkim42/kanon-repo --skill design-cleanup
When a design decision changes mid-work — a different approach, a renamed concept, a replaced mechanism — the branch tends to keep fossils of the abandoned design: dead branches, shims that only served the old path, names shaped by the old concept, comments narrating the change, tests pinning behavior that no longer matters. The diff may show the journey; the final tree must not. This skill hunts those fossils down and rewrites the result as if the current design had been there from the beginning.
State the decision as one line: "the design is X; the abandoned approach was Y". Take it from the user or the session context. If it is not stated, reconstruct it from the branch diff and commit messages, then confirm the one-line summary with the user before making sweeping edits — cleanup against a misread decision destroys correct code.
git diff $(git merge-base HEAD origin/main)...HEAD
(fall back to origin/develop, then develop).Check each category against the in-scope files:
newParser, handleV2, legacyFoo, or a module layout
organized around a concept that no longer exists.previously|instead of|no longer|old |new |V2|legacy — hits are
candidates to fix, not automatic violations; judge each.