Skip to main content
subagent CX Codex

monorepo-architect — Claude Code subagent: overview and install

Architects scalable monorepo workspaces and build caching with Nx, Turborepo, Bazel, or Lerna. Speeds up CI pipelines by isolating affected packages.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add wshobson/agents
/plugin install developer-essentials@claude-code-workflows
Open on GitHub

What monorepo-architect does

Configured around the opus model, this subagent helps teams structure multi-project workspaces. It evaluates codebase scale to choose between Nx, Turborepo, Bazel, or Lerna, then designs workspace boundaries and library extraction paths.

The workflow targets CI/CD bottlenecks through task orchestration, affected package detection, and build caching. It sets dependency constraints via tags and organizes parallel task execution.

Remote caching and dependency tracking require established code ownership rules and clear package boundaries before rollout.

What it helps with

  • choose between Nx, Turborepo, Bazel, or Lerna for project needs
  • configure local and remote build caching to reduce CI execution time
  • migrate standalone repositories into a unified monorepo workspace
  • extract common business logic and UI into dedicated shared libraries

Example prompts for the agent

  • Design a Turborepo workspace to combine our frontend and backend repositories.
  • Configure affected task detection and remote caching for our CI pipeline.
  • Extract common API client logic into an internal library within this Nx workspace.

How to install monorepo-architect

1Plugin marketplace

/plugin marketplace add wshobson/agents
/plugin install developer-essentials@claude-code-workflows

2Manually: put the files in place

.claude/agents/monorepo-architect.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about monorepo-architect

How to install monorepo-architect in Claude Code?

Run /plugin marketplace add wshobson/agents followed by /plugin install developer-essentials@claude-code-workflows.

What does monorepo-architect do?

It designs monorepo directory structures, configures task pipelines, and manages project dependency graphs to streamline builds.

Which build tools does this subagent support?

It works with Nx, Turborepo, Bazel, and Lerna, configuring dependency constraints and workspace caching for each tool.

Source text

monorepo-architect.md · MIT
---
name: monorepo-architect
description: Expert in monorepo architecture, build systems, and dependency management at scale. Masters Nx, Turborepo, Bazel, and Lerna for efficient multi-project development. Use PROACTIVELY for monorepo setup, build optimization, or scaling development workflows across teams.
model: opus
---

# Monorepo Architect

Expert in monorepo architecture, build systems, and dependency management at scale. Masters Nx, Turborepo, Bazel, and Lerna for efficient multi-project development. Use PROACTIVELY for monorepo setup, build optimization, or scaling development workflows across teams.

## Capabilities

- Monorepo tool selection (Nx, Turborepo, Bazel, Lerna)
- Workspace configuration and project structure
- Build caching (local and remote)
- Dependency graph management
- Affected/changed detection for CI optimization
- Code sharing and library extraction
- Task orchestration and parallelization

## When to Use

- Setting up a new monorepo from scratch
- Migrating from polyrepo to monorepo
- Optimizing slow CI/CD pipelines
- Sharing code between multiple applications
- Managing dependencies across projects
- Implementing consistent tooling across teams

## Workflow

1. Assess codebase size and team structure
2. Select appropriate monorepo tooling
3. Design workspace and project structure
4. Configure build caching strategy
5. Set up affected/changed detection
6. Implement task pipelines
7. Configure remote caching for CI
8. Document conventions and workflows

## Best Practices

- Start with clear project boundaries
- Use consistent naming conventions
- Implement remote caching early
- Keep shared libraries focused
- Use tags for dependency constraints
- Automate dependency updates
- Document the dependency graph
- Set up code ownership rules

© Seth Hobson · MIT · wshobson/agents

Similar subagents

All subagents for DevOps and infrastructure →

From the same set508

The whole set →
debug-trace Configures local and remote debugging environments, from VS Code launch profiles to DevTools instrumentation. Useful when troubleshooting complex runtime issues. CX Codex ★ 41,823repo stars distributed-debugging-error-detective This subagent traces error patterns through logs and code, links failures across services, and helps investigate production incidents. CX Codex ★ 41,823repo stars spark-preflight Runs a preflight on a DGX Spark box for a planned training or inference job and writes env-report.json with a verdict. CX Codex ★ 41,823repo stars dgx-spark-ops-engineer Inspects NVIDIA DGX Spark environments on GB10 and CUDA 13 hardware. It detects ABI mismatches and thermal throttling risks before workloads start. CX Codex ★ 41,823repo stars config-validate Check application settings against schemas and environment rules, and scan for possible secrets. Useful when reviewing configuration before production. CX Codex ★ 41,823repo stars smart-debug A slash command that reads error messages and stack traces, ranks hypotheses about the root cause, and proposes a fix. Useful when a bug only shows up sometimes. CX Codex ★ 41,823repo stars debugging-toolkit-dx-optimizer A subagent that streamlines onboarding to under 5 minutes and removes workflow bottlenecks. It configures tools and automates repetitive developer routines. CX Codex ★ 41,823repo stars debugging-toolkit-debugger This subagent investigates errors, failed tests, and odd behavior by tracing failures to their cause and checking a focused fix. CX Codex ★ 41,823repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor