What problem does it solve?
This Skill acts as a critical quality gate, catching code that is "almost right" – code that compiles and passes basic linting but contains subtle logic errors, missing error handling, or incomplete implementations, preventing regressions and ensuring robustness before code enters the repository.
Core Features & Use Cases
- Logic Review: Identifies data flow errors, edge case misses, and async bugs.
- Error Handling Verification: Ensures proper try/catch blocks, user-friendly error messages, and correct HTTP status codes.
- Regression Prevention: Checks for compatibility issues with dependent files and identifies untested impact zones.
- Completeness Check: Verifies new code includes necessary components like validation schemas, loading states, and tests.
- Security Sub-Check: Integrates with the
sentinel skill for security vulnerability scanning.
- Use Case: Before committing a new feature, run
preflight to automatically scan your code for potential bugs, ensure all error paths are handled, and confirm that the changes won't break existing functionality, thus maintaining a high standard of code quality.
Quick Start
Run the preflight skill to check the quality of staged code changes.