monorepo-management

monorepo-management is a skill for Claude Code, Codex from hoangatg/ai-agent-toolkit. It costs 43 tokens per session (787 once invoked), scanned A, original, MIT.

A guide to managing a monorepo, a single repository containing multiple applications and shared packages. It covers Turborepo, Nx, pnpm workspaces, dependencies, builds, and team workflows.

In plain words
What is it for?
Use it to plan repository structure, share libraries, coordinate packages, and optimize multi-package builds.
Why use it?
It helps keep shared code and dependencies consistent while allowing individual applications or packages to be built and deployed separately.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to plan repository structure, share libraries, coordinate packages, and optimize multi-package builds.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hoangatg/ai-agent-toolkit/monorepo-management
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.

Any agent
npx skills add hoangatg/ai-agent-toolkit --skill monorepo-management
Clone the repo
git clone --depth 1 https://github.com/hoangatg/ai-agent-toolkit

Made for: Claude Code, Codex.

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-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/monorepo-management/github.svg)](https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/monorepo-management)
Your own site
<a href="https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/monorepo-management"><img src="https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/monorepo-management/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for monorepo-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/monorepo-management"><img src="https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/monorepo-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 787 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00043 $0.00787
Opus 5 $0.00022 $0.00394
Sonnet 5 $0.00009 $0.00157
Haiku 4.5 $0.00004 $0.00079

Measured 7d ago against content hash 990698aaa68b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

monorepo-management 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 7d 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.

.agent/skills/monorepo-management/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Monorepo Management

One repo, many packages. Shared code, independent deploys.


1. Tool Selection

Tool Best For
Turborepo JavaScript/TypeScript, simple setup
Nx Full-featured, plugins, any language
pnpm Workspaces Package management (often paired with Turbo/Nx)
Lerna Legacy, publishing-focused
Bazel Very large scale, polyglot

2. Structure

Recommended Layout

monorepo/
├── apps/            # Deployable applications
│   ├── web/         # Next.js frontend
│   ├── mobile/      # React Native app
│   └── api/         # Backend server
├── packages/        # Shared libraries
│   ├── ui/          # Shared UI components
│   ├── config/      # Shared configs (ESLint, TS)
│   ├── utils/       # Shared utilities
│   └── types/       # Shared TypeScript types
├── turbo.json       # Turborepo config
├── pnpm-workspace.yaml
└── package.json     # Root package

3. Dependency Management

Principle Application
Internal packages Reference via workspace protocol workspace:*
Shared deps Hoist common dependencies to root
Version sync Same version of React across all apps
Dev deps Config packages (ESLint, TypeScript) shared

4. Build Optimization

Turborepo Features

Feature Impact
Remote caching Skip builds already done by teammates
Task pipelines Define build order dependencies
Parallel execution Build independent packages simultaneously
Pruning Deploy only needed packages

Pipeline Config

Only rebuild what changed:
├── Package A changed → Rebuild A + dependents
├── Package B unchanged → Cache hit ✅
└── App X depends on A → Rebuild X

5. CI/CD for Monorepos

Strategy Approach
Affected only Build/test only changed packages
Remote cache Share build cache across CI runs
Parallel Run tests per package in parallel
Deploy independently Each app has its own deploy pipeline

Read the full file on GitHub · 115 lines

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. 7d ago First seen · 115 lines · 43 tokens per session scan A 990698aaa68b

Subscribe to this mod's changes

monorepo-management is a skill published in the GitHub repository hoangatg/ai-agent-toolkit (1 stars, last pushed 5mo ago), licensed MIT. It adds 43 tokens to every session and 787 once invoked, about $0.0002 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.