AST-based code pattern analysis using ast-grep for security, performance, and structural issues. Use when (1) reviewing code for security vulnerabilities, (2) analyzing React hook dependencies or performance patterns, (3) detecting structural anti-patterns across large codebases, (4) needing systematic pattern matching beyond manual inspection.
--- name: ast-code-analysis-superpower description: ast-grep を使用した AST ベースのコードパターン分析で、セキュリティ、パフォーマンス、構造上の問題を解決します。(1) セキュリティ脆弱性のコードレビュー時、(2) React フックの依存関係やパフォーマンスパターンの分析時、(3) 大規模なコードベースにおける構造的なアンチパターンの検出時、(4) 手動検査を超えた体系的なパターンマッチングが必要な場合に使用します。 --- # AST-Grep コード分析 AST パターンマッチングは、構造認識を通じてコードの問題を特定します...