- Home
- Skills
- Agents & Orchestration
- Monorepo Rules
Monorepo Rules
Audit and optimize Turborepo and pnpm workspaces to fix cache misses, break cycles, and speed up CI.
$5
Works with the AI Agents you already use
Monorepo Rules
Example session with this skill installed
Our build takes 15 minutes because every change rebuilds everything. We use Turbo and pnpm. I think there is a cycle between the 'auth' and 'api-client' packages.
- Read your context and instructions
- Compiled the monorepo rules
Graph
Applications depend on auth and api-client. auth and api-client import each other.
Findings
- packages/auth - Dependency rule 1. Circular dependency with api-client prevents independent caching.
- turbo.json - Task rule 1. Missing caret in dependsOn causes stale builds.
Change plan
- Extract shared types to packages/core.
- Update auth and api-client to import from core.
- Add caret to build dependsOn in turbo.json.
Cache impact
Breaking the cycle allows Turbo to hash these packages separately. Rebuilds will drop by ~60%.
Connects securely to your tools. The creator never sees your data.
About this skill
The problem
Monorepos often collapse under their own weight when package boundaries blur and dependency cycles emerge. You end up with 20-minute CI pipelines for one-line changes because the build tool cannot determine what is actually affected.
What it does
- Enforces package boundaries by detecting relative imports that bypass the workspace graph.
- Audits
turbo.jsontask pipelines to fix cache misses caused by missing inputs, outputs, or undeclared env variables. - Identifies and breaks circular dependencies that prevent independent package builds and caching.
- Generates step-by-step plans for cross-package refactors and codemods to move symbols without breaking importers.
- Optimizes CI configurations to correctly detect affected packages using merge-base comparisons.
Frameworks & tools
Designed for Turborepo and pnpm workspaces. Works with TypeScript, Next.js, and ESLint.
Why this beats prompting it yourself
Standard LLMs often suggest relative path fixes that compile but break monorepo isolation. This skill uses a strict trigger matrix to prioritize architectural integrity, like breaking cycles before fixing cache issues, ensuring your workspace remains scalable.
Use cases
- Fixing a "cache never hits" issue in Turborepo by auditing environment variables.
- Extracting shared logic into a new workspace package without breaking the build.
- Reducing CI times by implementing merge-base filtering for affected packages.
- Mapping out a dependency graph to find and resolve complex circular imports.
Known limitations
Does not execute turbo commands, publish packages, or modify CI secrets. It provides configuration edits and CLI commands for the user to run manually.
Cannot execute turbo or pnpm commands. Cannot read remote cache data or modify CI secrets. Verification requires manual command execution by the user.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 3 months ago