agentleFS
DobroslavRadosavljevicDobroslavRadosavljevic/cabrakan/.agents/skills/turborepo/SKILL.md

turborepo

Skill1 starsChanged 3 months agoMITView on GitHub

Build, review, debug, configure, migrate, teach, or plan Turborepo monorepos with current docs and a full usage guide. Use for turbo, create-turbo, turbo.json, turbo.jsonc, tasks dependsOn ^build, inputs outputs, envMode strict, remote cache TURBO_TOKEN TURBO_TEAM, filters --affected, turbo watch, turbo prune Docker, package configurations, boundaries, generators, bun/pnpm workspaces, Next.js Vite Vitest Playwright oxlint oxfmt task graphs, and CI.

49 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use c15t, next-cache-components-optimizer and 8 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.
  • mezotvSkill

    c15t

    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

  • VercelSkill

    next-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

  • JetBrainsSkill

    vitepress

    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

  • JetBrainsSkill

    vue-testing-best-practices

    Use for Vue.js testing. Covers Vitest, Vue Test Utils, component testing, mocking, testing patterns, and Playwright for E2E testing.

    Also in 6 projects that use this

  • lukevellaSkill

    two-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

  • +5 more from JetBrains

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 1 is distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 48 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill when work touches Turborepo task orchestration, caching, monorepo structure, filters/affected CI, prune/Docker, watch/dev …

    line 8
  2. Very specific:

    Verify with the narrowest useful bunx turbo run … (--dry, --filter, or --affected).

    line 26
  3. Very specific:

    Prefer turbo run <tasks> in CI (not bare turbo build) so future CLI subcommands do not collide with task names.

    line 31
  4. Very specific:

    Use "dependsOn": ["^build"] for dependency builds.

    line 33
  5. Very specific:

    Default envMode is strict.

    line 34
  6. Very specific:

    Never recurse: package scripts must not call turbo run for the same task turbo is already running.

    line 35
  7. Very specific:

    Prefer --cache=local:…,remote:… over deprecated --no-cache / --remote-only.

    line 37
  8. Very specific:

    Prefer transit nodes (topo / transit) for parallel typecheck over TypeScript Project References with Turbo.

    line 39
  9. Distinctive:

    Prefer repository-owned commands.

    line 44

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Turborepo

Use this skill when work touches Turborepo task orchestration, caching, monorepo structure, filters/affected CI, prune/Docker, watch/dev graphs, or migrations onto turbo.

Workflow

  1. Inspect the local Turborepo surface before changing code:
    • Package versions for turbo / create-turbo (2.x line).
    • Root turbo.json / turbo.jsonc, package-level turbo.json, workspace globs, lockfile, devEngines.packageManager / packageManager.
    • Root and package package.json scripts that turbo invokes.
    • CI remote-cache env (TURBO_TOKEN, TURBO_TEAM), prune/Docker usage, --affected / filters.
  2. For setup, day-to-day runs, progressive adoption, baselines, and troubleshooting, follow the full guide first: usage-guide.md.
  3. Refresh current official docs when versions differ from the snapshot or the work touches caching, env hashing, prune, or future flags. Start from source-map.md.
  4. Route deeper detail:
    • Task graph, dependsOn/with, inputs/outputs, package configs: turbo-json-tasks.md.
    • turbo run, filters, --affected, watch, generators: cli-filtering-watch.md.
    • Local/remote cache, env modes, framework inference: caching-env-remote.md.
    • CI vendors, prune, Docker: ci-docker-prune.md.
    • Internal packages, framework/tool graphs, boundaries, migrations: packages-integrations.md.
  5. Preserve the repository's package manager and existing script names unless the user asks to migrate them.
  6. Verify with the narrowest useful bunx turbo run … (--dry, --filter, or --affected).

Core Judgment

  • Turborepo orchestrates existing package.json scripts. It is not a package manager and not a replacement for workspaces.
  • Prefer turbo run <tasks> in CI (not bare turbo build) so future CLI subcommands do not collide with task names.
  • Declare outputs for every cacheable build task. Missing outputs → cache hits restore nothing useful.
  • Use "dependsOn": ["^build"] for dependency builds; "dependsOn": ["build"] for same-package ordering. Do not confuse them.
  • Default envMode is strict. List hash-affecting vars in env / globalEnv; use passThroughEnv only when values must not bust the cache.
  • Never recurse: package scripts must not call turbo run for the same task turbo is already running.
  • Mark dev / watch / servers "cache": false and "persistent": true. Use "with" to co-run related persistent tasks.
  • Prefer --cache=local:…,remote:… over deprecated --no-cache / --remote-only.
  • Install dependencies where used (not root-hoisted) for better cache/prune fidelity.
  • Prefer transit nodes (topo / transit) for parallel typecheck over TypeScript Project References with Turbo.
  • Lint/format tools (for example Oxlint and Oxfmt) often fit as root tasks //#lint / //#format.

Verification

Prefer repository-owned commands. For meaningful Turborepo work, cover the relevant subset:

  • bunx turbo run <task> --dry=json or --graph to validate the DAG before expensive runs.
  • Focused bunx turbo run <task> --filter=<pkg> then widen to --affected when CI-shaped.
  • Cache correctness: change an input/env → expect miss; unchanged → expect hit (--summarize if hashing is unclear).
  • Remote cache smoke when changing TURBO_* or remoteCache config.
  • Prune/Docker: turbo prune <app> --docker then install+build from out/ when changing deploy graphs.
  • Watch/dev: confirm interruptible / with / persistent behavior for long-running tasks.

Report which checks ran, which did not, and any turbo-version or remote-cache assumptions that remain.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.