build-validator
Validates build, tests, and lint before push to ensure quality gates pass.
- License 许可
- MIT
- 所属仓库
- goffity/dev-km
- 最近更新
- 2026-11-10
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- build-validator
- context
- fork
- description
- Validates build, tests, and lint before push to ensure quality gates pass.
- user-invocable
- false
02 资源文件 8
- 许可证LICENSE1.0 KB
- 参考文档references/cli-reference.md8.1 KB
- 参考文档references/error-recovery.md5.8 KB
- 参考文档references/mock-network.md3.1 KB
- 参考文档references/state-manipulation.md12.6 KB
- 参考文档repos/metamask-extension.md11.9 KB
- 参考文档SOURCE.md365 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
Build Validator
Agent สำหรับตรวจสอบ build, tests, และ lint ก่อน push
Purpose
- รัน tests และตรวจสอบผลลัพธ์
- รัน build และตรวจสอบ success
- รัน linter และตรวจสอบ errors
- รวบรวมผลลัพธ์เป็น report
- Block push ถ้าไม่ผ่าน
Instructions
Step 1: Detect Project Type
[ -f "Makefile" ] && echo "Makefile detected"
[ -f "package.json" ] && echo "Node.js project"
[ -f "go.mod" ] && echo "Go project"
[ -f "Cargo.toml" ] && echo "Rust project"
[ -f "pyproject.toml" ] && echo "Python project"
Step 2: Run Tests
| Project Type | Command |
|---|---|
| Makefile | make test |
| Node.js | npm test / bun test / yarn test |
| Go | go test ./... |
| Python | pytest |
| Rust | cargo test |
Step 3: Run Build
| Project Type | Command |
|---|---|
| Makefile | make build |
| Node.js | npm run build |
| Go | go build ./... |
| Rust | cargo build |
Step 4: Run Linter
| Project Type | Command |
|---|---|
| Node.js/TS | npm run lint / eslint . |
| Go | golangci-lint run / go vet ./... |
| Python | ruff check . / flake8 |
| Rust | cargo clippy |
Step 5: Run Type Check (if applicable)
| Project Type | Command |
|---|---|
| TypeScript | npm run typecheck / tsc --noEmit |
| Python | mypy . |
Step 6: Analyze Results
| Check | Pass Criteria |
|---|---|
| Tests | Exit code 0, no failures |
| Build | Exit code 0, artifacts created |
| Lint | No errors (warnings OK) |
| Types | No type errors |
Output Format
## Build Validation Report
**Project:** [project-name]
**Date:** YYYY-MM-DD HH:MM:SS
**Branch:** [branch-name]
### Overall Status: PASS / FAIL
---
### Test Results
| Status | Details |
|--------|---------|
| PASS/FAIL | X tests passed, Y failed |
### Build Results
| Status | Details |
|--------|---------|
| PASS/FAIL | Build details |
### Lint Results
| Status | Details |
|--------|---------|
| PASS/FAIL/WARN | Error/warning counts |
### Type Check Results
| Status | Details |
|--------|---------|
| PASS/FAIL | Type error counts |
---
### Summary
| Check | Status | Time |
|-------|--------|------|
| Tests | pass/fail | Xs |
| Build | pass/fail | Xs |
| Lint | pass/fail | Xs |
| Types | pass/fail | Xs |
**Recommendation:** Ready to Push / Do Not Push
Error Recovery
| Failure | Recovery |
|---|---|
| Missing deps | npm install / go mod tidy |
| Stale cache | Clean and rebuild |
| Type errors | Fix types first |
| Lint errors | Run formatter |
04 同仓库更多 Skills
wait-what
Stop. That last message did not land: re-pitch it.
tdd
Test-driven development loop (red-green-refactor) with commit-based phase state and Jira traceability. Use when the user wants to build a feature or fix a bug test-first, mentions "tdd", "red-green-refactor", or "test-first". Replaces the tdg plugin — combines its commit/phase discipline with seam-based test quality rules from kb Testing Standards.
td
Creates post-task retrospectives with Before/After context and session documentation.
summary
Generates weekly or monthly session summaries from retrospectives and activity logs.
share
Shares knowledge across projects by copying to shared-knowledge directory with cross-project metadata.
session-analyzer
Analyzes git changes and creates retrospective drafts with Before/After context.