monorepo

monorepo is a skill for Claude Code from arbazkhan971/godmode. It costs 28 tokens per session (996 once invoked), scanned A, original, MIT.

A guide to organising a monorepo, a single repository containing multiple applications or libraries. It covers shared packages, dependency boundaries, build tools, caching, and dependency graphs.

In plain words
What is it for?
Use it to choose tools such as Turborepo, Nx, Lerna, Bazel, or Rush and to structure applications, shared libraries, selective builds, and package publishing.
Why use it?
It helps reduce slow builds, tangled dependencies, circular references, and code being used across packages in unintended ways.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the godmode plugin — 132 skills, 1 command, 7 agents, 3 MCP servers shipped together

Good fit Use it to choose tools such as Turborepo, Nx, Lerna, Bazel, or Rush and to structure applications, shared libraries, selective builds, and package publishing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arbazkhan971/godmode/monorepo
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 arbazkhan971/godmode --skill monorepo
Clone the repo
git clone --depth 1 https://github.com/arbazkhan971/godmode

Made for: Claude Code.

Or install godmode, the plugin that ships this one along with the rest of its 132 skills, 1 command, 7 agents, 3 MCP servers.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/arbazkhan971/godmode/monorepo/github.svg)](https://agentmods.dev/skills/arbazkhan971/godmode/monorepo)
Your own site
<a href="https://agentmods.dev/skills/arbazkhan971/godmode/monorepo"><img src="https://agentmods.dev/badge/skills/arbazkhan971/godmode/monorepo/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/arbazkhan971/godmode/monorepo"><img src="https://agentmods.dev/badge/skills/arbazkhan971/godmode/monorepo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 996 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 124
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium MCP Rug Pull · line 65
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 66
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 72
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00028 $0.00996
Opus 5 $0.00014 $0.00498
Sonnet 5 $0.00006 $0.00199
Haiku 4.5 $0.00003 $0.00100

Measured 6d ago against content hash 927b90a23db1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

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

skills/monorepo/SKILL.md · 133 lines

How it starts

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

Activate When

  • /godmode:monorepo, "monorepo", "workspace setup"
  • "selective builds", "dependency graph", "boundaries"
  • Multi-package project with slow CI or tangled deps

Workflow

1. Assessment

ls turbo.json nx.json lerna.json \
  pnpm-workspace.yaml 2>/dev/null
find . -name "package.json" -maxdepth 3 | wc -l
Packages: <N> | Languages: <list>
Build tool: <current|none>
Package manager: <npm|pnpm|yarn|bun>
CI time: <N min> full / <N min> affected
Boundary violations: <N> | Circular deps: <N>

2. Tool Selection

Turborepo: zero-config caching, simple. JS/TS.
  Learning: LOW.
Nx: rich plugins, codegen, dep graph UI.
  Enterprise, large. Learning: MEDIUM.
Lerna: publishing workflow, changelogs.
  npm package authors. Learning: LOW.
Bazel: language-agnostic, hermetic.
  Google-scale. Learning: HIGH.
Rush: strict dep management, phantom prevention.
  Learning: MEDIUM-HIGH.

IF multi-language: Bazel or Nx custom executors. IF prefer minimal config: Turborepo + pnpm. IF publishing npm packages: Lerna + pnpm.

3. Package Structure

<repo>/
  apps/       # Deployable applications
  packages/   # Shared libraries
  tools/      # Build tools, scripts
  package.json, turbo.json/nx.json

Naming: @<org>/<package>, lowercase kebab-case. Apps: "private": true. Packages: publishable.

4. Boundary Enforcement

  • apps/ can import packages/ (ALLOWED)
  • packages/ can import packages/ if declared
  • apps/ CANNOT import other apps/ (BLOCKED)
  • packages/ CANNOT import apps/ (BLOCKED)
  • No circular dependencies (BLOCKED)

5. Selective Builds & Caching

npx turbo run build --filter=...[origin/main]
npx nx affected --target=build --base=origin/main

Remote caching: Turborepo (Vercel) or Nx Cloud. Impact: 15-min build -> 30 seconds with cache hit.

6. Dependency Graph Health

Visualize: turbo run build --graph or npx nx graph. Fix: circular deps -> extract shared package. Hub packages (>5 dependents) -> split. Orphan packages (0 dependents) -> remove. Deep chains (4+ levels) -> flatten.

Read the full file on GitHub · 133 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. 6d ago First seen · 133 lines · 28 tokens per session scan A 927b90a23db1

Subscribe to this mod's changes

monorepo is a skill published in the GitHub repository arbazkhan971/godmode (26 stars, last pushed 12d ago), licensed MIT. It adds 28 tokens to every session and 996 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

utility-pm-skill-iterate

Applies targeted improvements to an existing pm-skills skill based on feedback, validation reports, or convention changes. Reads current files, previews proposed changes, writes on confirmation, and suggests a version bump. Use when improving a skill after validation or feedback.

product-on-purpose/pm-skills · 58 tokens

speckit-workflow

Comprehensive understanding of the spec-kit methodology. Constitution-driven feature development with specify, plan, tasks, and implement phases.

tzachbon/smart-ralph · 30 tokens

reddit-moderate

Reddit moderation via PRAW: fetch modqueue, classify reports, take actions.

notque/vexjoy-agent · 22 tokens

om-auto-fix-issue

Fix or implement a tracker issue end to end from a single command — takes an issue id or a plain problem description (filed first via om-prepare-issue), classifies, then drives the bug autofix chain (om-verify-in-repo, om-root-cause, om-fix, om-open-pr, om-auto-review-pr, om-auto-qa-pr for UI fixes) or the feature…

open-mercato/skills · 131 tokens

plan

Breaks features/goals into phased plans with task lists, agent assignments, dependencies. Triggers: plan feature, implementation roadmap, break down task, project phases.

softspark/ai-toolkit · 35 tokens

foundation-okr-writer

Drafts, reviews, rewrites, and coaches outcome-based OKR sets across team, department, product, or company scopes. Supports five entry modes (Guided default, One-Shot via --oneshot, Sustained Coach, Audit Only, Rewrite). Diagnoses empowered-team context and adjusts framing; refuses to fabricate baselines or targets…

product-on-purpose/pm-skills · 130 tokens