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

turborepoTurborepo Monorepo 构建

Agent Skill

turborepo 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

897

周安装

37

GitHub Stars

10

下载量

293
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/oakoss/agent-skills --skill turborepo

简介

turborepo 用于查找、检索和筛选相关信息,适合在 Monorepo 构建或工作流相关任务中提供支持。

  • 适用于多包项目管理与构建加速场景,可协助定位候选结果或优化构建流程。
  • 通过 GitHub 仓库安装,使用 npx skills add 等 --skill turborepo 命令部署。
  • 注意是否涉及真实构建过程,避免误操作影响依赖或触发非预期构建。
  • 建议参考仓库文档了解具体应用场景和操作要求后再使用。

SKILL.md

Turborepo

Overview

Build system for JavaScript/TypeScript monorepos. Caches task outputs and runs tasks in parallel based on dependency graph. Always create package tasks (not root tasks), use turbo run in scripts, and let dependsOn manage execution order. Configuration uses turbo.json (or turbo.jsonc for comments).

When to use: Monorepo task orchestration, build caching, CI optimization, workspace dependency management, package boundary enforcement.

When NOT to use: Single-package projects, non-JavaScript monorepos, projects without build steps.

Quick Reference

PatternSyntaxKey Points
Schema"$schema": "https://turborepo.dev/schema.json"Always include in turbo.json
Dependency build"dependsOn": ["^build"]Build dependencies first
Same-package task"dependsOn": ["codegen"]Run in same package first
Specific package"dependsOn": ["pkg#task"]Named package's task
Parallel lint/typecheckTransit Nodes patternCache invalidation without sequential execution
Dev server"persistent": true, "cache": falseLong-running, non-cacheable
Sidecar tasks"with": ["api#dev"]Run tasks concurrently alongside
Watch modeturbo watch devRe-run on file changes
Filter by package--filter=webSingle package
Filter with deps--filter=web...Package + dependencies
Changed packages--affectedChanged + dependents
Debug cache--summarize or --drySee hash inputs
Package configturbo.json with "extends": ["//"]Per-package overrides
Composable config"extends": ["@repo/config"]Extend from any workspace package
Extend arrays"$TURBO_EXTENDS$" in arraysAppend to inherited config instead of replacing
Env vars in hash"env": ["API_URL"]Cache invalidation on change
Boundariesturbo boundariesEnforce package isolation and import rules
Query graphturbo queryGraphQL interface to package/task graphs
Code generationturbo generateScaffold new packages and components
List packagesturbo lsList all packages in monorepo
Devtoolsturbo devtoolsVisual Package Graph and Task Graph explorer
Docker pruned workspaceturbo prune <pkg> --dockerMinimal monorepo slice for container builds

Decision Trees

Configure a Task

Configure a task?
+-- Define task dependencies       -> dependsOn in turbo.json
+-- Lint/check-types (parallel)    -> Transit Nodes pattern
+-- Specify build outputs          -> outputs key
+-- Handle environment variables   -> env key or globalEnv
+-- Dev/watch tasks                -> persistent: true, cache: false
+-- Sidecar tasks (run alongside)  -> with key
+-- Package-specific config        -> Package turbo.json with extends: ["//"]
+-- Composable config              -> extends from any workspace package
+-- Global settings                -> globalEnv, globalDependencies, cacheDir

Cache Problems

Cache problems?
+-- Outputs not restored           -> Missing outputs key
+-- Unexpected cache misses        -> Use --summarize or --dry to debug
+-- Skip cache entirely            -> --force or cache: false
+-- Remote cache not working       -> Check turbo login/link
+-- Environment causing misses     -> Var not in env key

Filter Packages

Filter packages?
+-- By package name                -> --filter=web
+-- By directory                   -> --filter=./apps/*
+-- Package + dependencies         -> --filter=web...
+-- Package + dependents           -> --filter=...web
+-- Changed + dependents           -> --affected

Explore Repository

Explore repository?
+-- List all packages              -> turbo ls
+-- Query dependency graph         -> turbo query
+-- Visualize graphs               -> turbo devtools
+-- Check boundary violations      -> turbo boundaries
+-- Generate new package           -> turbo generate workspace
+-- Run custom generator           -> turbo generate run [name]

Common Mistakes

MistakeCorrect Pattern
Putting build logic in root package.json scripts instead of per-packageDefine scripts in each package and use turbo run in root to delegate
Using ^build without declaring workspace:* dependencyAdd the dependency in package.json first; ^build only triggers for declared dependencies
Chaining turbo tasks with && in package scriptsUse dependsOn in turbo.json to declare task ordering
Not adding environment variables to the env key in turbo.jsonDeclare all build-affecting env vars in env so cache hashes correctly
Using --parallel flag to bypass dependency orderingConfigure dependsOn correctly or use transit nodes for parallel tasks with proper cache invalidation
Using outdated schema URLUse https://turborepo.dev/schema.json in $schema field
Overriding inherited arrays in package configsUse $TURBO_EXTENDS$ in arrays to append instead of replace
Defining tasks in root turbo.json that belong to a specific packageDefine tasks inside the package's own turbo.json with extends: ["//"]
Using turbo <task> shorthand in scripts or CIUse turbo run <task> in package.json scripts and CI pipelines; shorthand is for interactive use only

Delegation

  • Monorepo structure exploration: Use Explore agent to discover packages, workspace layout, and dependency relationships
  • Pipeline configuration and optimization: Use Task agent to set up turbo.json tasks, configure caching, and debug cache misses
  • Monorepo architecture planning: Use Plan agent to design package boundaries, shared libraries, and CI optimization strategy
If the pnpm-workspace skill is available, delegate workspace setup, dependency linking, catalogs, and pnpm deploy to it. If the changesets skill is available, delegate versioning, changelog generation, and npm publishing to it.

References

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.76%
按下载量换算114

Claude

32.3%
按下载量换算95

Cursor

16.57%
按下载量换算49

Gemini CLI

9.78%
按下载量换算29

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

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

安装前确认

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

来源信息

继续浏览同类 Skills