
Description
Static Import is an agent skill that teaches the static ES2015 import syntax for module dependencies. A static import, written as import module from 'module', is resolved when the code loads, and every statically imported module is added to the initial bundle. The skill uses a simple chat app to show the effect: a Chat component statically imports a user profile, a message list and an input box, and the input box in turn imports an emoji picker. Its guidance is short. Use static imports for modules that are needed immediately on page load, since they are the default mechanism and the one to understand first. Be aware that everything statically imported ends up in the first download. For modules that are not needed for the initial render, consider switching to dynamic imports so the code loads later. The skill is for front-end developers who want an agent to explain bundle size trade-offs or to decide which imports should stay static. It is part of the patternsdev skills collection and installs with the skills CLI. The listing shows it as free.…
Highlights
- Explains static ES2015 import syntax
- Shows how static imports land in the initial bundle
- Guidance on when to switch to dynamic imports
- Worked example from a simple chat app
Ratings & Reviews
No ratings yet
Be the first to rate static-import.
People also visit

detect-static-dependencies
ACTIVATION PREREQUISITE: the request or discovered target must explicitly
static-import FAQ
What does the Static Import skill cover?
The ES2015 import syntax and what it means for the initial bundle, with guidance on keeping static imports for code needed on page load.
When should I use a dynamic import instead?
The skill suggests dynamic imports for modules that are not needed on the initial render, so they are not part of the first bundle.
How do I install it?
Run: npx skills add https://github.com/patternsdev/skills --skill static-import
Is it free?
Yes. The listing shows the skill as free.
What do the security audits show?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best static-import alternatives?
Popular alternatives to static-import include detect-static-dependencies, codegraph-ast-grep and javascript-pro. See all static-import alternatives




















