Getting started
Requirements
Section titled “Requirements”- An AI coding agent that supports Agent Skills — Claude Code, GitHub Copilot CLI, Cursor, Codex and others.
- Node ≥ 22.5 on the machine running the agent. The skill’s scripts use only Node built-ins.
- A POSIX shell (macOS, Linux or WSL).
Install
Section titled “Install”Install both skills with the skills CLI:
npx skills add santoshyadavdev/monorepo-doctorInstall only one of them:
npx skills add santoshyadavdev/monorepo-doctor --skill monorepo-doctornpx skills add santoshyadavdev/monorepo-doctor --skill monorepo-boundaries-cleanupManual install
Section titled “Manual install”Copy skills/monorepo-doctor or skills/monorepo-boundaries-cleanup from the repository into one of:
| Location | Scope |
|---|---|
~/.claude/skills/ |
Claude Code, all projects |
~/.copilot/skills/ |
Copilot CLI, all projects |
.github/skills/ in a repository |
that repository only |
Run your first audit
Section titled “Run your first audit”From the root of the monorepo, ask your agent:
Run monorepo-doctor on this repo.Scope it to the checks you care about:
Audit only caching and CI coverage with monorepo-doctor.Write the reports somewhere specific (by default they go to <os tmpdir>/monorepo-doctor-reports, outside your repo):
Run monorepo-doctor and write the reports to ./reports.The agent finishes with a summary and the paths to monorepo-doctor-report.md and monorepo-doctor-report.json.
Fix what it found
Section titled “Fix what it found”When the report shows boundary violations, hand them to the cleanup skill one batch at a time:
Use monorepo-boundaries-cleanup to fix the next batch of turbo boundaries violations.See From audit to cleanup for the full loop.