Agent skill
clean-code-principles
Install this agent skill to your Project
npx add-skill https://github.com/Gaku52/claude-code-skills/tree/main/03-software-design/clean-code-principles
SKILL.md
日本語版
Clean Code Principles
Clean code is code that is easy to read, easy to change, and easy to test. This skill covers everything about code quality, from naming conventions, function design, and SOLID principles to refactoring techniques and code review culture.
Target Audience
- Engineers who want to improve their code quality
- Tech leads looking to establish team coding standards
- Anyone who wants to learn refactoring techniques
Prerequisites
- Hands-on experience with at least one programming language
- Basic knowledge of design patterns
Learning Guide
00-fundamentals — Core Principles
| # | File | Description |
|---|
01-practices — Practical Techniques
| # | File | Description |
|---|
02-refactoring — Refactoring
| # | File | Description |
|---|
03-team — Team Quality
| # | File | Description |
|---|
Quick Reference
Clean Code Checklist:
✓ Use intention-revealing names
✓ Keep functions under 20 lines with no more than 3 parameters
✓ One responsibility per function
✓ Reduce nesting with early returns
✓ Replace magic numbers with named constants
✓ Prefer self-documenting code over comments
References
- Martin, R. "Clean Code." Prentice Hall, 2008.
- Fowler, M. "Refactoring." Addison-Wesley, 2018.
- Feathers, M. "Working Effectively with Legacy Code." Prentice Hall, 2004.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
computer-science-fundamentals
A comprehensive guide covering the fundamentals of computer science. From hardware internals and data representation to algorithms, data structures, computation theory, programming paradigms, and software engineering basics — a systematic guide to all the CS foundations every engineer needs.
operating-system-guide
programming-language-fundamentals
algorithm-and-data-structures
linux-cli-mastery
aws-cloud-guide
Didn't find tool you were looking for?