/harness-claude:react-static-importfrom harness-claude
Guides use of ES module static imports for predictable loading, tree-shaking, and bundle optimization in React apps.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /harness-claude:react-static-import still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Bundle all dependencies at build time for predictable loading performance
import syntax at the top of the file.index.ts re-exporting everything) when tree-shaking matters.// Good: named import, tree-shakeable
import { formatDate } from 'date-fns';
// Good: specific internal module
import { Button } from '@/components/Button';
// Avoid for large libraries when only one function is needed
import _ from 'lodash'; // pulls entire lodash into bundle
import { debounce } from 'lodash'; // only debounce
Static imports are resolved at build time by the bundler (Webpack, Vite, esbuild). The bundler builds a dependency graph and includes all statically imported modules in the bundle.
Tree-shaking: Dead code elimination — if you import a named export but never use it, the bundler can eliminate it (with sideEffects: false in package.json and named imports). Side-effecting imports (CSS, polyfills) should not be tree-shaken.
When to switch to dynamic import:
https://patterns.dev/react/static-import
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub intense-visions/harness-engineering --plugin harness-claudeRead when SKILL.md points to them.
793 skills in this plugin
/a11y-aria-patternsARIA Patterns> Apply ARIA roles, states, and properties correctly to enhance assistive technology support for custom widgets/a11y-color-contrastColor Contrast and Color Independence> Ensure sufficient color contrast ratios and never use color as the sole means of conveying information/a11y-form-patternsAccessible Form Patterns> Build accessible forms with proper labeling, grouped controls, inline validation, and clear error communicationOther plugins' skills for the same job