code-hygiene-cleanup
Execute a bounded ClawJS/Clawix code hygiene cleanup campaign from an audit report, one category and repo at a time.
- License 许可
- MIT
- 所属仓库
- clawic/Clawix
- 最近更新
- 2026-06-06
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- code-hygiene-cleanup
- keywords
- [ "code-hygiene", "cleanup", "dead-code", "unused", "refactor", "validation" ]
- description
- Execute a bounded ClawJS/Clawix code hygiene cleanup campaign from an audit report, one category and repo at a time.
03 SKILL.md 正文
code-hygiene-cleanup
Use this skill when the user explicitly asks to clean code hygiene findings or continue the code hygiene goal.
Procedure
- Start from a current
code-hygiene-auditreport and the 33-decision checklist. - Choose exactly one repo and one category for the batch: dependencies, orphan files, private exports/types, tests/fixtures, assets/SVG, Swift report-only review, TODOs, or duplicates.
- Re-run or inspect scanner output after entrypoint calibration. For Knip, separate clear private debt from public API/protocol/UI/icon barrels and framework route/config false positives.
- Preserve public API, package entrypoints, CLI/router/registry/protocol surfaces, canonical docs, fixtures, stable registries, and compatibility names unless an explicit removal decision exists.
- Make the smallest cleanup that removes proven debt. Future intent must move to issue/backlog/ADR rather than dormant code.
- When retaining a finding, add or update a baseline entry with reason, owner area, reference, and expiry; never hide a real bug behind
EXTERNAL_PENDING. - For large generated/baseline refreshes, record generated provenance with
generator,command,source,upstreamHash,regenerationMode,deltaSummary,debtImpact, and conditionaldebtImpactReason. The delta must explain what changed and the debt impact must say whether cleanup debt decreases, stays neutral, or increases. - Run the relevant checks for the batch before moving on. Record validation and baseline removals/additions in the ledger.
Constraints
- Autofix is suggestion-only by default; do not run destructive fixes or remove files without explicit task scope.
- Keep enum members, Swift dynamic-use findings, and duplicates report-only until reviewed.
- Do not use
@generated, a baseline filename, orgeneratedPathsalone to hide a large generated/baseline change. - Do not batch unrelated cleanup categories together.
- Do not modify unrelated dirty work while cleaning; record it separately if it affects validation.
04 同仓库更多 Skills
visual-regression
Run and interpret Clawix UI geometry, screenshot, protected-surface, and debt-baseline checks without authorizing visual repair.
ui-performance-budget
Capture and compare Clawix UI performance budgets for critical flows before optimizing visible or runtime UI behavior.
ui-implementation
Implement functional Clawix UI wiring while respecting visual mutation boundaries, pattern contracts, protected surfaces, and debt baselines.
ui-canon-review
Review whether a Clawix UI pattern, visual decision, copy change, or component extraction belongs in canon, debt, exception, or protected-surface scope.
theme-factory
Produce variants of an existing Style by shifting tone (light/dark), density (compact/relaxed), or accent (palette rotation) while preserving the brand identity. Use when the user wants alternate themes derived from one brand.
template-render
Render a Template + data + Style into a final artifact in one of HTML, PDF, PNG, SVG or PPTX. Use whenever the user asks for a concrete deliverable like "make me a poster", "render a card", "give me a one-pager".