About monorepo
A development skill for organizing monorepos with Nx, Turborepo, pnpm workspaces, and Lerna. It covers task orchestration, caching, package sharing, and practices such as affected builds and versioning.
Key features
- 01Nx graph and affected commands
- 02Turborepo task pipelines
- 03pnpm workspace layout
- 04Local, remote, and distributed caching
- 05Shared packages and configuration
- 06Versioning and CI practices
Use cases
- 01Choosing a monorepo toolchain
- 02Configuring build and test pipelines
- 03Sharing code across apps and packages
- 04Using cache and affected tasks in CI
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ thebeardedbearsas/ claude-craft --skill monorepoAfter installing, type/monorepoin Claude Code to confirm it loaded.
Details
From the project READMEMonorepo — Nx, Turborepo, pnpm Workspaces
Monorepo moderne avec caching distribué, task orchestration.
Tools
Nx — Graph-based, plugins, enterprise
Turborepo — Simple, fast, Vercel
pnpm workspaces — Léger, fast
Lerna — Legacy (migrer)
Turborepo
{ "pipeline": {
"build": { "dependsOn": ["^build"], "outputs": ["dist/**"] },
"test": { "cache": true }
}}
pnpm turbo build # Cache
pnpm turbo test --filter=...@main
Nx
nx affected --target=build
nx graph
Code Sharing
monorepo/
├── packages/ (ui, utils, config)
├── apps/ (web, api, mobile)
import { Button } from '@monorepo/ui';
Caching
Local — Dev | Remote — Team (Vercel, Nx Cloud) | Distributed — CI
npx turbo login && npx turbo link # Turborepo
npx nx connect-to-nx-cloud # Nx
pnpm Workspaces
packages: ['packages/*', 'apps/*']
Best Practices
Atomic commits | Versioning (changesets) | CI (affected) | Shared configs (root)
Voir @.claude/skills/tooling/SKILL.md
Comments
Markdown supported