Reviews JavaScript module boundaries, exports, barrels, side effects, circular dependencies, and CommonJS versus ES Module interoperability.
Ships in ngautopilot-javascript. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill to review, refactor, or implement JavaScript module boundaries.
The goal is to keep imports and exports explicit, stable, tree-shakable, and easy to reason about.
This skill applies to ES Modules, CommonJS interoperability, barrel files, frontend code, Node.js code, shared libraries, scripts, and package entry points.
Use this skill when the task involves:
import / exportrequire / module.exportsDo not use this skill when:
Detect the active module system and keep module style consistent.
Prefer ES Modules in modern frontend and TypeScript code:
import { formatUser } from "./format-user.js";
export function getDisplayName(user) {
return formatUser(user);
}
Use CommonJS only when required by runtime or package contract:
const { formatUser } = require("./format-user");
module.exports = {
getDisplayName,
};
Prefer named exports for shared utilities.
Keep public API explicit with targeted exports.
Use barrel files carefully and avoid exporting internal helpers.
Prevent circular dependencies by moving shared helpers lower in the graph.
Avoid side effects in modules unless they are explicitly intentional.
Use dynamic imports for deferred loading when the boundary is justified.
Respect package exports and do not import private internal paths.
Keep module refactors small and reversible.
Avoid mixing import and require in the same file unless interoperability is required and justified.
Avoid default exports for shared utilities unless the project convention already requires them.
Avoid broad export * barrels that hide unstable internals.
Avoid import-time side effects.
Avoid importing from private package paths.
Avoid broad file moves when a narrow fix is sufficient.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/ngautopilot-javascript:javascript--modulesfrom ngautopilot-javascript
npx claudepluginhub janpereira-dev/ngautopilot --plugin ngautopilot-javascript9 skills in this plugin
/javascript--async-error-handlingJavaScript Async Error HandlingReviews and refactors asynchronous JavaScript error handling so Promise-based code avoids swallowed failures, unhandled rejections, unclear fallback behavior, and weak failure contracts.
/javascript--async-error-handling--browser-async-error-handling-v18Browser Async Error Handling v18+Reviews asynchronous JavaScript error handling in browser-facing code, focusing on user-facing failure states, safe fallbacks, retry behavior, and preserved error context.
/javascript--async-error-handling--browser-async-error-handling-v20Browser Async Error Handling v20+Reviews asynchronous JavaScript error handling in browser-facing code for modern runtime baselines, focusing on user-facing failure states, safe fallbacks, retry behavior, and preserved error context.
/javascript--async-error-handling--nodejs-async-error-handling-v18Node.js Async Error Handling v18+Reviews asynchronous JavaScript error handling in Node.js 18+ projects, focusing on process-level failure behavior, file and network operations, and safe propagation from scripts and services.
/javascript--async-error-handling--nodejs-async-error-handling-v20Node.js Async Error Handling v20+Reviews asynchronous JavaScript error handling in Node.js 20+ projects, focusing on process-level failure behavior, modern runtime expectations, and safe propagation from scripts, services, and workers.
/javascript--ecmascript-compatibility-semanticsECMAScript Compatibility SemanticsAssess opt-in JavaScript language, host, toolchain, library, and polyfill risks before adopting a feature or changing observable semantics.