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/ja/03-software-design/clean-code-principles

SKILL.md

クリーンコード原則

クリーンコードは読みやすく、変更しやすく、テストしやすいコード。命名規則、関数設計、SOLID 原則、リファクタリングテクニック、コードレビュー文化まで、コード品質の全てを解説する。

このSkillの対象者

  • コード品質を向上させたいエンジニア
  • チームのコーディング規約を整備したいリード
  • リファクタリングの技法を学びたい方

前提知識

  • 何らかのプログラミング言語の実務経験
  • 基本的な設計パターンの知識

学習ガイド

00-fundamentals — 基礎原則

# ファイル 内容

01-practices — 実践テクニック

# ファイル 内容

02-refactoring — リファクタリング

# ファイル 内容

03-team — チーム品質

# ファイル 内容

クイックリファレンス

クリーンコードチェックリスト:
  ✓ 意図が明確な命名
  ✓ 関数は20行以内、引数は3個以下
  ✓ 1関数1責任
  ✓ 早期リターンでネスト削減
  ✓ マジックナンバーは定数化
  ✓ コメントより自己文書化コード

参考文献

  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