Add Turborepo to an existing repository in any toolchain Turborepo supports. Use when asked to add, introduce, or set up Turborepo or turbo in a repository that does not use it yet.
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Add Turborepo to an existing repository for selected tasks, without changing what existing commands do. In workspace repositories, configure workspace package tasks. In single-package repositories, configure root tasks.
Read these before changing files, and treat them as the source of truth for configuration syntax and toolchain prerequisites:
Once turbo is installed, prefer its bundled docs/README.md, which matches the installed version. If you cannot verify the docs, stop instead of relying on remembered syntax.
Stop and explain why, leaving the repository unchanged, if:
Read the manifests, workspace definition, lockfiles, root scripts or task-runner targets, package dependency relationships, and CI configuration. Summarize the toolchains, layout, candidate tasks, observed dependencies, outputs, environment variables, and anything you could not infer.
A direct request to add Turborepo is enough to proceed. Ask first only if the request is ambiguous or would widen the scope below.
Configure only tasks whose behavior is clear, preferring lint, type-check, format-check, unit-test, and build tasks that the repository already runs.
Do not:
Keep existing root entry points. Give the turbo version of a root orchestrator its own name following the repository's convention, such as <task>:turbo. Replace the original only if the turbo command is proven equivalent.
Install turbo as the toolchain's guide describes. If the repository pins its tool versions, pin turbo to an exact version the same way. Regenerate lockfiles with the tool that owns them. Never edit a lockfile by hand.
Add any prerequisites from the toolchain guide that are missing, such as a workspace name or toolchain declaration. Take versions from the lockfile or the toolchain's own command instead of guessing.
Create a root turbo.json for the selected tasks only:
futureFlags. Tell the user if that support is experimental.dependsOn, inputs, outputs, and environment variables only when the repository shows they are needed.inputs, include "$TURBO_DEFAULT$". Reference root files outside a package with "$TURBO_ROOT$/<path>".Toolchain support can register built-in tasks you did not select. Report them as deferred, not validated.
Add the dependency directory and .turbo to .gitignore if they are missing. Do not change any other ignore rules.
Install dependencies in frozen or immutable mode. Then check a turbo run <task> --dry output for each task:
Then run each existing command and its turbo equivalent, and compare package coverage, ordering, exit status, and outputs. A passing turbo run alone does not prove equivalence. If behavior differs, narrow the configuration or stop. Never delete the old command to hide a difference.
Summarize:
turbo commands;Commit, push, or open a pull request only if the user asks. Open it as a draft.
Work in the caller's branch, do not open a pull request, and return the diff, validation results, and deferred tasks to the caller. If the change would need to go beyond the selected tasks, stop instead of widening the scope.
vercel/turborepo
9923319
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.