Performance optimization patterns for React SPAs. Loads verification rules from foundations.
Purpose: Verify performance best practices using the Single Source of Truth (docs/rules).
view_file .agent/rules/foundation-design-system.md (Check Bundle/network sections).view_file .agent/rules/tech-react.md (Check Verification > Logic > Performance).Run these commands to find common performance killers:
grep -r "import .* from '.*'" src | grep -v "type" (Check for barrel imports)grep -r "lazy(" srcgrep -r "useMemo" src (Check if expensive calculations are memoized)grep -r "useCallback" src (Check if props to children are stable)grep -r "await" src (Check for serial waterfalls inside loops)