Back to 💻 Local Dev Environment

Pre-Flight Check

CI/CDTestingBuildQuality
---
description: Run type checking, linting, and build verification before pushing
---

1. **Type Check**:
- Ensure there are no TypeScript errors.
// turbo
- Run npx tsc --noEmit

2. **Lint Check**:
- Verify code quality rules.
// turbo
- Run npm run lint

3. **Build Verification**:
- Ensure the project builds successfully for production.
// turbo
- Run npm run build

4. **Pro Tips**:
- Use a pre-push git hook (using husky) to run this automatically.
- If the build fails locally, it will definitely fail in production.
By Antigravity Team

How to Use This Workflow

Option A: Project-Specific (Recommended)

  1. Click "Download" above
  2. In your project, create the directory: .agent/workflows/
  3. Save the file as run-pre-flight-check-type-lint-build.md
  4. In Antigravity, type /run_pre_flight_check_type_lint_build or just describe what you want to do

Learn more about workflows →

Related Workflows

Recommended Rules

View more rules →

Recommended MCP Servers

View more MCP servers →

Take It Further

Maximize your productivity with these powerful resources

📋

Define Your Standards

Set up coding standards to ensure this workflow produces consistent, high-quality results.

Browse Rules Library
📖

Master Workflows

Learn how to create custom workflows, use Turbo Mode, and build your automation library.

Complete Guide