javascript-core

Analyzes JavaScript modules for runtime, async, and ESM/CJS interop issues.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/caraya/agent-skills --skill javascript-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: javascript-core
Source: https://github.com/caraya/agent-skills/tree/main/skills/javascript-core
Command: npx skills add https://github.com/caraya/agent-skills --skill javascript-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

JavaScript projects often suffer from runtime inconsistencies, fragile async flows, and mixed module formats that hinder maintainability and reliability.

Core Features & Use Cases

  • Runtime correctness checks for coercion, equality, nullish handling, and error paths.
  • Async flow verification, including correct awaiting, concurrency control, and cleanup of timers/listeners.
  • Module/Platform interop validation for ESM and CommonJS, ensuring imports work across environments.

Quick Start

Analyze a given JavaScript module to surface runtime, async, and interop issues and generate actionable fixes.

Frequently Asked Questions about javascript-core

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix JavaScript async flow issues and ensure proper awaiting?

JavaScript async flow issues are fixed by verifying correct awaiting, implementing concurrency control, and cleaning up timers or listeners to ensure reliable async behavior. This prevents fragile async flows and runtime inconsistencies in your modules.

What is the best way to resolve ESM and CommonJS module interop errors?

Resolving ESM and CommonJS interop errors requires validating module platform interop to ensure imports work across different environments. This approach guarantees that mixed ESM and CommonJS projects maintain compatibility and reliable runtime behavior.

How do I check my JavaScript code for runtime correctness and error paths?

Checking JavaScript runtime correctness involves analyzing your module to surface issues with type coercion, equality, nullish handling, and error paths. This process identifies hidden runtime inconsistencies and generates actionable fixes for cleaner code.

Can I use this to review Node.js services and browser modules?

Yes, you can review Node.js services and browser modules to identify JavaScript runtime issues. It applies to mixed ESM and CommonJS projects, ensuring explicit error handling and clear state management across both environments.

Why does my JavaScript project suffer from fragile async flows and mixed module formats?

JavaScript projects suffer from fragile async flows and mixed module formats due to unhandled concurrency, orphaned timers, and incompatible import syntax. Analyzing the codebase surfaces these runtime inconsistencies to apply actionable fixes for maintainability.