Commandpython
/validate Command
Run validation checks for current work (type checking, linting, tests, security)
Validate
Follow validate.prompt.md for: $ARGUMENTS
Modes
| Mode | Description |
|------|-------------|
| (default) | Quick validation - scoped to changes |
| --full | Complete CI pipeline |
| --fix | Auto-fix format/lint issues |
| --ci | Mirror exact CI configuration |
Flags
| Flag | Description |
|------|-------------|
| --files=<paths> | Validate specific files/directories |
| --uncommitted | Validate uncommitted changes (default) |
| --staged | Validate staged changes only |
| --security | Include npm audit |
| --coverage | Include test coverage report |
Examples:
/validate # Quick validation of changes
/validate --fix # Auto-fix format/lint issues
/validate --full # Complete CI pipeline
/validate --full --coverage # Full validation with coverage
/validate --ci # Mirror exact CI checks
/validate --security # Include security audit
Validation Levels
Quick (default):
- Format check
- Type check
- Lint
- Scoped tests
Full (--full):
- Format → Types → Lint
- Security audit (if
--security) - Full test suite
- Coverage report (if
--coverage) - Build
- Bundle size (if configured)
Fix (--fix):
- Auto-fix formatting
- Auto-fix lint errors
- Verify remaining issues
- Run scoped tests
Stops at first failure and reports solutions.