code-hygiene

Audit codebases for dead code, drift, and compatibility shims across ten MECE dimensions.

2|1|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/inernoro/prd_agent --skill code-hygiene
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-hygiene
Source: https://github.com/inernoro/prd_agent/tree/main/.claude/skills/code-hygiene
Command: npx skills add https://github.com/inernoro/prd_agent --skill code-hygiene

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Maintaining code health after migrations and refactors is challenging; this Skill automates a comprehensive hygiene audit across ten MECE dimensions to surface dead code, drift, and risky patterns, and it outputs a structured remediation plan.

Core Features & Use Cases

  • Multidimensional code hygiene auditing across 10 MECE categories (dead fields, dead branches, compatibility shims, naming artifacts, redundant params/types, stale comments, migration guards, over-abstraction, near-duplicates, config-code drift).
  • Generates a structured report with an actionable auto-fix plan, enabling teams to track remediations across PR cycles and migrations.
  • Supports governance and collaboration through reproducible scans, audit trails, and guardrails for safe refactoring.

Quick Start

Run the code hygiene scan on the target project to generate a structured report and auto-fix plan.

Frequently Asked Questions about code-hygiene

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate dead code detection across a large codebase after a migration?

You can automate dead code detection by running a code hygiene audit that identifies dead fields, dead branches, and compatibility shims across your codebase. This process scans multiple languages and outputs a structured report with an actionable auto-fix plan and migration-safe remediation checklist.

What is a code hygiene audit and what dimensions does it cover?

A code hygiene audit is an automated scan that surfaces drift and risky patterns across ten MECE dimensions, including dead fields, dead branches, compatibility shims, naming artifacts, redundant parameters, stale comments, and config-code drift. It delivers a structured remediation plan to track fixes across refactoring cycles.

How do I find and remove compatibility shims and migration guards in my project?

To find and remove compatibility shims and migration guards, run an automated code hygiene audit designed for migration cleanup. It detects these specific patterns alongside other drift, generating a migration-safe remediation checklist and an auto-fix plan for safe removal.

Can I use an automated code hygiene scan for refactoring reviews on multiple languages?

Yes, you can use this code hygiene scan for refactoring reviews across large codebases and multiple languages. It provides reproducible scans and audit trails to support governance, ensuring safe refactoring by identifying over-abstraction, near-duplicates, and redundant types.

What is the best way to generate an auto-fix plan for config-code drift and stale comments?

The best way to generate an auto-fix plan for config-code drift and stale comments is to run a comprehensive code hygiene audit. It automatically detects these specific issues among ten MECE dimensions and outputs a structured report with actionable remediations for your team.