Apply clean code principles when generating or modifying implementation code. Enforces function focus, naming clarity, complexity management, error handling, and self-documenting style. Use during code generation, refactoring, or when the user mentions 'clean code', 'code quality', 'refactor this', 'simplify this', 'improve this', 'make this cleaner', 'clean this up', 'tidy this', 'coding guidelines', or 'implementation quality'. This skill governs the craft of writing individual code units -- not architecture (see architecture), not security posture (see secure-coding), and not test structure (see test-quality).
$npx -y skills add techygarg/lattice --skill clean-codeInstalls into the current project.
Run `npx skills use "https://github.com/techygarg/lattice" --skill "techygarg/lattice/clean-code"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/techygarg/lattice" that are relevant to the current task. Run `npx skills add "https://github.com/techygarg/lattice"` and select the relevant skills, then follow their instructions.