Works with the AI Agents you already use

    JavaScript Module Resolution Atlas AI

    by Pitiko Studio

    1

    Reconstruct ESM CJS and package export compatibility failures.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    JavaScript Module Resolution Atlas AI

    JavaScript Module Resolution Atlas AI

    Example session with this skill installed

    Synthetic example

    Reconstruct the resolution failure for @scoped/library version 2.1.0 where ESM imports fail but CJS requires work. Here is the package.json exports map and the error log.

    • Read your context and instructions
    • Compiled the javascript module resolution

    Synthetic example

    I have reconstructed the module resolution lineage for @scoped/library@2.1.0. The analysis identifies a mismatch between the conditional export paths and the entry point defined for ESM consumers.

    Module Resolution Lineage Trace

    SequenceSource IDEvent / TransformBeforeAfterUncertaintyDependency
    001package.jsonLoad Export Mapnull{"import": "./dist/esm/index.mjs"}LowNode.js Spec
    002err.logResolution Attemptimport callERR_MODULE_NOT_FOUNDNoneFile System
    003fs_checkPath Validation./dist/esm/index.mjsnull (File Missing)MediumBuild Artifact
    004package.jsonCJS Fallbackrequire call./dist/cjs/index.jsLowNode.js Spec

    Disposition: Supported Result (Partial)

    The failure occurs because the import condition in the export map points to a non-existent .mjs file in the distribution folder, while the CommonJS fallback correctly points to the existing legacy bundle.

    Source Register

    • REF-01: package.json (v2.1.0) - Contains malformed export map.
    • REF-02: stderr log - Confirms ERR_MODULE_NOT_FOUND during ESM loader phase.

    Action Register

    PriorityProposed OwnerDependencySafe Next Step
    HighBuild EngTypeScript ConfigVerify if tsconfig.json is emitting .mjs or .js extensions.
    MedSDK DevREF-01Update exports map to match actual file extensions in ./dist/esm/.

    Validation Summary

    • Observed: Export map configuration, runtime error type.
    • Planned: File system existence check of the .mjs target.
    • Not Run: Live resolution test (Execution not supported).

    Next steps

    1. Check the ./dist/esm/ directory to confirm the actual file extension of the ESM build.
    2. Update the package.json export map to reflect the correct file path.
    3. Verify the fix by running the module in a native ESM environment (e.g., node --input-type=module).
    package.json

    Connects securely to your tools. The creator never sees your data.

    About this skill

    When JavaScript modules break across ESM and CommonJS boundaries, standard debuggers rarely show the full picture of resolution failure. This skill reconstructs module resolution lineage to isolate exactly where package exports or compatibility layers diverge from expected behavior.

    What it does

    • Lineage Reconstruction builds a source-linked trace of module resolution events to find the point of failure.
    • Export Analysis evaluates package.json export maps against declared types and runtime behavior.
    • Conflict Mapping identifies mismatches between ESM and CJS surfaces including dual-package hazard risks.
    • Evidence Labeling categorizes findings as observed, derived, or proposed to maintain strict data provenance.
    • Reproduction Design generates minimal reproduction steps and targeted patch proposals based on evidence.

    How it works

    1. Supply the affected module item, baseline versions, and representative source records or package.json snippets.
    2. The agent inventories the evidence, pining versions and identifying missing data points.
    3. The agent reconstructs the event sequence, comparing declared types against runtime resolution logic.
    4. You receive a structured lineage trace and a decision register with prioritized fixes.

    Frameworks & tools

    Primary focus on Node.js ESM/CJS resolution, TypeScript module resolution logic, and npm/yarn/pnpm package export specifications. Can utilize Google SERP for public documentation lookups if authorized.

    Why this beats prompting it yourself

    Generic prompts often hallucinate resolution logic or suggest "fixes" that violate ESM specs. This skill enforces a structured lineage trace, requiring evidence for every transform and preventing the silent resolution of unknown conflicts.

    Use cases

    • Debugging "Module not found" errors in dual-package (ESM/CJS) libraries.
    • Validating complex exports maps in package.json for new SDK releases.
    • Auditing third-party dependency breakages after a Node.js or TypeScript version upgrade.

    Known limitations

    Does not perform live code execution or physical test runs. Limited to analysis of supplied records and public documentation.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    This skill acts as a specialized diagnostic engine that traces the specific point where ESM and CommonJS boundaries fail, moving beyond generic error messages to provide a source-linked map of resolution conflicts.

    The skill is designed for any AI agent with file-reading or text-analysis capabilities; simply provide the relevant package.json files, error logs, or directory structures for the agent to analyze.

    No installation is required; you only need to provide the 'evidence'—such as your package.json, tsconfig.json, and the specific module resolution error—to the agent to begin the reconstruction.

    The Atlas identifies 'dual-package hazards' where ESM and CJS versions of a library might instantiate twice, causing broken singleton patterns or instance-of check failures.

    The skill strictly adheres to the latest Node.js resolution algorithms and TypeScript module specifications, ensuring that suggested patches comply with official standards rather than speculative fixes.

    You receive the full skill logic ready for deployment in your agent's environment, covering resolution lineage, export analysis, and automated reproduction design.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.