Works with the AI Agents you already use
JavaScript Module Resolution Atlas AI
Reconstruct ESM CJS and package export compatibility failures.
$9.99
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
| Sequence | Source ID | Event / Transform | Before | After | Uncertainty | Dependency |
|---|---|---|---|---|---|---|
| 001 | package.json | Load Export Map | null | {"import": "./dist/esm/index.mjs"} | Low | Node.js Spec |
| 002 | err.log | Resolution Attempt | import call | ERR_MODULE_NOT_FOUND | None | File System |
| 003 | fs_check | Path Validation | ./dist/esm/index.mjs | null (File Missing) | Medium | Build Artifact |
| 004 | package.json | CJS Fallback | require call | ./dist/cjs/index.js | Low | Node.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:
stderrlog - ConfirmsERR_MODULE_NOT_FOUNDduring ESM loader phase.
Action Register
| Priority | Proposed Owner | Dependency | Safe Next Step |
|---|---|---|---|
| High | Build Eng | TypeScript Config | Verify if tsconfig.json is emitting .mjs or .js extensions. |
| Med | SDK Dev | REF-01 | Update 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
.mjstarget. - Not Run: Live resolution test (Execution not supported).
Next steps
- Check the
./dist/esm/directory to confirm the actual file extension of the ESM build. - Update the
package.jsonexport map to reflect the correct file path. - Verify the fix by running the module in a native ESM environment (e.g.,
node --input-type=module).
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.jsonexport 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
- Supply the affected module item, baseline versions, and representative source records or
package.jsonsnippets. - The agent inventories the evidence, pining versions and identifying missing data points.
- The agent reconstructs the event sequence, comparing declared types against runtime resolution logic.
- 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
exportsmaps inpackage.jsonfor 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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.
Trust & safety
Security scan
Security scan passed 6 days ago
Permissions
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.