From lattice
Applies clean code principles (single responsibility, small functions, clear naming, complexity limits) to generated or refactored code. Triggered by 'clean code', 'refactor this', etc.
How this skill is triggered — by the user, by Claude, or both
Slash command
/lattice:clean-codeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Skill support project custom. Order:
Skill support project custom. Order:
.lattice/config.yaml in repo rootpaths.clean_code for custom doc pathmode:
mode: override (or no mode): Custom doc full precedence. Use instead embedded default. Must be comprehensive -- sole reference.mode: overlay: Read embedded ./references/defaults.md first, then apply custom doc sections on top. Custom sections replace matching sections in default (matched by heading). New sections appended after default../references/defaults.mdpaths.language_idioms exist in config, read that document and adapt defaults using these sections:
STOP after each component. Verify ALL. Fix any failed check before presenting. Judgment calls → flag with options (see Ambiguity Signals).
Project-specific checks: If loaded doc (from Config Resolution) contains a Validation Checklist section (§10), apply those checks as additional project-specific validation after the checklist above.
After checklist, scan for these. If find, fix before present.
d, tmp2, processData → rename reveal intentgetX also write cache/send notification → rename or separateMultiple valid outcome. Present option rather than silently choose. See ./references/defaults.md for resolution guidance on each signal below.
npx claudepluginhub techygarg/lattice --plugin latticeApplies Clean Code principles (meaningful names, small functions, no side effects) when writing, reviewing, or refactoring code.
Applies clean code decisions for writing or reviewing functions, classes, naming, and non-trivial logic (≥3 lines). Promotes simplicity by removal, short reasoning blocks, and domain examples.
Scores and improves code readability using six disciplines: meaningful names, small functions, clean error handling, comments, formatting, and unit tests. For code review, refactoring, PR feedback, or establishing quality standards.