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 पॅटर्न जुळणी संरचनात्मक ओळखीद्वारे कोड समस्या ओळखते...