principle-clean-code
CommunityWrite clearer code that’s easier to maintain.
Software Engineering#code review#refactoring#error handling#clean code#naming conventions#function design
Authorlugassawan
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you transform messy, hard-to-read code into clean, intention-revealing functions by enforcing practical conventions for naming, structure, duplication, and error handling.
Core Features & Use Cases
- Function clarity rules: keeps functions small, focused, and composable by targeting length, argument count, and Command-Query Separation.
- Intent-revealing naming: guides naming to express meaning directly (including positive booleans) and avoids misleading abbreviations or Hungarian notation.
- Refactoring guardrails: balances DRY (Rule of Three), KISS, YAGNI, and scope-bounded cleanup via the Boy Scout Rule while avoiding over-abstraction.
- Error-handling consistency: encourages handling errors at the appropriate layer without silently swallowing failures.
Quick Start
Ask an AI to review the attached function and rewrite it to meet clean-code rules for naming, function length, argument count, and error handling.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: principle-clean-code Download link: https://github.com/lugassawan/swe-workbench/archive/main.zip#principle-clean-code Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.