AI Powered Software Development
November 19, 2026 2 min read

run-workflow command

HS
HEMANT SINGH
Technical Writer & Educator

/run-workflow?

A workflow is a predefined sequence of instructions or tasks designed to accomplish a particular objective.

The /run-workflow command is intended to execute an existing workflow rather than asking the AI to figure out every step from scratch.

In simple words: Create a reusable process once and execute it whenever required.

For example, imagine you regularly need to:

  1. Analyze Laravel code.
  2. Find potential bugs.
  3. Run automated tests.
  4. Review code quality.
  5. Generate a development report.

Instead of explaining these steps every time, you can organize them into a reusable workflow.


Practical example: Laravel application audit

Suppose you want to audit your Capscom Laravel application.

Use:

/run-workflow Audit my Laravel application.

Phase 1: Discover
- Identify all PHP files.
- Identify controllers, models and services.

Phase 2: Review
- Review each PHP file in parallel.
- Identify security vulnerabilities.
- Find unhandled exceptions.
- Identify duplicate code.
- Check validation practices.

Phase 3: Report
- Generate a structured report.
- Identify critical issues.
- Recommend improvements.

Do not modify any source files.
Use read-only agents for this audit.

This is a particularly good use case because many files can be reviewed independently.


Can we reuse workflows?

Important feature

Yes. You can ask Antigravity to save a generated workflow script in your project.

For example:

Save this workflow as:

scripts/laravel-audit.py

Later, you can execute it again:

/run-workflow Run scripts/laravel-audit.py

This makes repeated development processes easier to automate.


Practical exercise

Try this prompt in your Antigravity project:

/run-workflow Analyze my Laravel project.

Step 1:
Find all models in the application.

Step 2:
Review each model in parallel.

Step 3:
Identify:
- Missing relationships
- Missing casts
- Incorrect fillable properties
- Potential N+1 query problems

Step 4:
Generate a structured report.

Do not modify any files.
Return the results grouped by model.