build-check
Run the full preflight pipeline (build, lint, typecheck, format check, tests) across the monorepo and report any failures.
- License 许可
- Apache-2.0
- 所属仓库
- torkelo/scenes2
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- build-check
- metadata
- { "source": ".hatch/_skills/build-check/SKILL.md", "generated": "hatch@v1.2.0" }
- description
- Run the full preflight pipeline (build, lint, typecheck, format check, tests) across the monorepo and report any failures.
- allowed-tools
- Bash, Read, Glob, Grep
- disable-model-invocation
- true
03 SKILL.md 正文
Full build check
Run the complete verification pipeline for the monorepo and report results.
An optional filter argument can scope to a single package: $ARGUMENTS
Pipeline
The canonical entry point is scripts/preflight.sh, which runs the same checks
CI runs, in the same order:
pnpm preflight
That covers, in order:
| Step | Command |
|---|---|
| Build | pnpm build |
| Lint | pnpm lint |
| Typecheck | pnpm typecheck |
| Format check | pnpm format:check |
| Tests | pnpm test |
set -euo pipefail in the script means the first failure aborts the run. If
you need the full picture of what's broken, run the steps individually so a
later step's failures aren't hidden by an earlier one:
pnpm build || echo "❌ build"
pnpm lint || echo "❌ lint"
pnpm typecheck || echo "❌ typecheck"
pnpm format:check || echo "❌ format"
pnpm test || echo "❌ test"
Scoping to one package
If the user supplied a filter argument (e.g. components, icons), run each
turbo task with --filter:
pnpm turbo run build typecheck lint test --filter=@grafana/$ARGUMENTS
pnpm format:check # format is a single pass on the repo
Report
Summarize results as a table:
| Step | Status | Notes |
|---|---|---|
| Build | pass/fail | … |
| Lint | pass/fail | … |
| Typecheck | pass/fail | … |
| Format | pass/fail | … |
| Tests | pass/fail | … |
For failures, list specific errors and suggest fixes. Common patterns:
- "Failed to resolve import" / missing types — an upstream workspace
package needs rebuilding. Run
pnpm turbo run build --filter=@grafana/<pkg>. - Format check fails —
pnpm format(no:check) writes the fixes. - "is defined but never used" —
pnpm lint:fixresolves most of these. - Type errors after token changes — rebuild design-tokens first, then
downstream packages. Turbo's
dependsOnchain usually handles this for you, but check that^buildactually ran on the upstream package.
04 同仓库更多 Skills
validate-plugin
validate a Grafana plugin using the official Grafana plugin validator
build-plugin
build a Grafana plugin using the standard build process (frontend and backend if applicable)
validate-plugin
暂无简介
build-plugin
暂无简介
stop-slop
Remove AI writing patterns from prose. Use when drafting, editing, or reviewing text to eliminate predictable AI tells.
snag-fixer
Lightweight agent for quick fixes, tweaks, and small improvements. Optimized for single-task focused work without bloating context. Used by snag workflow for sequential fix processing.