From typegraph
Audits module dependencies to detect circular imports, analyze coupling scores, and map dependency structures using TypeScript tools. Useful for debugging cycles and evaluating module boundaries.
npx claudepluginhub guyowen/typegraph-mcpThis skill uses the workspace's default tool permissions.
Audit module dependencies to find circular imports, analyze coupling, and understand the dependency structure.
Visualizes project dependency graphs across domains, detects circular dependencies, and analyzes cross-domain coupling in Python, JS/TS, and Go codebases. Use before refactoring, architecture reviews, or adding domains.
Runs 7-phase analysis of TypeScript codebases using typegraph-mcp tools like ts_dependency_tree and ts_import_cycles, producing architectural report for onboarding or overviews.
Analyzes blast radius of file or function changes by mapping direct and transitive dependents with lenskit_graph or grep on import patterns.
Share bugs, ideas, or general feedback.
Audit module dependencies to find circular imports, analyze coupling, and understand the dependency structure.
Call ts_import_cycles (no filter for project-wide, or with a file/package filter for targeted analysis).
For each cycle found, call ts_dependency_tree on the files in the cycle to understand why the cycle exists (what each file needs from the other).
Call ts_module_boundary on the package or directory you want to analyze. The isolation score quantifies how self-contained it is:
Call ts_dependents on key files to see the cross-package dependency picture. The byPackage grouping shows which packages depend on what.
Present findings as:
User: "Are there any circular dependencies in the project?"
1. ts_import_cycles() -> 1 cycle: TodoService.ts <-> TodoHistoryService.ts
2. ts_dependency_tree({ file: "TodoService.ts" }) -> imports TodoHistoryService for history recording
ts_dependency_tree({ file: "TodoHistoryService.ts" }) -> imports TodoService for status lookup
3. ts_module_boundary({ files: [services directory files] }) -> isolation: 0.42 (moderate)
Report: 1 circular dependency found between TodoService and TodoHistoryService.
Root cause: mutual dependency for history recording + status lookup.
Recommendation: Extract shared types into a separate file to break the cycle.