Skillshub react-tooling
Debugging, build analysis, and ecosystem tools. Use when debugging React apps, analyzing bundles, or configuring Vite/webpack for React. (triggers: package.json, devtool, bundle, strict mode, profile)
install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/HoangNguyen0403/agent-skills-standard/react-tooling" ~/.claude/skills/comeonoliver-skillshub-react-tooling && rm -rf "$T"
manifest:
skills/HoangNguyen0403/agent-skills-standard/react-tooling/SKILL.mdsource content
React Tooling
Priority: P2 (OPTIONAL)
Tools for analysis and debugging.
Implementation Guidelines
- Analysis: Use
orsource-map-explorer
/webpack-bundle-analyzer
(Vite) to inspect bundle size. Userollup-plugin-visualizer
for hot reloading.react-refresh - Linting: Mandate
(exhaustive-deps) and Prettier for code consistency.eslint-plugin-react-hooks - StrictMode: Enable
to detect double-invoke lifecycle errors in development.React.StrictMode - Profiling: Use the React DevTools Profiler (Flamegraph) to identify expensive components. Enable "Highlight Updates" to spot re-renders.
- Environment: Use Vite as a modern build tool (over CRA). Manage environment variables with
..env - Debugging: Use
in custom hooks for better DevTools visibility. UseuseDebugValue
middleware in Redux orlogger
for props.useWhyDidYouUpdate - Build: Configure Uglify/Terser for production build minification. Use
for service worker generation.vite-plugin-pwa
Code
// Debugging Hooks useDebugValue(isOnline ? 'Online' : 'Offline'); // why-did-you-render if (process.env.NODE_ENV === 'development') { const whyDidYouRender = require('@welldone-software/why-did-you-render'); whyDidYouRender(React, { trackAllPureComponents: true, }); }
Anti-Patterns
- No Production Profiling: Remove
and debug tools before production builds.why-did-you-render - No Skip StrictMode: Keep
in dev to surface side effects early.<React.StrictMode>