From typegraph
Audits module dependencies to find circular imports, analyze coupling scores, and map cross-package dependencies for restructuring decisions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/typegraph:dependency-auditThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Audit module dependencies to find circular imports, analyze coupling, and understand the dependency structure.
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.
npx claudepluginhub guyowen/typegraph-mcpVisualizes 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 a 7-phase codebase analysis using typegraph-mcp tools, producing a detailed architectural report. Useful when onboarding to an unfamiliar codebase or before making significant changes.
Analyzes codebase structural health using graph or static analysis: hub detection, orphan detection, cycles, deep chains, module cohesion. Use for weekly health checks, before refactoring, or when onboarding.