turborepo
Skill275 starsChanged 54 days agoApache-2.0View on GitHub
Best practices for Turborepo monorepo build system configuration and optimization
49 other projects use a version of this.
Adopted by
Most recently taken up by
- meza/skillstheir own version, first seen Nov 29, 2026
- Ghost7802/awesome-api-skillstheir own version, first seen Nov 29, 2026
- marcioaltoe/skillstheir own version, first seen Nov 29, 2026
- DobroslavRadosavljevic/cabrakantheir own version, first seen Nov 29, 2026
- compozy/compozytheir own version, first seen Nov 28, 2026
- philtzjp/skillstheir own version, first seen Nov 27, 2026
Used with
Projects with it also use c15t, next-cache-components-optimizer and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
mezotvSkillc15t
Work with c15t consent management docs, APIs, and integrations for Next.js, React, and JavaScript. Use when the user asks about c15t setup, components, hooks, styling, cookie/consent UX, GDPR/CCPA/IAB TCF compliance, script or iframe blocking, GTM/GA4/PostHog/Meta integrations etc, or self-hosting c15t/backend.
Also in 3 projects that use this
VercelSkillnext-cache-components-optimizer
Optimize the meaningful UI available immediately from a Next.js route on an initial load (hard navigation) or named client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route and entry point at a time; the shipped test then guards against regression. Use when asked to grow a static shell, fix a slow first paint or non-instant navigation, diagnose which Suspense boundary blocks useful UI, or add instant() regression coverage. Requires Next.js 16.3+ with Cache Components already adopted.
Also in 5 projects that use this
JetBrainsSkilltsdown
Bundle TypeScript and JavaScript libraries with blazing-fast speed powered by Rolldown. Use when building libraries, generating type declarations, bundling for multiple formats, or migrating from tsup.
Also in 9 projects that use this
JetBrainsSkillvitepress
VitePress static site generator powered by Vite and Vue. Use when building documentation sites, configuring themes, or writing Markdown with Vue components.
Also in 5 projects that use this
lukevellaSkilltwo-factor-authentication-best-practices
This skill provides guidance and enforcement rules for implementing secure two-factor authentication (2FA) using Better Auth's twoFactor plugin.
Also in 3 projects that use this
- +6 more from JetBrains
Other versions49 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 49
- langfuse/langfuse★ 38ksame name
- vercel/turborepo★ 31ksame name
- trycompai/crm★ 12ksame name
- openai/plugins★ 8.4ksame name
- primer/react★ 3.9ksame name
- TheEdoRan/next-safe-action★ 3.1ksame name
- compozy/compozy★ 2.9ksame name
- c15t/c15t★ 2ksame name
- bklit/bklit-ui★ 2ksame name
- sanity-io/next-sanity★ 955same name
39 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository264 other files it gives its agents.
- accessibility-a11ySkill
- alpine-jsSkill
- analytics-data-analysisSkill
- android-developmentSkill
- angular-developmentSkill
- angularSkill
- anime-jsSkill
- anthropic-claude-developmentSkill
- api-developmentSkill
- apollo-graphqlSkill
- aspnet-coreSkill
- astroSkill
- auth0-authenticationSkill
- autogen-developmentSkill
- automl-hyperparameter-optimizationSkill
- aws-developmentSkill
- azureSkill
- backend-developmentSkill
- bash-scriptingSkill
- beautifulsoup-parsingSkill
- bitbucket-workflowSkill
- blazorSkill
- blender-python-addonSkill
- blockchainSkill
- bootstrapSkill
- business-central-developmentSkill
- cheerio-parsingSkill
- chrome-extension-developmentSkill
- ci-cd-best-practicesSkill
- clean-architectureSkill
- clean-codeSkill
- clerk-authenticationSkill
- cloudflare-developmentSkill
- computer-vision-opencvSkill
- convexSkill
- cppSkill
- c-sharpSkill
- cssSkill
- cypressSkill
- data-analysis-jupyterSkill
- data-analystSkill
- data-jupyter-pythonSkill
- deep-learning-pythonSkill
- deep-learning-pytorchSkill
- deep-learningSkill
- deno-typescriptSkill
- design-systemsSkill
- devopsSkill
- django-pythonSkill
- django-rest-api-developmentSkill
- dockerSkill
- dotnetSkill
- drizzle-ormSkill
- drupal-developmentSkill
- elasticsearch-best-practicesSkill
- electron-developmentSkill
- elixirSkill
- embedded-stm32Skill
- esbuild-bundlerSkill
- ethereumSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 5 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 48 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Keep the root package.json minimal with workspace configuration
- Distinctive: line 20
Use consistent naming conventions across all workspaces
- Very specific: line 31
Use internal package references with workspace protocol: "@repo/ui": "workspace:*"
- Very specific: line 55
Use ^ prefix for topological dependencies (build dependencies first)
- Very specific: line 63
Use inputs to specify which files affect task caching
- Very specific: line 68
Use dependsOn to define task relationships:
- Distinctive: line 76
Create shared config packages:
- Very specific: line 84
Use turbo dev to run development servers across workspaces
- Very specific: line 86
Use --filter with patterns: turbo build --filter=./apps/*
- Very specific: line 92
Use --dry-run to preview what would be executed
- Distinctive: line 98
Keep task definitions consistent across similar workspaces
- Very specific: line 99
Use workspace-level turbo.json for package-specific overrides
- Distinctive: line 101
Document workspace purposes and relationships in README files
- Distinctive: line 102
Use TypeScript project references for faster type checking
“Common” is measured: kept by at least 6 in 10 of the 48 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Turborepo Development
You are an expert in Turborepo, the high-performance build system for JavaScript and TypeScript monorepos.
Project Structure
- Organize workspaces following the standard Turborepo structure:
apps/- Application workspaces (web apps, APIs, mobile apps)packages/- Shared packages (UI components, utilities, configs)tooling/- Build tools and configurations (optional)
- Keep the root
package.jsonminimal with workspace configuration - Use consistent naming conventions across all workspaces
Workspace Configuration
- Define workspaces in the root
package.json:{ "workspaces": ["apps/*", "packages/*"] } - Each workspace should have its own
package.jsonwith proper dependencies - Use internal package references with workspace protocol:
"@repo/ui": "workspace:*"
turbo.json Configuration
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**", "!.next/cache/**"]
},
"dev": {
"cache": false,
"persistent": true
},
"lint": {},
"test": {
"dependsOn": ["build"]
}
}
}- Use
^prefix for topological dependencies (build dependencies first) - Define proper
outputsfor caching - Mark development tasks with
cache: falseandpersistent: true
Caching Strategy
- Configure remote caching for CI/CD with Vercel or self-hosted solutions
- Define accurate
outputsarrays to ensure proper cache hits - Use
inputsto specify which files affect task caching - Exclude cache directories from outputs (e.g.,
!.next/cache/**)
Task Dependencies
- Use
dependsOnto define task relationships:"^build"- Run build in dependencies first"lint"- Run lint in the same package"@repo/ui#build"- Run build in a specific package
- Define proper task ordering for complex build pipelines
Shared Configurations
- Create shared config packages:
@repo/typescript-config- Shared TypeScript configurations@repo/eslint-config- Shared ESLint configurations@repo/tailwind-config- Shared Tailwind configurations
- Reference configs using
extendsor imports in workspace configs
Development Workflow
- Use
turbo devto run development servers across workspaces - Filter commands to specific workspaces:
turbo build --filter=web - Use
--filterwith patterns:turbo build --filter=./apps/* - Watch mode with
turbo watchfor continuous builds
CI/CD Integration
- Enable remote caching in CI for faster builds
- Use
--dry-runto preview what would be executed - Implement proper environment variable handling with
globalEnvandenv - Set up GitHub Actions or other CI with Turborepo caching
Best Practices
- Keep task definitions consistent across similar workspaces
- Use workspace-level
turbo.jsonfor package-specific overrides - Minimize root-level dependencies; install in workspaces that need them
- Document workspace purposes and relationships in README files
- Use TypeScript project references for faster type checking
- Implement incremental builds for large codebases
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

