Workflow Turborepo

VérifiéPrudence

Scripts racine gérés par Turborepo (dev, build, lint, check-types). Définissez toujours les tâches dans turbo.json, avec des dépendances et des entrées/sorties minimales pour un cache fiable. Utile lors de l'ajout ou la modification de tâches, l'optimisation des builds/dev ou le débogage des pipelines.

Spar Skills Guide Bot
DeveloppementIntermédiaire
9002/06/2026
Claude Code
#turborepo#monorepo#task-pipeline#build-optimization#pnpm

Recommandé pour

Notre avis

Ce skill permet de gérer et optimiser les pipelines de tâches Turborepo dans un monorepo Liftera, en automatisant la configuration des tâches (dev, build, lint, check-types) et la modification du fichier turbo.json.

Points forts

  • Automatise la définition cohérente des tâches dans turbo.json
  • Garantit des dépendances correctes entre packages (^task)
  • Optimise le cache en minimisant les entrées/sorties
  • Intègre les scripts standards du monorepo (pnpm dev, build, lint, check-types)

Limites

  • Spécifique à l'architecture Liftera, non générique
  • Ne couvre pas la configuration avancée de Turborepo (filtres, remote caching)
  • Dépend de pnpm comme gestionnaire de paquets
Quand l'utiliser

Lors de l'ajout ou de la modification de tâches dans turbo.json, pour des optimisations de build/dev ou pour résoudre des problèmes de pipeline de tâches.

Quand l'éviter

Pour des projets n'utilisant pas Turborepo ou pnpm, ou pour des tâches nécessitant une configuration de build non standard en dehors du monorepo.

Analyse de sécurité

Prudence
Score qualité70/100

The skill allows Bash, which could execute arbitrary commands, but the instructions are limited to standard Turborepo tasks and project setup. There are no destructive, exfiltrating, or obfuscated actions. The risk is inherent to the Bash tool, not the skill's content.

Aucun point d'attention détecté

Exemples

Add a new task to turbo.json
Add a new 'test' task to turbo.json that runs tests in all packages, depends on the build task of upstream packages, and caches outputs in a 'coverage' directory.
Optimize build caching
Optimize the turbo.json to reduce cache misses: set minimal inputs for the build task (only source files) and ensure outputs are precise (dist folder).
Fix task pipeline dependency
The dev task isn't picking up changes from dependent packages. Check and fix the task dependencies in turbo.json so that dev has the correct upstream dependencies.

name: turborepo description: > Turborepo workflow for Liftera. Trigger: When adding/modifying tasks in turbo.json, optimizing builds/dev, or troubleshooting task pipelines. license: Apache-2.0 metadata: author: liftera version: "1.0" scope: [root] auto_invoke: "Working with Turborepo tasks" allowed-tools: Read, Edit, Write, Glob, Grep, Bash, WebFetch, WebSearch, Task

Core Commands (REQUIRED)

  • Root scripts are Turborepo-driven:
    • pnpm dev -> turbo run dev
    • pnpm build -> turbo run build
    • pnpm lint -> turbo run lint
    • pnpm check-types -> turbo run check-types

Task Principles (REQUIRED)

  • ALWAYS define tasks in turbo.json.
  • ALWAYS keep dev non-cached and persistent.
  • ALWAYS keep build outputs accurate for caching.

When Editing turbo.json

  • Ensure task dependencies include ^task when packages depend on other packages.
  • Keep inputs/outputs minimal and correct so caching is reliable.
Skills similaires