typescript-circular-dependency
CommunityDetect and resolve circular TS/JS imports.
Software Engineering#typescript#refactoring#javascript#static-analysis#dependency-graph#circular-dependency
Authorchipoto69
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Circular dependencies cause runtime initialization issues in TypeScript/JavaScript projects when modules import each other in a cycle. Even if compile succeeds, one import may evaluate to undefined or throw a runtime error due to incomplete initialization.
Core Features & Use Cases
- Static analysis to detect circular dependencies across TS/JS modules.
- Dependency graph visualization to reveal cycle paths.
- Practical resolution guidance: extract shared interfaces, apply dependency injection, or refactor barrel patterns.
- Use cases include large codebases with interdependent services, monorepos, or libraries with circular imports.
Quick Start
Install madge and run: npm install -D madge npx madge --circular --extensions ts,tsx src/
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: typescript-circular-dependency Download link: https://github.com/chipoto69/claude-skills/archive/main.zip#typescript-circular-dependency Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.