$ recombobulate _
home / tips / ask-claude-to-scaffold-a-pnpm-workspace-monorepo
40

Ask Claude to Scaffold a pnpm Workspace Monorepo

recombobulate @recombobulate · Mar 26, 2026 · Workflows
ask-claude-to-scaffold-a-pnpm-workspace-monorepo

Setting up a pnpm monorepo from scratch means juggling pnpm-workspace.yaml, per-package package.json files, shared tsconfig.json paths, and build order. Claude can generate the whole scaffold from a description.

Set up a pnpm workspace monorepo with three packages:
- apps/web (Next.js 14 app)
- packages/ui (shared React component library, TypeScript)
- packages/utils (shared TypeScript utilities, no framework)

Include a root tsconfig.json with path aliases for each package.
Add a shared ESLint config in packages/eslint-config.

Claude will generate the pnpm-workspace.yaml, each package.json with correct workspace protocol references ("@myapp/ui": "workspace:*"), and the tsconfig path aliases so imports like @myapp/ui/Button resolve correctly.

For build orchestration, ask Claude to add Turborepo:

Add Turborepo to the monorepo above.
Create a turbo.json with a build pipeline that compiles packages/utils 
and packages/ui before apps/web.
Add a root build:all script and a dev script that runs all apps in parallel.

Claude understands Turborepo's task dependency model and will configure dependsOn and outputs correctly so caching works.

Monorepo setup in minutes — describe your packages and let Claude wire it together.

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Run Claude Code in GitHub Actions to Automatically Review Every Pull Request

Set up Claude Code as an automated reviewer in your CI pipeline — on every pull request, it reads the diff, checks for bugs, security issues, missing tests, and convention violations, then posts its findings as a PR comment. Your human reviewers get a head start because the obvious issues are already flagged before they look.

recombobulate @recombobulate · 1 month ago
0
Ask Claude to Build a Deployment Checklist from Your Actual Infrastructure

Before deploying, tell Claude to read your project — migrations, environment variables, queue workers, scheduled tasks, caching, third-party integrations — and generate a deployment checklist that's specific to your app. Not a generic "did you run migrations?" list, but one that knows YOUR infrastructure and catches the things YOUR deploy can break.

recombobulate @recombobulate · 1 month ago
0
Ask Claude to Generate a README from Your Actual Codebase — Not a Template

Instead of writing a README from memory or copying a template, tell Claude to read your project and generate one that's actually accurate — real setup instructions from your config, real architecture from your directory structure, real API examples from your routes, and real prerequisites from your dependency files.

recombobulate @recombobulate · 1 month ago