turborepo
Skill266 starsChanged 10 months agoApache-2.0View on GitHub
Best practices for Turborepo monorepo build system configuration and optimization
19 other projects use a version of this.
Adopted by
Most recently taken up by
- louisbrulenaudet/monorepo-templatetheir own version, first seen Oct 2, 2026
- compozy/compozytheir own version, first seen Oct 1, 2026
- philtzjp/skillstheir own version, first seen Sep 30, 2026
- vercel/turborepotheir own version, first seen Sep 27, 2026
- cashew-labs/librettotheir own version, first seen Aug 18, 2026
- ElyzeSolutions/skillstheir own version, first seen Aug 6, 2026
Used with
Projects with it also use hono, better-auth-best-practices and 6 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.
VercelSkillhono
Use when building Hono web applications deployed to Vercel, or when the user asks about Hono APIs, routing, middleware, JSX, validation, testing, or streaming. TRIGGER when code imports from 'hono' or 'hono/*', or user mentions Hono. Use `npx hono request` to test endpoints.
Also in 4 projects that use this
anasahmed07Skillbetter-auth-best-practices
Skill for integrating Better Auth - the comprehensive TypeScript authentication framework.
Also in 3 projects that use this
akornmeierSkillshadcn-ui
Use when building React UIs with component libraries, implementing forms, dialogs, navigation, or data display. Use when user mentions shadcn, Radix UI, Base UI, or asks about accessible React components. Proactively suggest when building UI that would benefit from pre-built accessible components with Tailwind CSS styling.
Also in 3 projects that use this
SentrySkillvercel-composition-patterns
Also in 3 projects that use this
VercelSkillweb-design-guidelines
Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".
Also in 4 projects that use this
StrayDragonSkillui-ux-pro-max
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.
Also in 3 projects that use this
Other versions19 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 19
- vercel/turborepo★ 31ksame name
- openai/plugins★ 7.3ksame name
- compozy/compozy★ 2.8ksame name
- cashew-labs/libretto★ 904same name
- JetBrains/skills★ 360same name
- ever-works/ever-works★ 157same name
- louisbrulenaudet/monorepo-template★ 18same name
- LeonardoTrapani/better-skills★ 11same name
- wpank/ai★ 11same name
- Harmeet10000/skills★ 7same name
9 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 18 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 16
Keep the root package.json minimal with workspace configuration
- Distinctive: line 17
Use consistent naming conventions across all workspaces
- Very specific: line 28
Use internal package references with workspace protocol: "@repo/ui": "workspace:*"
- Very specific: line 52
Use ^ prefix for topological dependencies (build dependencies first)
- Very specific: line 60
Use inputs to specify which files affect task caching
- Very specific: line 65
Use dependsOn to define task relationships:
- Distinctive: line 73
Create shared config packages:
- Very specific: line 81
Use turbo dev to run development servers across workspaces
- Very specific: line 83
Use --filter with patterns: turbo build --filter=./apps/*
- Very specific: line 89
Use --dry-run to preview what would be executed
- Distinctive: line 95
Keep task definitions consistent across similar workspaces
- Very specific: line 96
Use workspace-level turbo.json for package-specific overrides
- Distinctive: line 98
Document workspace purposes and relationships in README files
- Distinctive: line 99
Use TypeScript project references for faster type checking
“Common” is measured: kept by at least 6 in 10 of the 18 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.

