code-quality

take566's avatarfrom take566

コードレビュー、コミットメッセージ生成、リファクタリング提案、テスト作成支援。静的解析、コーディング規約チェック、セキュリティスキャン。「レビュー」「コミット」「リファクタリング」「テスト」「コード品質」に関する質問で使用。

⭐0stars🔀0forks📁View on GitHub🕐Updated Jan 2, 2026

When & Why to Use This Skill

This Claude skill is a comprehensive suite for enhancing code quality and developer productivity. It automates essential software engineering tasks including intelligent code reviews, standardized commit message generation, and proactive refactoring suggestions. By integrating static analysis, security scanning, and automated test generation, it ensures that codebases remain secure, maintainable, and performant while streamlining the peer review process.

Use Cases

  • Automated Code Review: Analyze pull requests against checklists for logic accuracy, error handling, and security vulnerabilities to provide immediate feedback.
  • Git Workflow Optimization: Generate meaningful and structured commit messages automatically by analyzing staged changes (git diff).
  • Technical Debt Reduction: Identify complex code blocks and receive refactoring proposals to improve readability, maintainability, and performance.
  • Security & Compliance Scanning: Perform static analysis to detect injection risks, credential leaks, and insecure coding patterns before code is merged.
  • Quality Assurance Support: Assist developers in generating comprehensive unit tests and identifying edge cases to increase test coverage and software reliability.
namecode-quality
descriptionコードレビュー、コミットメッセージ生成、リファクタリング提案、テスト作成支援。静的解析、コーディング規約チェック、セキュリティスキャン。「レビュー」「コミット」「リファクタリング」「テスト」「コード品質」に関する質問で使用。

コード品質・レビュー支援

クイックスタート

コミットメッセージ生成

# git diffからコミットメッセージを生成
git diff --staged | python scripts/generate_commit.py

コードレビューチェックリスト

レビュー観点:
- [ ] 機能要件を満たしているか
- [ ] エラーハンドリングは適切か
- [ ] テストは十分か
- [ ] パフォーマンス問題はないか
- [ ] セキュリティ上の問題はないか
- [ ] 可読性・保守性は良いか

レビュー観点

観点 確認内容
正確性 ロジックエラー、境界値、null処理
セキュリティ インジェクション、認証・認可、機密情報
パフォーマンス N+1、メモリリーク、不要な処理
可読性 命名、複雑度、コメント
保守性 重複、結合度、テスタビリティ

詳細ガイド

ユーティリティスクリプト

# コミットメッセージ生成
python scripts/generate_commit.py

# 複雑度分析
python scripts/analyze_complexity.py src/

# セキュリティスキャン
python scripts/security_scan.py --path ./

ワークフロー: コードレビュー

進捗チェックリスト:
- [ ] 1. 変更概要の把握(PR説明、コミット履歴)
- [ ] 2. 全体構造の確認
- [ ] 3. 詳細レビュー(ロジック、エラー処理)
- [ ] 4. テストの確認
- [ ] 5. セキュリティチェック
- [ ] 6. フィードバック作成