code-hygiene-audit
Audit ClawJS/Clawix code hygiene without editing code, producing categorized findings, baseline status, and validation evidence.
- License 许可
- MIT
- 所属仓库
- clawic/Clawix
- 最近更新
- 2026-06-06
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- code-hygiene-audit
- keywords
- [ "code-hygiene", "dead-code", "unused", "audit", "baseline", "cleanup" ]
- description
- Audit ClawJS/Clawix code hygiene without editing code, producing categorized findings, baseline status, and validation evidence.
03 SKILL.md 正文
code-hygiene-audit
Use this skill for recurring code hygiene audits, pre-release hygiene review, or cleanup campaign preparation.
Procedure
- Read the code hygiene ADR, decision map entry, decision checklist, baseline, ledger, and latest JSON/Markdown report.
- Confirm the public code-hygiene decision checklist and inspect every recorded decision before classifying findings.
- Run the non-mutating hygiene checks and scanners that are available: local unused checks, Knip for TS/JS, Periphery report-only for Swift, asset reference scans, TODO scans, and duplicate grouping.
- Check scanner calibration before classifying debt. In Knip, confirm package entrypoints, tool configs, scripts, seeds, public assets, generated files, fixtures, and framework-specific routes are configured before treating file findings as deletion candidates.
- Use report summaries and top-file sections to choose the next narrow category; do not turn large report-only surfaces into broad cleanup work.
- Classify findings as
FAIL,REPORT_ONLY,BASELINED, orEXTERNAL_PENDING. Keep enum members, Swift dynamic-use findings, public APIs, protocol schemas, UI/icon barrels, and duplicates report-only unless a canon review proves removal is safe. - Baseline only reviewed contract/false-positive findings, with reason, owner area, reference, and expiry. Large generated/baseline entries also need generated provenance:
generator,command,source,upstreamHash,regenerationMode,deltaSummary,debtImpact, anddebtImpactReasonwhen debt is neutral or increasing. - Update or propose updates to the JSON/Markdown report and ledger; do not edit source code.
Constraints
- Do not delete or rewrite code while auditing.
- Do not treat a public/canonical surface as dead because it lacks an internal consumer.
- Do not treat
@generated, a baseline filename, or generated path as sufficient evidence for a large exception without generator, regeneration command, source, upstream hash, regeneration mode, delta, and debt impact. - Do not use
EXTERNAL_PENDINGfor ordinary bugs or missing local implementation. - Do not close the goal without reviewing every recorded decision answer from the source session one by one.
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".