Validate implementation before shipping
Runs automated checks (types, lint, tests, build) to validate code before shipping. Detects your project's tech stack and runs only relevant checks.
/plugin marketplace add benshapyro/cadre-devkit-claude/plugin install benshapyro-cadre-devkit-claude@benshapyro/cadre-devkit-claudePurpose: Quantitative validation - runs automated checks (types, lint, tests, build).
Distinct from /review: This command runs automated tooling. Use /review first for qualitative code review (style, security, best practices).
Workflow: /review → /validate → /ship
Run all validations before shipping code. Automatically detects the project's tech stack and runs only relevant checks.
First, check which config files exist to determine the project type:
package.json → Node.js/TypeScript projecttsconfig.json → TypeScriptpyproject.toml or requirements.txt → PythonCargo.toml → Rustgo.mod → GoUse Glob to check for these files before running language-specific checks.
Type checking:
!npx tsc --noEmit 2>&1 || true
Linting (if lint script exists):
!npm run lint 2>&1 || true
Tests:
!npm test 2>&1 || true
Build:
!npm run build 2>&1 || true
Linting:
!ruff check . 2>&1 || true
Type checking:
!mypy . 2>&1 || true
Tests:
!pytest -q 2>&1 || true
Check:
!cargo check 2>&1 || true
Clippy:
!cargo clippy -- -D warnings 2>&1 || true
Tests:
!cargo test 2>&1 || true
Build:
!go build ./... 2>&1 || true
Vet:
!go vet ./... 2>&1 || true
Tests:
!go test ./... 2>&1 || true
Answer these questions with evidence:
Q1: Are tests passing?
Q2: Are all requirements met?
Q3: No unverified assumptions?
Q4: Is there evidence?
## Validation Report
### Tech Stack Detected
[List detected languages/frameworks]
### Type Checking
[✅ Passed / ❌ Failed / ⏭️ Skipped (not applicable)]
[Details if failed]
### Linting
[✅ Passed / ❌ Failed / ⏭️ Skipped (not applicable)]
[Details if failed]
### Tests
[✅ X passed, Y failed / ❌ Failed to run / ⏭️ Skipped]
[Failure details if any]
### Build
[✅ Passed / ❌ Failed / ⏭️ Skipped (not applicable)]
[Details if failed]
### Summary
[READY TO SHIP / NEEDS FIXES]
/ship to commit/validate