flutter-ci-debugging
Skill3 starsChanged 9 days agoMITView on GitHub
Diagnose Flutter CI builds that fail, stall or get killed on GitHub Actions, without burning CI runs on guesses. Read the evidence with gh, classify the failure signature, size Gradle for the runner, and check whether Jetifier can be turned off. 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", or "why is Android CI slow". Not for setting up a pipeline from scratch.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- verify-skillsmithSkill
- gcp-cloud-run-opsSkill
- project-factorySkill
- skill-auditSkill
- skill-pack-installerSkill
- skill-syncSkill
- skill-update-checkSkill
- skill-vetterSkill
- flutter-error-handlingSkill
- flutter-performanceSkill
- flutter-securitySkill
- flutter-testingSkill
- better-motionSkill
- better-uiSkill
- emil-design-engSkill
- ui-ux-pro-maxSkill
- feature-forgeSkill
- platform-pipelineSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
If the log is gone (BlobNotFound), use the job page with timestamps.
- Very specific: line 28
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 …
- Very specific: line 35
Measure locally, for free: Follow "Measure locally before pushing" in the reference.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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. 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
- Read the evidence, read-only. Get the failing job and step, its annotations, and where the
output stopped, using the
ghcommands in references/android-ci-troubleshooting.md. If the log is gone (BlobNotFound), use the job page with timestamps. Do not re-run the job yet. - Know the machine. Check the repo's visibility (
gh repo view --json visibility): a private repo'subuntu-latesthas 2 CPUs, 8 GB RAM and 14 GB disk; a public repo's has 4 and 16 GB. - Classify the signature with the table in the reference: disk full, runner killed (exit 143),
silent stall to timeout,
Java heap spaceinJetifyTransform, or a cache that never saves. Say which one it is and which line of the log shows it. - 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. - Measure locally, for free. Follow "Measure locally before pushing" in the reference. It
changes
~/.gradle/gradle.propertiesand kills Gradle daemons on the user's machine: say so, back the file up first, ask, and restore it afterwards. - 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.
- 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.
Rules
- Never raise
timeout-minutesto 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
-Xmxnear 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:checkJetifierreports no legacy support libraries for that app. - CI-only settings go in the workflow, written to
~/.gradle/gradle.propertieson the runner, so local builds keep their own. - Read-only first.
gh run view,gh apireads 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 delete
~/.gradleor caches to "start clean" without asking; say what it costs.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

