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 પેટર્ન મેચિંગ માળખાકીય ઓળખ દ્વારા કોડ સમસ્યાઓ ઓળખે છે...