code-review-skill
言語共通のコードレビュースキル。コメント最適化、マジックナンバー検出、構造改善のレビューを実施。コードレビュー、PRレビュー、コード品質チェックを依頼された際に使用。
When & Why to Use This Skill
This Claude skill provides automated, language-agnostic code reviews to enhance software quality and maintainability. It specializes in comment optimization, magic number detection, and structural improvements—such as implementing guard clauses and identifying dead code—to ensure clean, readable, and efficient codebases across various programming languages.
Use Cases
- Pull Request (PR) Automation: Use the skill to perform initial code quality checks on PRs, identifying blocking issues and structural flaws before human review.
- Legacy Code Refactoring: Scan existing repositories to detect magic numbers and redundant comments, facilitating easier maintenance and modernization of old code.
- Code Quality Standardization: Maintain consistent coding standards across multi-language teams by enforcing best practices for logic structure and documentation.
| name | code-review-skill |
|---|---|
| description | 言語共通のコードレビュースキル。コメント最適化、マジックナンバー検出、構造改善のレビューを実施。コードレビュー、PRレビュー、コード品質チェックを依頼された際に使用。 |
Code Review Skill
言語共通のコードレビューを実施する。
レビュー観点
| 観点 | 説明 | 参照 |
|---|---|---|
| コメント最適化 | Why/Docコメント以外を削除・置換 | comment-review.md |
| マジックナンバー | 意味不明な数値・文字列リテラルの検出 | magic-number-review.md |
| 構造改善 | Guard Clauses、Dead Code等の検出 | structure-review.md |
使用方法
- レビュー対象のコードを受け取る
- 該当する観点のreferenceを読み込む
- 各referenceの出力形式に従ってレビュー結果を出力
重要度分類
- Blocking: 即修正必須
- Should Fix: 修正推奨
- Nice to Have: 改善提案