Token导航 LogoToken导航TokenDH.com
前端设计敏感数据github未标认证来源可访问许可证需确认审计通过

turborepoTurborepo Monorepo 构建

Agent Skill

turborepo 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

269

周安装

11

GitHub Stars

21

下载量

87
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:turborepo(Turborepo Monorepo 构建)
来源仓库:https://github.com/shipshitdev/library
仓库路径:skills/turborepo
安装命令:
npx skills add https://github.com/shipshitdev/library --skill turborepo
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/shipshitdev/library --skill turborepo

简介

用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在需要围绕仓库状态或代码变更进行整理时使用。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装命令:npx skills add https://github.com/shipshitdev/library --skill turborepo。
  • 建议确认权限范围、维护状态及是否触发联网或命令执行。

SKILL.md

Turborepo Skill

Build system guidance for JavaScript and TypeScript monorepos using Turborepo.

Core Rules

  1. Create package tasks, not root tasks.
  2. Register task behavior in turbo.json.
  3. Let root package.json delegate with turbo run <task>.
  4. Use turbo <task> only for interactive one-off terminal commands, not in committed code.
  5. Declare workspace dependencies in package.json so dependsOn: ["^build"] can resolve actual package relationships.

Baseline Pattern

// apps/web/package.json
{
  "scripts": {
    "build": "next build",
    "lint": "eslint .",
    "test": "vitest"
  }
}
// turbo.json
{
  "tasks": {
    "build": {
      "dependsOn": ["^build"],
      "outputs": ["dist/**", ".next/**", "!.next/cache/**"]
    },
    "lint": {},
    "test": {
      "dependsOn": ["build"]
    }
  }
}
// root package.json
{
  "scripts": {
    "build": "turbo run build",
    "lint": "turbo run lint",
    "test": "turbo run test"
  }
}

Quick Routing

Read only the reference files needed for the task:

NeedRead
Task definitions, dependsOn, outputs, persistent, package overridesreferences/configuration/RULE.md, references/configuration/tasks.md
Global options, daemon, cacheDir, env modereferences/configuration/global-options.md
Cache misses or remote cachereferences/caching/RULE.md, references/caching/gotchas.md, references/caching/remote-cache.md
Env vars, .env, strict vs loose modereferences/environment/RULE.md, references/environment/modes.md, references/environment/gotchas.md
--affected, --filter, package selectionreferences/filtering/RULE.md, references/filtering/patterns.md
CI, GitHub Actions, Vercel, turbo-ignorereferences/ci/RULE.md, references/ci/github-actions.md, references/ci/vercel.md, references/ci/patterns.md, references/cli/commands.md
Repo structure, package creation, dependency managementreferences/best-practices/RULE.md, references/best-practices/structure.md, references/best-practices/packages.md, references/best-practices/dependencies.md
Watch mode and long-running dev tasksreferences/watch/RULE.md, references/configuration/tasks.md
Package boundaries and isolationreferences/boundaries/RULE.md

Decision Trees

Configure a Task

Configure a task?
├─ Define dependencies or outputs → configuration/tasks.md
├─ Handle environment variables → environment/RULE.md
├─ Set package-specific overrides → configuration/RULE.md#package-configurations
├─ Add persistent/watch behavior → configuration/tasks.md + watch/RULE.md
└─ Tune global options → configuration/global-options.md

Debug Caching

Cache issue?
├─ Outputs not restored → add or fix `outputs`
├─ Unexpected misses → caching/gotchas.md
├─ Remote cache issue → caching/remote-cache.md
└─ Env or .env drift → environment/gotchas.md

Run Only Changed Work

Need changed packages only?
├─ Default path → `turbo run <task> --affected`
├─ Custom comparison base → add `--affected-base=...`
└─ Custom package selection → filtering/RULE.md + filtering/patterns.md

Set Up CI

CI setup?
├─ GitHub Actions → ci/github-actions.md
├─ Vercel deployment → ci/vercel.md
├─ Remote cache in CI → caching/remote-cache.md
└─ Skip unchanged work → ci/patterns.md + cli/commands.md

Structure the Monorepo

Repo/package structure?
├─ apps/ vs packages/ layout → best-practices/RULE.md
├─ Create internal package → best-practices/packages.md
├─ Workspace dependency management → best-practices/dependencies.md
└─ Enforce package boundaries → boundaries/RULE.md

High-Signal Anti-Patterns

  • Root scripts that bypass Turborepo entirely. Root scripts should delegate with turbo run, not embed app-specific task logic.
  • Committed turbo build or turbo lint commands in package.json, CI, or scripts. Use turbo run... in committed code.
  • Manual prebuild chains that compile sibling packages instead of declaring workspace dependencies and using ^build.
  • Missing outputs on tasks that write files. Read the actual script before deciding whether a task is cacheable.
  • Environment variables omitted from env or .env files omitted from inputs, causing stale cache hits.
  • Root-level .env files in a monorepo, which create hidden coupling between packages.
  • Relative imports or file traversal across package boundaries instead of importing through package APIs.
  • Package-specific overrides cluttering root turbo.json instead of using per-package turbo.json files.

See the detailed examples in:

  • references/configuration/gotchas.md
  • references/caching/gotchas.md
  • references/environment/gotchas.md
  • references/best-practices/structure.md
  • references/best-practices/packages.md

Common Configurations

Standard Build + Dev

{
  "tasks": {
    "build": {
      "dependsOn": ["^build"],
      "outputs": ["dist/**", ".next/**", "!.next/cache/**"]
    },
    "dev": {
      "cache": false,
      "persistent": true
    }
  }
}

Transit Node for Parallel Tasks With Correct Cache Invalidation

{
  "tasks": {
    "transit": {
      "dependsOn": ["^transit"]
    },
    "lint": {
      "dependsOn": ["transit"]
    }
  }
}

Use this when a task can run in parallel but still needs dependency source changes to invalidate its cache.

Watch Mode Pattern

Use turbo watch for file-change loops, not turbo run... --watch patterns improvised in scripts. Read references/watch/RULE.md before configuring persistent, interruptible, or with.

Validation Checklist

  • Every committed command in code or CI uses turbo run....
  • Tasks live in package scripts; root scripts only delegate.
  • dependsOn matches the actual dependency relationship: ^task for upstream packages, task for same-package prerequisites.
  • Cacheable file-producing tasks declare outputs.
  • Relevant environment variables are in env or globalEnv.
  • Relevant .env files are represented in inputs.
  • Workspace packages import each other through package names, not relative source paths.
  • CI uses --affected or filters when appropriate instead of rebuilding everything by default.

Source Documentation

Based on official Turborepo docs: apps/docs/content/docs/https://turborepo.dev/docs

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.09%
按下载量换算33

Claude

28.68%
按下载量换算25

Cursor

18.75%
按下载量换算16

Gemini CLI

9.52%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills