Flutter Ci Debugging
ASecurityDiagnose Flutter CI builds that fail, stall, get killed or are too slow on GitHub Actions, without burning CI runs on guesses. Read the evidence with gh, classify the failure signature, size Gradle for the runner, check whether Jetifier can be turned off, and for slow pipelines measure each step, fix slow tests, cut setup cost and test only affected packages. Use when the user says "the CI build failed", "runner shutdown signal", "exit code 143", "Java heap space", "JetifyTransform", "No spac...
- 3 stars
- 0 votes
- 0 copies
- 4 views
- Added November 24, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add Atou4/skillsmith --skill flutter-ci-debugging --agent claude-codeAre you the author of Flutter Ci Debugging?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/atou4-flutter-ci-debugging)---
name: flutter-ci-debugging
description: >-
Diagnose Flutter CI builds that fail, stall, get killed or are too slow on GitHub Actions,
without burning CI runs on guesses. Read the evidence with gh, classify the failure signature,
size Gradle for the runner, check whether Jetifier can be turned off, and for slow pipelines
measure each step, fix slow tests, cut setup cost and test only affected packages. Use when the
user says "the CI build failed", "runner shutdown signal", "exit code 143", "Java heap space",
"JetifyTransform", "No space left on device", "job exceeded the maximum execution time",
"gradle cache is not found", "why is CI slow", "speed up flutter test" or "CI takes too long".
Not for setting up a pipeline from scratch.
---
# Flutter CI debugging
For a Flutter app whose Android (or monorepo matrix) build on GitHub-hosted runners fails, stalls to
a timeout or is killed, or whose pipeline is too slow. The rule that saves the most time: every
guessed change costs a full CI run, so read the evidence and measure before changing anything.
It does not create pipelines (the upstream `flutter-cicd` skill covers that; without it, write the
workflow by hand), and it does not change workflow files, `gradle.properties` or secrets without
asking.
## Steps
1. **Read the evidence, read-only.** Get the failing job and step, its annotations, and where the
output stopped, using the `gh` commands in
[references/android-ci-troubleshooting.md](references/android-ci-troubleshooting.md#read-the-failure-signature-before-changing-anything).
If the log is gone (`BlobNotFound`), use the job page with timestamps. Do not re-run the job yet.
2. **Know the machine.** Check the repo's visibility (`gh repo view --json visibility`): a private
repo's `ubuntu-latest` has 2 CPUs, 8 GB RAM and 14 GB disk; a public repo's has 4 and 16 GB.
3. **Classify the signature** with the table in the reference: disk full, runner killed (exit 143),
silent stall to timeout, `Java heap space` in `JetifyTransform`, or a cache that never saves.
Say which one it is and which line of the log shows it.
4. **Check the docs and known issues** for the exact error text before proposing a fix: runner
specs, the tool's own checks (`checkJetifier`), the project's issue tracker.
5. **Measure locally, for free.** Follow "Measure locally before pushing" in the reference. It
changes `~/.gradle/gradle.properties` and kills Gradle daemons on the user's machine: say so,
back the file up first, ask, and restore it afterwards.
6. **Push one change that both fixes and measures** (for example Gradle sized for the runner plus a
temporary memory monitor), ask before pushing it, and remove the instrumentation once green.
7. **Verification and report.** Give the run id of the green build, the before and after evidence
(peak memory, duration, the signature that disappeared), confirm the temporary monitor and local
Gradle changes are removed, and list anything you could not check.
## When the pipeline is slow, not failing
Follow [references/ci-speed.md](references/ci-speed.md):
1. **Measure per step** over the last few successful runs with `gh run view --json jobs`, and
rank the test files with `flutter test --file-reporter json:...`. Show the table before
proposing anything.
2. **Name the biggest cost** across all jobs of a run (a 75 s setup step in four matrix jobs beats
a 60 s test step in one).
3. **Propose in order of payoff**: fix slow test patterns, cut fixed setup cost, test only affected
packages, run packages in parallel, and bundle test files last, only with hundreds of files or
coverage on.
4. **Estimate billed minutes** before adding any job (macOS runners bill about 10 times Linux), and
ask before changing the workflow.
5. **Verification.** The same per-step table from at least two runs after the change, and the same
test count as before.
## Rules
- **Never raise `timeout-minutes` to fix a stall.** A silent stall is usually memory pressure; a
longer timeout only burns more minutes.
- **Never give Gradle or the Kotlin daemon an `-Xmx` near the runner's total RAM.** Flutter's
template ships `-Xmx8G`, sized for a developer machine.
- **Prefer turning Jetifier off over raising heap for it**, but only after `:app:checkJetifier`
reports no legacy support libraries for that app.
- **CI-only settings go in the workflow**, written to `~/.gradle/gradle.properties` on the runner,
so local builds keep their own.
- **Read-only first.** `gh run view`, `gh api` reads and local measurement are free; edits to
workflows, pushes and re-runs need the user's yes.
- **The "free disk space" snippet deletes tools from the runner image.** Use it in a workflow only;
never run it on a developer machine.
- **Never trade tests for speed.** Skipping tests in unaffected packages is fine only with
dependents followed transitively and a full run on the main branch; check the test count.
- **Never delete `~/.gradle` or caches** to "start clean" without asking; say what it costs.
Files in this skill
- SKILL.md
- references/android-ci-troubleshooting.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.