Validate Skill
Run the appropriate validation for your changes.
Commands
| Command | What it does | When to use |
|---|---|---|
bun run check | lint + format + typecheck | Quick syntax check |
bun run validate | check + build TS/worker + unit tests | Default for most changes |
bun run validate:core | validate + integration tests | Core behavior changes |
Decision Logic
- •
Check what files changed using
git statusorgit diff --name-only - •
Use
bun run validate:coreif changes touch:- •
src/agent/(core agent behavior) - •
src/workspace/(workspace lifecycle) - •
src/terminal/(terminal/WebSocket)
- •
- •
Use
bun run validatefor everything else - •
Run specific tests relevant to your changes instead of full suites:
bashbun test test/unit/relevant.test.ts bun test test/integration/relevant.test.ts bun test web/e2e/relevant.spec.ts
Steps
- •
Check changed files:
bashgit diff --name-only HEAD
- •
Run validation + relevant tests:
bashbun run validate # Then run specific tests for your changes bun test test/unit/relevant.test.ts
- •
If validation fails, fix issues and re-run
- •
Run warden to get code review feedback locally (security, react best practices, code simplification):
bashwarden -v
The
-vflag streams findings in real-time. Fix any issues warden finds before creating a PR.
Notes
- •
validateis fast (~30s),validate:coreadds integration tests (~1-2min) - •CI runs full validation on PRs, so targeted tests are usually sufficient locally