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 패턴 매칭은 구조적 인식을 통해 코드 문제를 식별합니다...