monorepo-navigator
Fungsinya
Skill ini membantu mengatur banyak paket kode yang berkaitan dalam satu repositori dan mempercepat build. Skill ini untuk tim dengan kode bersama di beberapa aplikasi yang ingin menghindari membangun ulang semuanya.
Kapan dipakai
- βSaat beberapa aplikasi atau paket berbagi kode dan build terasa lambat.
- βSaat Anda ingin membangun dan menguji hanya paket yang terdampak oleh suatu perubahan.
- βSaat Anda memindahkan beberapa repositori terpisah ke dalam satu monorepo.
Link skill
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/monorepo-navigator/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βSiapkan Turborepo untuk tiga aplikasi dan satu paket UI bersama kami, sehingga hanya bagian yang berubah yang dibangun ulang.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill memetakan paket mana bergantung pada paket mana, mencari apa yang terdampak oleh suatu perubahan, dan menyiapkan perintah yang hanya berjalan pada paket tersebut, plus opsi cache build.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Monorepo Navigator
Tier: POWERFUL
Category: Engineering
Domain: Monorepo Architecture / Build Systems
Overview
Navigate, manage, and optimize monorepos. Covers Turborepo, Nx, pnpm workspaces, and Lerna. Enables cross-package impact analysis, selective builds/tests on affected packages only, remote caching, dependency graph visualization, and structured migrations from multi-repo to monorepo. Includes Claude Code configuration for workspace-aware development.
Core Capabilities
- Cross-package impact analysis β determine which apps break when a shared package changes
- Selective commands β run tests/builds only for affected packages (not everything)
- Dependency graph β visualize package relationships as Mermaid diagrams
- Build optimization β remote caching, incremental builds, parallel execution
- Migration β step-by-step multi-repo β monorepo with zero history loss
- Publishing β changesets for versioning, pre-release channels, npm publish workflows
- Claude Code config β workspace-aware CLAUDE.md with per-package instructions
When to Use
Use when:
- Multiple packages/apps share code (UI components, utils, types, API clients)
- Build times are slow because everything rebuilds when anything changes
- Migrating from multiple repos to a single repo
- Need to publish packages to npm with coordinated versioning
- Teams work across multiple packages and need unified tooling
Skip when:
- Single-app project with no shared packages
- Team/project boundaries are completely isolated (polyrepo is fine)
- Shared code is minimal and copy-paste overhead is acceptable
Tool Selection
| Tool | Best For | Key Feature |
|---|---|---|
| Turborepo | JS/TS monorepos, simple pipeline config | Best-in-class remote caching, minimal config |
| Nx | Large enterprises, plugin ecosystem | Project graph, code generation, affected commands |
| pnpm workspaces | Workspace protocol, disk efficiency | workspace:* for local package refs |
| Lerna | npm publishing, versioning | Batch publishing, conventional commits |
| Changesets | Modern versioning (preferred over Lerna) | Changelog generation, pre-release channels |
Most modern setups: pnpm workspaces + Turborepo + Changesets
Turborepo
β See references/monorepo-tooling-reference.md for details
Workspace Analyzer
python3 scripts/monorepo_analyzer.py /path/to/monorepo
python3 scripts/monorepo_analyzer.py /path/to/monorepo --json
Also see references/monorepo-patterns.md for common architecture and CI patterns.
Common Pitfalls
| Pitfall | Fix |
|---|---|
Running turbo run build without --filter on every PR |
Always use --filter=...[origin/main] in CI |
workspace:* refs cause publish failures |
Use pnpm changeset publish β it replaces workspace:* with real versions automatically |
| All packages rebuild when unrelated file changes | Tune inputs in turbo.json to exclude docs, config files from cache keys |
| Shared tsconfig causes one package to break all type-checks | Use extends properly β each package extends root but overrides rootDir / outDir |
| git history lost during migration | Use git filter-repo --to-subdirectory-filter before merging β never move files manually |
| Remote cache not working in CI | Check TURBO_TOKEN and TURBO_TEAM env vars; verify with turbo run build --summarize |
| CLAUDE.md too generic β Claude modifies wrong package | Add explicit "When working on X, only touch files in apps/X" rules per package CLAUDE.md |
Best Practices
- Root CLAUDE.md defines the map β document every package, its purpose, and dependency rules
- Per-package CLAUDE.md defines the rules β what's allowed, what's forbidden, testing commands
- Always scope commands with --filter β running everything on every change defeats the purpose
- Remote cache is not optional β without it, monorepo CI is slower than multi-repo CI
- Changesets over manual versioning β never hand-edit package.json versions in a monorepo
- Shared configs in root, extended in packages β tsconfig.base.json, .eslintrc.base.js, jest.base.config.js
- Impact analysis before merging shared package changes β run affected check, communicate blast radius
- Keep packages/types as pure TypeScript β no runtime code, no dependencies, fast to build and type-check
Pertanyaan umum
Alat apa saja yang didukung?
Turborepo, Nx, pnpm workspaces, dan Lerna.
Bisakah menunjukkan ketergantungan antar paket?
Bisa. Skill dapat menggambar grafik ketergantungan paket sebagai diagram.
Apakah membantu menerbitkan paket?
Ya, skill mencakup alur kerja versioning dan publikasi dengan changesets.
Detail
Deskripsi asli dari pembuat
Use for Turborepo, Nx, pnpm-workspace or Lerna setup, affected-only builds, remote caching or a multi-repo to monorepo move. Maps packages and the dependency graph with monorepo_analyzer.py.
Popularitas
- Bintang GitHub
- 29k
- Peringkat
- #9593
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
agent-launcher-orchestrator
29kMembantu agent Anda merencanakan, membangun, menguji, dan menjadwalkan agent Claude terkelola di akun Anda sendiri, langkah demi langkah.
grade-iterate
29kMembantu agent Anda menilai hasil kerja agent AI terkelola berdasarkan rubrik dan memperbaikinya dalam jumlah putaran tetap, agar tidak berputar tanpa henti.
interview
29kMembantu agent Anda mewawancarai Anda tentang ide agent AI dan mengubah jawaban Anda menjadi rencana pembangunan sederhana sebelum apa pun diluncurkan.
run-without-you
29kMembantu agent Anda disiapkan agar berjalan tanpa Anda sesuai jadwal atau saat sebuah peristiwa terjadi, dengan waktu cron diperiksa sebelum peluncuran.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.