origna-preflight

Runs flutter analyze and flutter test sequentially to validate code before pushing.

Updated Mar 9, 2026
One-click install
npx skills add https://github.com/yunior123/origna_gta_firebase --skill origna-preflight-yunior123
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: origna-preflight
Source: https://github.com/yunior123/origna_gta_firebase/tree/main/.claude/skills/origna-preflight
Command: npx skills add https://github.com/yunior123/origna_gta_firebase --skill origna-preflight-yunior123

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It prevents broken or unanalyzed Flutter code from being committed or pushed by enforcing a two-step validation gate that must pass before any push. ## Core Features & Use Cases - Static Analysis Gate: Runs flutter analyze --no-fatal-infos and stops immediately on any error, reporting each failure with file and line number. - Test Execution Gate: Runs flutter test only after analysis passes, reporting failed test names and assertion messages. - Sequential Execution: Enforces ordered, non-parallel execution to respect an 8 GB RAM constraint, and forbids suppressing warnings with // ignore. - Use Case: Before pushing changes to the origna_gta Flutter app, invoke the preflight check to confirm both analyze and tests are green, producing a clear READY TO PUSH or DO NOT PUSH verdict. ## Quick Start Run the preflight check on the origna_gta Flutter project and tell me whether it is safe to push.

Frequently Asked Questions about origna-preflight

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run flutter analyze and flutter test before pushing?▼

Run flutter analyze --no-fatal-infos first from the Flutter project root, then run flutter test only if analysis exits with code 0. Both steps must pass before pushing, and they should run sequentially rather than in parallel.

What is a pre-commit validation gate for Flutter projects?▼

A pre-commit validation gate is a check that runs static analysis and tests before allowing code to be committed or pushed. This skill runs flutter analyze then flutter test in sequence and blocks the push if either step fails.

Why should flutter analyze and flutter test not run in parallel?▼

Running both Flutter commands simultaneously can exhaust memory on constrained machines, such as systems with 8 GB of RAM. Sequential execution avoids resource contention and ensures each step completes reliably.

What happens if flutter analyze fails during preflight?▼

If flutter analyze fails, the process stops immediately and reports every error with its file and line number. Tests are not run, and the code must not be pushed until all analysis errors are fixed.

Can I suppress analyzer warnings with ignore comments to pass the gate?▼

No, suppressing warnings with // ignore comments to make the gate pass is explicitly forbidden. Warnings and errors must be fixed properly so the validation reflects the true state of the code.