- 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 tools 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.
What you get
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.
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
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 1 month ago
- Passed all security checks, Safe to install