monorepo-architect

monorepo-architect is an agent for Claude Code from wshobson/agents. It costs 63 tokens per session (383 once invoked), scanned A, original, MIT.

An expert guide to monorepo architecture, build systems, and dependency management using tools such as Nx, Turborepo, Bazel, and Lerna. A monorepo stores multiple related projects in one repository.

In plain words
What is it for?
Use it to create or migrate a monorepo, choose its tooling, share libraries, configure caching, detect affected projects, and coordinate parallel tasks.
Why use it?
It helps teams organise shared code, manage dependencies, and keep builds and continuous integration efficient as the repository grows.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the developer-essentials plugin — 11 skills, 1 agent shipped together

About the project

Agentic Plugin Marketplace is a collection of reusable plugins, agents, skills, commands, and rules for coding-agent tools including Claude Code, Codex CLI, Cursor, OpenCode, Antigravity CLI, and GitHub Copilot. It is for developers assembling agentic workflows across multiple harnesses from shared Markdown sources, and the catalogue entries are examples or subsets of those workflow components.

wshobson/agents · 39,448 stars · on GitHub · sethhobson.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/wshobson/agents/monorepo-architect
Clone the repo
git clone --depth 1 https://github.com/wshobson/agents

Made for: Claude Code.

Or install developer-essentials, the plugin that ships this one along with the rest of its 11 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for monorepo-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/wshobson/agents/monorepo-architect.svg)](https://agentmods.dev/agents/wshobson/agents/monorepo-architect)
Your own site
<a href="https://agentmods.dev/agents/wshobson/agents/monorepo-architect"><img src="https://agentmods.dev/badge/agents/wshobson/agents/monorepo-architect.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 383 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.00383
Opus 5 $0.00032 $0.00192
Sonnet 5 $0.00013 $0.00077
Haiku 4.5 $0.00006 $0.00038

Measured 2d ago against content hash 8d3e4c4cc317, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

monorepo-architect scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/developer-essentials/agents/monorepo-architect.md · 51 lines

What it actually says

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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 51 lines · 63 tokens per session scan A 8d3e4c4cc317

Subscribe to this mod's changes

monorepo-architect is an agent published in the GitHub repository wshobson/agents (39,448 stars, last pushed 4d ago), licensed MIT. It adds 63 tokens to every session and 383 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.