Agent skill
turbo
Turborepo monorepo build system with task pipelines, caching, and package management. Triggers on turbo, turbo.json, monorepo.
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/turbo
SKILL.md
<mcp_first> CRITICAL: Always fetch Turborepo documentation for current configuration.
MCPSearch({ query: "select:mcp__plugin_devtools_context7__query-docs" })
typescript
// Task configuration
mcp__context7__query_docs({
context7CompatibleLibraryID: "/vercel/turborepo",
topic: "tasks dependsOn outputs inputs"
})
// Caching
mcp__context7__query_docs({
context7CompatibleLibraryID: "/vercel/turborepo",
topic: "cache outputs remote caching"
})
// Filtering
mcp__context7__query_docs({
context7CompatibleLibraryID: "/vercel/turborepo",
topic: "filter workspace package"
})
</mcp_first>
<quick_start> turbo.json:
json
{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", ".next/**"]
},
"test": {
"dependsOn": ["build"],
"outputs": []
},
"lint": {
"outputs": []
},
"dev": {
"cache": false,
"persistent": true
}
}
}
Key concepts:
^build- Runbuildin dependencies firstoutputs- Files to cacheinputs- Files that affect cache keycache: false- Disable caching for dev taskspersistent: true- Long-running tasks </quick_start>
<task_patterns> Build pipeline:
json
{
"tasks": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**"],
"inputs": ["src/**", "package.json", "tsconfig.json"]
}
}
}
Test after build:
json
{
"tasks": {
"test": {
"dependsOn": ["build"],
"outputs": ["coverage/**"]
}
}
}
Parallel independent tasks:
json
{
"tasks": {
"lint": {
"outputs": []
},
"typecheck": {
"outputs": []
}
}
}
</task_patterns>
Best practices:
- Keep
inputsspecific to avoid cache misses - Use workspace filters for targeted builds
- Enable remote caching for CI
<success_criteria>
- Context7 docs fetched for current config
- Tasks have proper
dependsOn -
outputsdefined for cacheable tasks - Dev tasks have
cache: false - Pipeline is efficient (parallel where possible) </success_criteria>
Didn't find tool you were looking for?