audit-code-consistency

Installation
SKILL.md

Code Consistency Audit

Static Websites on cPanel

Inconsistent code is the most common byproduct of AI-assisted development. When a site is built across multiple sessions, by multiple agents, or iteratively over time, patterns drift. Selectors that worked one way become exceptions. Functions get duplicated with slight variations. CSS variables get hardcoded when someone is in a hurry. This audit finds all of it.

The goal is not aesthetic perfection — it is that any developer (or agent) reading any file in the project can immediately understand the system, predict where things live, and extend it without introducing new inconsistencies.


Core Principles Applied

Every finding in this audit traces back to one of these principles:

  • DRY — Don't Repeat Yourself: Every piece of knowledge must have a single, unambiguous representation. Duplicated rules create divergence when one copy gets updated and the others don't.
  • KISS — Keep It Simple: The simplest solution that works is the correct solution. Overly complex selectors, deeply nested functions, and unnecessary abstractions reduce maintainability.
  • YAGNI — You Aren't Gonna Need It: Unused code is a liability. Unused CSS classes, unreferenced JS functions, and commented-out blocks add noise.
  • Boy Scout Rule: Leave the code cleaner than you found it. When an inconsistency is found, fix it — don't just flag it.
  • Single Responsibility: Each function does one thing. Each CSS file covers one responsibility. Each component handles one concern.
Installs
3
First Seen
May 11, 2026
audit-code-consistency — magallon/website-audit-toolkit