Code Hygiene
Tool-first codebase health scan: dead code, test quality, complexity, security, architecture
Test report
- Verdict
- Tested · Works
- Score
- Tested
- Jul 17, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Aug 10, 2026 · bece81a
Followed the tool-first pipeline on a small TypeScript project and knip cleanly surfaced all three planted issues: an orphaned never-imported file, an unused export, and an unused lodash dependency, stored to .omc/hygiene as the skill prescribes. The unused-dependency catch is the concrete edge over an unaided read, which would plausibly miss it, though on a four-file project the delta is modest and the designed large-repo agent mode went unmeasured. Note the skill's literal jq summary paths (.files[:50]) no longer match knip's current .issues[] output shape, so the pipeline needed adaptation.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 4/5
- Triggers reliably 5/5
- Output vs. baseline 6/10
- Docs & honesty 4/5
What Code Hygiene does
A report-only pipeline that runs static-analysis tools (tsc, scc, semgrep, knip, jscpd, dependency-cruiser), stores summarized findings to disk, and produces severity-classified tech-debt reports with a health score. Triggers on requests to check code hygiene, find dead code, or map a codebase. Best support is for TypeScript/JavaScript; other languages get a documented subset.
How to install Code Hygiene
git clone https://github.com/malakhov-dmitrii/forge
mkdir -p ~/.claude/skills
cd forge && cp -r skills/code-hygiene ~/.claude/skills/code-hygiene
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Code Hygiene
-
/code-hygieneTool-first codebase health scan: dead code, test quality, complexity, security, architecture
It also activates on plain-language prompts like these:
-
Run a health check on this codebase and score its tech debt -
Find dead code and unused dependencies in this project -
Map out this repo's complexity and security issues
Frequently asked questions
- Is the Code Hygiene skill free?
- Yes. The skill itself is free from malakhov-dmitrii/forge. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Code Hygiene work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 17, 2026. Verdict: Tested · Works. Followed the tool-first pipeline on a small TypeScript project and knip cleanly surfaced all three planted issues: an orphaned never-imported file, an unused export, and an unused lodash dependency, stored to .omc/hygiene as the skill prescribes. The unused-dependency catch is the concrete edge over an unaided read, which would plausibly miss it, though on a four-file project the delta is modest and the designed large-repo agent mode went unmeasured. Note the skill's literal jq summary paths (.files[:50]) no longer match knip's current .issues[] output shape, so the pipeline needed adaptation.
- What is the Code Hygiene SkillProof Score?
- 7.6/10 — installs cleanly 4/5, triggers reliably 5/5, output vs. baseline 6/10, docs & honesty 4/5.
- How do I install Code Hygiene?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Code Hygiene with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.