code-hygiene

Installation
SKILL.md

Code Hygiene Review

Review source code against 10 language-agnostic structural quality principles and produce a findings report with concrete refactoring suggestions.

Important: This skill produces a report. Do not modify any reviewed files.


Review Workflow

  1. Select files — Use the user's specified files. If none specified, run scripts/scan-source-files.sh <project-directory> to discover source files. The <project-directory> argument is required — it must be the root of the user's project, NOT the skill's own directory.
  2. Load rules — Read references/principles-quick-ref.md for the full checklist with detection signals and thresholds.
  3. Review each file — Read each file and check against all 10 principles. Load detailed reference files on demand as violations are detected (see "When to Load Reference Files").
  4. Generate findings — For each issue found, produce a finding using the Output Format below.
  5. Classify severity — Use references/severity-rubric.md to assign high/medium/low.
  6. Verify suggestions — For each suggested rewrite, confirm it resolves the flagged violation, does not introduce a new violation of any other principle, and preserves the original behavior. If a suggestion introduces a new violation, revise it before including it.
  7. Assemble report — Write findings to code-hygiene-findings-YYYYMMDD.md in the project root (use today's date). Group findings by file, then by severity (high first). End with the summary block.

Related skills
Installs
11
Repository
ggwicz/skills
GitHub Stars
1
First Seen
Feb 26, 2026