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 पैटर्न मिलान संरचनात्मक पहचान के माध्यम से कोड समस्याओं की पहचान करता है...