| name | turbo | ||||
|---|---|---|---|---|---|
| description | Repository guidance for using Turborepo to orchestrate workspace tasks, builds, validation, testing, and development workflows within the hr-skills monorepo. | ||||
| metadata |
|
This skill explains how Turborepo is used throughout the hr-skills monorepo. It covers workspace orchestration, task execution, caching, package filtering, and development workflows.
Turborepo coordinates tasks across every workspace package while Bun provides the runtime and package management.
- Explain how Turborepo is used within this repository
- Run workspace tasks from the repository root
- Build workspace packages
- Validate HR skills and repository metadata
- Synchronize generated repository artifacts
- Generate the skill maturity matrix
- Run tests and TypeScript type checking
- Execute filtered workspace tasks
- Recommend efficient development workflows
- Explain Turborepo caching behavior
- Generate CI workflows using Turborepo
This repository uses Turborepo to orchestrate workspace tasks.
Current pipeline tasks include:
- build
- dev
- test
- typecheck
- validate
- sync
- matrix
Repository scripts invoke Turborepo from the workspace root while package-level scripts provide the implementation.
Workspace packages define their own scripts.
Examples include:
packages/hr-skills-buildpackages/hr-skills-ref
Turborepo automatically coordinates task execution, dependency ordering, and caching across these packages.
Run all workspace builds.
bun run buildRun development tasks.
bun run devRun repository validation.
bun run validateSynchronize repository metadata.
bun run syncGenerate the skill maturity matrix.
bun run matrixGenerate the machine-readable skill registry.
bun run registryGenerate usage-informed relevance signals from evaluation golden fixtures.
bun run signalsSearch the generated registry by text or domain.
bun run discover "<query>"Get related-skill recommendations for a skill ID.
bun run recommend <skill-id>Generate an execution plan for a user intent.
bun run plan "<intent>"Generate a plan and run it through the workflow runtime.
bun run execute "<intent>"Run the evaluation framework against eval/datasets.
bun run evaluateRun every test suite.
bun run testRun TypeScript type checking.
bun run typecheckExecute a task directly with Turborepo.
turbo run buildRun a task for a single package.
turbo run build --filter=hr-skills-refRun validation for the build package only.
turbo run validate --filter=hr-skills-build- "Explain how Turborepo is used in this repository."
- "Describe the workspace task pipeline."
- "Explain how Bun and Turborepo work together."
- "List the repository tasks managed by Turborepo."
- "Run every workspace build."
- "Run validation for the repository."
- "Synchronize generated repository artifacts."
- "Run tests across every workspace package."
- "Run a task for a single workspace package."
- "Explain how
--filterworks." - "Recommend the correct package filter."
- "Generate filtered Turborepo commands."
- "Generate a Turborepo CI workflow."
- "Recommend a validation pipeline."
- "Explain Turborepo caching."
- "Optimize workspace builds for CI."
Current repository tasks include:
| Task | Purpose |
|---|---|
build |
Build workspace packages |
dev |
Run development tasks |
test |
Execute package test suites |
typecheck |
Run TypeScript type checking |
validate |
Validate HR skills and repository metadata |
sync |
Synchronize generated repository artifacts |
matrix |
Generate docs/engineering/skill-matrix.md skill maturity snapshot |
registry |
Generate the machine-readable skill registry (registry/skills.json) |
signals |
Generate usage-informed relevance signals from evaluation golden fixtures |
discover |
Search the generated registry by text or domain |
recommend |
Get related-skill recommendations for a skill ID |
plan |
Generate an execution plan for a user intent |
execute |
Generate a plan and run it through the workflow runtime |
evaluate |
Run the evaluation framework against eval/datasets |
Build every workspace package.
bun run buildValidate the repository.
bun run validateSynchronize generated files.
bun run syncGenerate the skill maturity matrix.
bun run matrixBuild only one package.
turbo run build --filter=hr-skills-refRun validation only for the build package.
turbo run validate --filter=hr-skills-buildA typical validation workflow is:
bun install --frozen-lockfile
bun run typecheck
bun run validate
bun run matrix
bun run test
bun run buildUse Turborepo caching to avoid rebuilding unchanged packages.
Tasks such as sync and matrix intentionally disable caching because they
always operate on the latest repository state and write files as a side
effect. validate is cacheable (it only depends on ^build) — a repeat run
with no source changes replays cached results instead of re-validating.
- Execute workspace tasks from the repository root.
- Prefer repository scripts (
bun run ...) over invoking package scripts directly. - Use
--filterduring development to reduce execution time. - Let Turborepo determine task execution order.
- Keep task outputs deterministic to maximize cache effectiveness.
- Running package scripts directly instead of using repository commands.
- Forgetting to use
--filterfor package-specific development. - Expecting cached results from tasks that explicitly disable caching.
- Running Turborepo outside the repository root.
- Defining inconsistent task names across workspace packages.
- Use repository scripts for everyday development.
- Reserve direct
turbo runcommands for advanced workflows. - Keep task names consistent across every workspace package.
- Enable caching only for deterministic tasks.
- Use package filters to shorten development feedback loops.
- Allow Turborepo to manage workspace execution and dependency ordering.