Stack Validator
One validator for a Biome, Bun, Next.js and Tailwind stack. Each stack keeps its own checks behind one script, one report format and one set of flags. Run it before stack work, after AI generates config, and in CI.
When to use
- Setting up or auditing a Biome, Bun, Next.js or Tailwind project
- Before code-quality, routing or styling work on that stack
- After AI generates
biome.json,package.json,next.config.*or Tailwind CSS - CI/CD pipeline validation
Quick start
bashpython3 scripts/validate.py --root . # auto-detect stacks from the project python3 scripts/validate.py --root . --stack nextjs # one stack python3 scripts/validate.py --root . --stack biome --stack tailwind --strict python3 scripts/validate.py --root . --stack all --json
Run from the skill directory, or use the installed path to scripts/validate.py (needs python3). Auto-detection picks a stack from package.json dependencies or config files: @biomejs/biome or biome.json; bun.lock, legacy bun.lockb or bunfig.toml; next; tailwindcss. With none detected the script exits with an error and asks for --stack.
Stacks
| Stack | Validates | Flags | Reference |
|---|---|---|---|
biome | @biomejs/biome 2.3+, $schema version, linter rules and domains, assist.actions | organizeImports at root, missing domains, leftover ESLint/Prettier configs | references/biome.md |
bun | Bun 1.3+, private root, workspaces, catalogs, workspace: protocol, one root bun.lock (a lone legacy bun.lockb warns, both is an error) | dependencies in root, lockfiles inside workspaces, hardcoded local versions | references/bun.md |
nextjs | next 16+, App Router, proxy.ts, use cache, next.config.ts | middleware.ts, pages/ pages, getServerSideProps/getStaticProps, next/router | references/nextjs.md |
tailwind | tailwindcss 4+, @import "tailwindcss", @theme, @tailwindcss/postcss | tailwind.config.*, @tailwind directives, autoprefixer, old PostCSS plugin | references/tailwind.md |
Read only the reference for the stack being validated: it holds the GOOD/BAD examples, deprecated-pattern tables, migration steps and full guide.
Flags
| Flag | Effect |
|---|---|
--root <dir> | Project root (default .) |
--stack <name> | Stack to validate; repeat for several, or all. Default: auto-detect |
--strict | Treat warnings as errors (exit 1 on any warning or error) |
--ci | Exit 1 on errors |
--verbose | List passed checks |
--json | One stack: that stack's report object. Several: an object keyed by stack |
Without --ci or --strict the script reports and exits 0.
CI/CD integration
yaml# .github/workflows/validate.yml - name: Validate stack config run: | python3 scripts/validate.py \ --root . \ --stack all \ --strict \ --ci
Pass only the stacks the project uses; --stack all validates every stack and reports a missing dependency as an error.
Related skills (if available)
/git safety: ensures no secrets are committed


