Skip to content
Back to skills

Monorepo

ASecurity

Monorepo management (Nx, Turborepo, pnpm workspaces) — task orchestration, caching, code sharing. Use when setting up monorepo, optimizing builds, or managing multi-package projects.

  • 105 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 5, 2026
ai-agentstypescriptbashapi

Works with

  • api

Security analysis

A100/100

Scanned September 5, 2026

npx -y skills add TheBeardedBearSAS/claude-craft --skill monorepo --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Monorepo?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Monorepo
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thebeardedbearsas-monorepo/badge)](https://www.skillsdirectory.com/skills/thebeardedbearsas-monorepo)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: monorepo
description: Monorepo management (Nx, Turborepo, pnpm workspaces) — task orchestration, caching, code sharing. Use when setting up monorepo, optimizing builds, or managing multi-package projects.
context: fork
  files: ["**/nx.json", "**/turbo.json", "**/pnpm-workspace.yaml", "**/lerna.json"]
---

# Monorepo — 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

```json
{ "pipeline": {
  "build": { "dependsOn": ["^build"], "outputs": ["dist/**"] },
  "test": { "cache": true }
}}
```

```bash
pnpm turbo build                 # Cache
pnpm turbo test --filter=...@main
```

## Nx

```bash
nx affected --target=build
nx graph
```

## Code Sharing

```
monorepo/
├── packages/ (ui, utils, config)
├── apps/ (web, api, mobile)
```

```typescript
import { Button } from '@monorepo/ui';
```

## Caching

**Local** — Dev | **Remote** — Team (Vercel, Nx Cloud) | **Distributed** — CI

```bash
npx turbo login && npx turbo link  # Turborepo
npx nx connect-to-nx-cloud         # Nx
```

## pnpm Workspaces

```yaml
packages: ['packages/*', 'apps/*']
```

## Best Practices

**Atomic commits** | **Versioning** (`changesets`) | **CI** (affected) | **Shared configs** (root)

---

Voir `@.claude/skills/tooling/SKILL.md`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…