/tooling:pnpm-workspacefrom tooling
Configures pnpm monorepo structure with workspace:* protocol, build ordering, filtering commands, and shared vs per-package dependency management.
Ships in tooling. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
app/
├── pnpm-workspace.yaml
├── package.json # Root scripts, devDependencies
├── packages/
│ └── shared/ # DTOs Zod, enums, types partages
│ ├── package.json
│ └── src/
├── apps/
│ ├── api/ # NestJS backend
│ │ ├── package.json
│ │ └── src/
│ └── web/ # Astro frontend
│ ├── package.json
│ └── src/
# pnpm-workspace.yaml
packages:
- 'packages/*'
- 'apps/*'
Use workspace:* for cross-package dependencies:
// apps/api/package.json
{
"dependencies": {
"@app/shared": "workspace:*"
}
}
This resolves to the local package, never fetches from npm.
packages/shared must build before apps/* because apps import from it.
// package.json (root)
{
"scripts": {
"build": "pnpm -r --filter=@app/shared build && pnpm -r --filter=./apps/* build",
"dev": "pnpm -r --parallel dev",
"test": "pnpm -r test",
"typecheck": "pnpm -r typecheck"
}
}
# Run in a specific package
pnpm --filter @app/shared build
pnpm --filter api test
# Run in all apps
pnpm --filter './apps/*' build
# Run in all packages except one
pnpm --filter '!web' test
Root package.json for devDependencies shared across all packages (TypeScript, ESLint, Prettier, Vitest):
// package.json (root)
{
"devDependencies": {
"typescript": "^5.7",
"vitest": "^3.0",
"eslint": "^9.0"
}
}
Package-specific dependencies go in each package's package.json.
// In apps/api or apps/web
import { CreateReceiptSchema, type CreateReceiptDto } from '@app/shared';
See also:
zod-conventionsfor how schemas are structured inpackages/shared.
| Rule | Convention |
|---|---|
| Workspace config | pnpm-workspace.yaml |
| Internal deps | workspace:* protocol |
| Build order | packages/shared first, then apps/* |
| Dev tools | Root devDependencies |
| App-specific deps | Per-package package.json |
| Filtering | pnpm --filter <package> |
| Parallel dev | pnpm -r --parallel dev |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
5 skills in this plugin
/docker-integrationACTIVATE when integrating a new Docker image, writing docker-compose.yml services, or adding external tools to a Docker stack. ACTIVATE for 'docker-compose', 'Docker image', 'container setup', 'service integration'. Covers: mandatory RTFM checklist before writing any docker-compose line (volumes, ports, env vars, healthchecks, internal architecture), image inspection commands, common anti-patterns that cause silent failures. DO NOT use for: Dockerfile writing, CI/CD pipeline configuration (see tooling:github-actions-conventions), Kubernetes./drizzle-conventionsACTIVATE when defining database schemas, writing queries, creating migrations, or implementing repositories with Drizzle ORM. ACTIVATE for 'Drizzle', 'pgTable', 'drizzle-kit', 'db.query', 'db.select', '$inferSelect', 'migration'. Covers: schema definition with pgTable, relations, type inference ($inferSelect/$inferInsert), Query API vs Select API vs raw SQL decision tree, repository pattern with toDomain/toPersistence, migration workflow (always drizzle-kit generate first, never manual journal). DO NOT use for: Doctrine/PHP queries (see php-sql-conventions), general SQL formatting./github-actions-conventionsACTIVATE when writing, reviewing or debugging a GitHub Actions workflow: jobs, timeouts, concurrency, a scheduled canary, path filters, caching, a red or stuck run. ACTIVATE for '.github/workflows', 'timeout-minutes', 'cancel-in-progress', 'on: schedule', 'nightly CI job', 'required check Pending', 'not acquired by Runner'. Covers: one entry step and one size per job, PR-only cancellation, pinned gate vs floating canary, allowlist guards, macOS legs. DO NOT use for: test sizes and where each check runs (see craft:test-suite-design), a canary release to users (see product:delivery), node --test flags (see node-test:node-test-conventions), bash 3.2 script fixes (see mac:mac-platform)./zod-conventionsACTIVATE when creating Zod schemas, inferring types, composing schemas, or integrating Zod with NestJS validation. ACTIVATE for 'Zod', 'z.object', 'z.infer', 'ZodValidationPipe', 'schema validation'. Covers: FooSchema naming convention, packages/shared location, schema composition (extend/pick/omit/merge), z.coerce for HTTP values, NestJS ZodValidationPipe integration, error formatting with safeParse+flatten. DO NOT use for: general TypeScript types (see ts-conventions), domain validation logic.npx claudepluginhub fabiensalles/claude-marketplace --plugin tooling