What problem does it solve?
Inconsistent naming, scattered responsibilities, dead code, and variable shadowing make codebases hard to read, maintain, and safely extend across languages and frameworks. This Skill provides concise, language-agnostic rules to restore clarity, reduce bugs, and make code reviews and onboarding faster.
Core Features & Use Cases
- Consistent Naming Rules: Enforce camelCase for variables and functions, PascalCase for classes/components, and UPPER_SNAKE_CASE for constants.
- Single Responsibility per File: Ensure each file has one clear responsibility and its name matches the primary export or role.
- No Dead Code & No Shadowing: Remove unused imports/variables/commented-out code and avoid inner-scope names that shadow outer scope identifiers.
- Decision Tree & References: Provide a decision tree for when to apply universal rules versus technology-specific skills and link to detailed reference docs for naming, imports, structure, and documentation standards.
- Use Cases: Establish cross-project standards, perform pre-merge code reviews, and audit legacy modules for maintainability improvements.
Quick Start
Ask the assistant to review a module for naming consistency, single-responsibility violations, dead code, and variable shadowing and provide prioritized, actionable fixes.