From lattice
Applies clean code principles to generated or refactored implementation code. Enforces single responsibility, clear naming, low complexity, error handling, and self-documenting style.
npx claudepluginhub techygarg/lattice --plugin latticeThis skill uses the workspace's default tool permissions.
Skill support project custom. Order:
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.
Refactors working code into clean, readable, maintainable code using Robert C. Martin's Clean Code principles. Use for new code, PR reviews, legacy refactoring, and team standards.
Applies universal code quality principles like KISS, DRY, single responsibility, descriptive naming, and clean code during writing or reviewing any code.
Share bugs, ideas, or general feedback.
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:
Default ship with skill. Opinionated best practice. Work out of box. Override only when team have different standard.
STOP after generate each component. Verify ALL before proceed. If check clearly fail, fix before present. If judgment call with multiple valid approach (see Ambiguity Signals), flag it — present options and reasoning.
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.
Clean code about craft writing individual unit -- function, class, module. Distinct from architecture (govern where code live) and domain modeling (govern business rule). Apply during code generation, not post-generation review.
See ./references/defaults.md for SRP pipeline nuance, size vs clarity thresholds, magic number extraction rules, boolean parameter patterns, DRY vs wrong abstraction heuristics, and error message guidelines.