/harness-claude:js-static-importfrom harness-claude
Guides use of static import declarations for ES modules, enabling tree-shaking and static analysis. Covers named vs default exports, grouping, and trade-offs.
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:js-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.
Use static import declarations to load ES modules at parse time for tree-shaking and static analysis
import { name } from './module.js' at the top of the file for all compile-time dependencies.require() in ESM files — static import enables bundler dead-code elimination.// Named exports — tree-shakeable
import { useState, useEffect } from 'react';
import { formatDate, parseDate } from '../utils/date.js';
// Default export — avoid when possible
import MyComponent from './MyComponent.js';
import * as ns from './module.js' sparingly — it imports everything and can defeat tree-shaking.Static import declarations are resolved at parse time, before any code executes. This enables bundlers to analyze the dependency graph and eliminate unused exports (tree-shaking). Static imports are hoisted — they run before the module body regardless of where they appear in the file.
Trade-offs:
When NOT to use:
import() insteadhttps://patterns.dev/javascript/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