Agent skill

clean-code-principles

Stars 5
Forks 0

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

  1. Martin, R. "Clean Code." Prentice Hall, 2008.
  2. Fowler, M. "Refactoring." Addison-Wesley, 2018.
  3. Feathers, M. "Working Effectively with Legacy Code." Prentice Hall, 2004.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results