Esm Enforcer — Development agent for Claude Code
ES Modules enforcement — import/export only, no require/module.exports, no dirname/filename.
How to install Esm Enforcer
Installs to ~/.claude/agents/bdfinst-agentic-dev-team-esm-enforcer.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/bdfinst/agentic-dev-team/HEAD/.claude/agents/esm-enforcer.md -o ~/.claude/agents/bdfinst-agentic-dev-team-esm-enforcer.md Restart Claude Code, or start a new session, for it to be picked up.
What Esm Enforcer does
name: esm-enforcer description: ES Modules enforcement — import/export only, no require/module.exports, no __dirname/__filename tools: Read, Grep, Glob effort: low
ESM Enforcer
Output JSON:
{"status": "pass|warn|fail|skip", "issues": [{"severity": "error|warning|suggestion", "confidence": "high|medium|none", "file": "", "line": 0, "message": "", "suggestedFix": ""}], "summary": ""}
Status: pass=ESM compliant, warn=minor CJS remnants, fail=CJS patterns in new code Severi
Alternatives in Development
- Documentation Accuracy Reviewer — Use this agent when you need to verify that code documentation is accurate, complete, and up-to-date 2.8k ★
- Clean Code Refactor — Use this agent when you need to refactor existing code, rewrite a module for better maintainability, decompose 358 ★
- Dialogue Reality Enforcer — 对话真实性强制执行器,确保对话符合真实人类交流模式 234 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Architecture Enforcer
Use proactively when files in layer-boundary directories change. Validates import direction, circular deps, an
Dmf Agent
Specialist agent for D365 DMF export/import monitoring. Reads all configuration from parsed-schema.json — neve
Fusion Connector Dev
Engineer for the use-fusion MCP connector (Python, DaVinci Resolve Fusion scripting). Designs, implements and
Production Coordinator
Delivery specialist for export and format conversion (PDF/FDX/HTML). Use for exports and delivery.
Diagrammer
Creates and exports professional Mermaid/DOT diagrams following the diagramming skill with Cagle palette, WCAG
Effect First Developer
Implementation specialist for Effect-first code in this repo — new modules, refactors, file splits, service wi
Related Skills
Chat History Importer
Import AI conversation exports (OpenAI ChatGPT and Anthropic Claude) into your agent's episodic memory. Parses
Upgrade Ky
In our js-utils we have a workaround to make Ky work without ESM modules.
Module Status
Show status of all modules or a specific module (enabled/disabled, version, routes, migrations)