Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurfMManus+14 more

    Monorepo Dependency Boundary Auditor

    by heyhridyansh

    1

    Audit monorepo architecture for circular dependencies, forbidden imports, and package boundary violations.

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    Audit our pnpm workspace for circular dependencies and layering violations. We use a UI -> App -> Domain -> Core structure. Here are the package.json files and our dependency-cruiser config.

    Your agent does

    Health Score: 64/100. Verdict: Material boundary erosion. Identified 3 package-level cycles (e.g., @app/auth <> @app/api). Found 12 forbidden imports where 'Core' imports from 'Feature'. Recommended fix: Extract shared interfaces to a new @app/contracts package before tightening Nx tags.

    What you get

    Detect and map circular dependencies across internal workspace packages.Identify forbidden deep imports that bypass official package entrypoints.Audit version skew and duplicate dependencies across the entire monorepo.Generate a prioritized remediation plan to decouple release cycles.Score the architectural health of a workspace using a standardized rubric.

    About this skill

    The problem

    Large monorepos often degrade into a "distributed monolith" where uncontrolled imports, circular dependencies, and version skew break build caching and make releases unpredictable. Manually auditing thousands of internal package boundaries to find forbidden deep imports or layering violations is nearly impossible at scale.

    What it does

    • Identifies package-level and file-level circular dependencies that block clean builds and deployments.
    • Detects forbidden imports, such as domain leakage, layering drift, or production code importing test helpers.
    • Audits "shared" and "core" packages for excessive fan-in/fan-out and ownership ambiguity.
    • Surfaces version skew across the workspace, including conflicting peer dependencies and duplicate runtime libraries.
    • Generates a prioritized remediation sequence and a 100-point boundary-health score.

    Frameworks & tools

    Supports workspaces using pnpm, Yarn, npm, Nx, and Turborepo. Works with dependency-cruiser, ESLint boundary rules, and TypeScript project references.

    Why this beats prompting it yourself

    Generic LLM prompts often miss subtle build-graph risks or fail to distinguish between acceptable type-only imports and dangerous runtime cycles. This skill applies a structured rubric to evaluate dependency direction, release coupling, and ownership, ensuring architectural drift is quantified rather than guessed.

    Use cases

    • Perform a pre-migration audit before moving to a new monorepo manager like Nx or Turbo.
    • Identify the root cause of slow CI builds and cache invalidation issues.
    • Review a complex Pull Request that introduces new internal package relationships.
    • Map ownership and boundaries during a team reorganization or repository split.

    Known limitations

    Requires access to package manifests, lockfiles, or a dependency graph. It identifies architectural risks but does not perform automated refactoring or file movement.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Creator

    heyhridyansh
    heyhridyansh

    24 skills on Agensi

    I create practical, AI-ready skills for Cursor, Claude Code, Codex CLI, Replit, and other agents that support the SKILL.md format. My skills focus on specific business and workflow problems, including ecommerce creative audits, design quality checks, prompt and skill validation, content systems, and process automation. Each skill is built with clear inputs, structured outputs, defined permissions, safeguards, and real-world usability.

    Frequently Asked Questions

    Popular in AI Agents & LLM Ops