From code-quality
Designing pure functions with single purpose, minimal parameters, clear side effects, and high cohesion.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-quality:function-designThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Principles for writing functions that are easy to understand, test, and maintain.
Principles for writing functions that are easy to understand, test, and maintain.
You are helping the engineer design or refactor functions. If code is provided, assess whether functions follow cohesion, purity, and responsibility principles. A good function is a unit of composition.
npx claudepluginhub sethdford/claude-skills --plugin engineer-code-qualityApplies clean code principles (single responsibility, small functions, clear naming, complexity limits) to generated or refactored code. Triggered by 'clean code', 'refactor this', etc.
Reframe code designs with functional programming principles for agent-assisted development, separating pure functions from effects to boost agent effectiveness and human reviewability. Use for module planning and agent-friendly structures.
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.