Sets up and maintains monorepos: workspace tooling choice, package boundaries, affected-only builds and tests, remote caching, shared config, versioning, and code ownership.
Ships in engineering-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A monorepo only works if two things stay true: package boundaries are enforced by tooling, and CI does work proportional to the change, not to the repo. Without both, a monorepo becomes a slow, tangled monolith with extra config.
Not for: breaking a monolith into deployable services (see the large-scale-migrations skill). A monorepo is about where code lives, not how it is deployed.
| Signal | Monorepo helps | Monorepo hurts |
|---|---|---|
| Shared code | Many packages share libraries, types, config | Projects share little |
| Change shape | Changes often span several packages (API + client) | Changes stay inside one project |
| Teams | Teams accept shared tooling and conventions | Teams need different toolchains, release cadences, access controls |
| Tooling budget | Someone owns build/CI tooling | Nobody has time to maintain the build system |
| Access control | Code can be visible to all contributors | Parts must be hidden from some contributors |
If most answers are on the right, keep separate repos and share code through versioned packages.
Start with the lightest tool that gives you affected builds and caching for your stack. Add a heavier one only when you hit its limits.
| Tool | Best for | Affected / caching | Cost |
|---|---|---|---|
| npm / pnpm / yarn workspaces | JS/TS, linking local packages | None by themselves (pnpm --filter can select changed packages) | Lowest |
| Turborepo | JS/TS task orchestration on top of workspaces | Content-hash task cache, local and remote; filter by git range | Low |
| Nx | JS/TS (plus plugins for other stacks), larger orgs | Project graph, nx affected, local and remote cache, boundary lint rules | Medium |
| Bazel | Polyglot, very large repos, hermetic builds | Fine-grained, remote cache and remote execution | High: needs dedicated owners |
| Gradle multi-project | JVM | Incremental builds, build cache (local/remote) | Medium |
Go workspaces (go.work) | Several Go modules developed together | Go build cache; no affected detection | Low |
| Cargo workspaces | Rust crates | Shared target/ and Cargo.lock; incremental compilation | Low |
.NET solution (*.sln) + Directory.Build.props | .NET | Incremental builds; shared props and central package management | Low |
Defaults: JS/TS with fewer than ~50 packages: pnpm workspaces + Turborepo or Nx. JVM: Gradle. Polyglot at large scale with a platform team: Bazel.
apps/ # deployable things: web, api, workers
packages/ # libraries consumed by apps (or libs/)
tooling/ # shared config: eslint, tsconfig, build scripts
pnpm-workspace.yaml (packages: globs), "workspaces" in root package.json (npm/yarn), settings.gradle(.kts) include(...), go.work (go work init, go work use ./svc), [workspace] members in root Cargo.toml."@acme/ui": "workspace:*" (pnpm, Yarn 2+; npm and Yarn 1 use a plain version range), implementation(project(":lib")) (Gradle), path = "../lib" or workspace = true (Cargo).[workspace.dependencies], Gradle version catalogs (gradle/libs.versions.toml), .NET Central Package Management (Directory.Packages.props), pnpm catalogs (check that the installed pnpm version supports them). One version of each dependency across the repo prevents "works in package A, breaks in B".tooling/tsconfig with tsconfig.base.json, an ESLint config package, a shared Gradle convention plugin. Packages extend; they do not copy.Rules every repo needs, enforced by a tool that fails CI:
@acme/ui/src/internal/button. Set "exports" in each package.json so deep imports fail at resolution.| Stack | Enforcement |
|---|---|
| JS/TS | package.json exports; Nx @nx/enforce-module-boundaries with project tags; eslint-plugin-boundaries; dependency-cruiser; ESLint no-restricted-imports |
| JVM | Gradle project dependencies (no dependency means no access); ArchUnit tests for package rules |
| Go | internal/ directories are enforced by the compiler |
| Bazel | visibility attributes on targets |
| .NET | Project references; internal + InternalsVisibleTo only for tests |
nx affected -t lint test build, turbo run test --filter=...[origin/main], pnpm --filter "...[origin/main]" test. Newer Turborepo versions also offer --affected; check turbo run --help.actions/checkout, set fetch-depth: 0 (or fetch the base branch) or affected detection silently falls back to "everything" or "nothing".packages/ui must test every app that uses it. Turborepo/pnpm filter syntax ...pkg selects dependents; nx affected does this by default.dist/**, build/) and inputs precisely; a missing input gives wrong cache hits, which is worse than no cache.| Model | When | How |
|---|---|---|
| Single version (everything releases together) | Apps deployed together; internal-only packages | One version in root; tag the repo |
| Independent versions | Packages published to a registry for outside consumers | Changesets (npx changeset, then changeset version and changeset publish), Nx release, or similar |
| No versions (always head) | Internal packages consumed only inside the repo | workspace:*; apps deploy from a commit |
Prefer "no versions" for internal packages: it is the main benefit of a monorepo. Publishing to a registry is outward-facing: confirm with the user before running any publish command.
CODEOWNERS file (GitHub: root, docs/ or .github/; GitLab: root, docs/ or .gitlab/) mapping paths to teams, and require code-owner review on protected branches. On Azure DevOps, use branch policies with path-filtered required reviewers.tsconfig.json files. Extend a shared base.CODEOWNERS and a README.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
monorepo, workspace, build-caching, affected-builds, package-boundaries
14 skills in this plugin
/codebase-onboardingMaps an unfamiliar repository before changing it - stack, build/test/run commands, entry points, data flow, conventions and how changes ship - and writes a short map. Use when starting work in a repo you have not seen, when asked to explain how a codebase works, onboard to a project, find where something lives, or before a first change in a large or legacy codebase. Not for reviewing a specific diff./code-review-changesReviews code changes (a pull request, merge request or diff) like a senior engineer - finds real bugs, security holes, data risks and breaking changes, verifies each one, and reports it with file:line, a concrete failure scenario and a suggested fix. Use when asked to review a PR, merge request, diff, branch, staged changes or patch, or to check code before merging. Also covers responding to review comments on your own PR./dependency-upgradesUpgrades libraries, frameworks and toolchains safely - inventory outdated and vulnerable packages, read changelogs and migration guides, upgrade one major version at a time, regenerate and review lockfiles, test, and keep a one-commit rollback. Use when bumping dependencies, fixing security advisories or Dependabot and Renovate PRs, resolving version conflicts or peer dependency errors, or upgrading a framework, SDK or runtime version. Not for moving to a different framework or language (use large-scale-migrations)./design-docsWrites and reviews technical design documents (RFCs) and Architecture Decision Records (ADRs) with goals and non-goals, real alternatives, risks, security, rollout, rollback and observability. Use when planning a new system, service or major feature, choosing between architectures or technologies, recording an architectural decision, writing an RFC or ADR, or reviewing someone else's design doc. Not for user-facing documentation or API reference docs./git-workflowUses Git safely and cleanly - atomic commits with clear messages, branching, rebase vs merge, conflict resolution, pull request descriptions, and recovering from mistakes such as lost commits, bad merges, commits on the wrong branch, or a committed secret. Use when committing, writing commit messages, branching, rebasing, merging, resolving conflicts, preparing a pull request, undoing changes, cleaning history, or when someone says they broke their repository./incident-responseGuides production incident handling - assess severity, mitigate first (roll back, disable a flag, scale, fail over), then diagnose from recent changes, metrics, logs and traces, keep a timestamped timeline, draft status updates, and write a blameless postmortem with owned action items. Use when production is down or degraded, errors or latency spike, an alert fires, users report an outage, or the user asks for an incident review or postmortem. Not for debugging in local or development environments./engineering-core:monorepo-managementfrom engineering-core
npx claudepluginhub reddygopalkrishna/developer-agent-skills --plugin engineering-coreOther plugins' skills for the same job