build-validator
Validate builds, type checks, and linting after code changes. Use proactively before finishing tasks or opening PRs.
When & Why to Use This Skill
The Build Validator skill is an automated quality assurance tool designed to verify code integrity immediately after modifications. It streamlines the development workflow by executing build commands, performing static type checks, and running linters across multiple environments (Node.js, Go, Rust, Python). By proactively identifying compilation errors and style violations before code is committed or merged, it ensures high code quality and reduces the frequency of broken CI/CD pipelines.
Use Cases
- Pre-PR Validation: Automatically run full build and linting suites before opening a pull request to ensure the branch meets all project standards.
- Cross-Language Compatibility: Detect project types (e.g., Cargo, NPM, Go modules) and execute the appropriate validation commands without manual configuration.
- Automated Debugging Loop: Identify specific line-item failures in type checks or linting and generate structured reports to guide immediate code corrections.
- Environment Readiness Check: Verify that all necessary dependencies and environment variables are correctly configured for a successful build.
| name | build-validator |
|---|---|
| description | Validate builds, type checks, and linting after code changes. Use proactively before finishing tasks or opening PRs. |
Build Validation
Workflow
- Identify project type (e.g.,
package.json,Makefile,Cargo.toml,go.mod). - Check dependencies and required env vars.
- Run build commands.
- Run type checks and lint where applicable.
- Analyze failures and propose fixes.
Common commands
- Node.js/TypeScript:
npm run build,npm run typecheck,npm run lint - Go:
go build ./...,go vet ./... - Rust:
cargo build,cargo clippy - Python:
python -m py_compile,mypy,ruff check
Report format
## Build Validation Report
### Status: ✅ Success / ❌ Failure
### Commands
- `cmd`: result
### Issues (if any)
1. [Severity] file:line - description
### Recommended actions
- next steps