guillemroca/agent-skills-android/ci-cd-and-automation
Claude Code and agent skill by guillemroca/agent-skills-android
- community
Checking that the SKILL.md file is still in the repository.
Use when setting up or improving CI/CD pipelines for Android. Covers sequential quality gates, Gradle caching, emulator testing in CI, feature flags, and automated deployment to Play Store.
Install
npx vskill@latest install guillemroca/agent-skills-android/ci-cd-and-automationSKILL.md
The same SKILL.md was published earlier as guillemroca/agent-skills-android/ci-cd-and-automation.
CI/CD and Automation
Overview
Shift left: catch problems early through automated checks. A well-structured CI pipeline runs sequential quality gates — from fast checks (lint, compile) to slow checks (instrumented tests, security audit) — so feedback arrives quickly and issues are caught before merging.
When to Use
- Setting up CI for a new Android project
- Adding quality gates to an existing pipeline
- CI pipeline exceeds 10 minutes (needs optimization)
- Automating deployment to Play Store or Firebase App Distribution
- Feature flag management for staged rollouts
Skip when: The project has no CI (start with ci-cd-and-automation first).
Core Process
Step 1: Sequential Quality Gates
- Gate order (fastest to slowest):
- No gate skipping — fix the code, don't disable the rule:
Step 2: Gradle Caching
- Cache Gradle dependencies and build outputs:
- Gradle build optimization:
Step 3: Emulator Testing in CI
- Use `android-emulator-runner` for instrumented tests:
If the repo has committed Maestro flows (.maestro/), run them in the same emulator job after installing the debug build — ./gradlew installDebug && maestro test .maestro/ — so every shipped acceptance criterion is regression-checked per PR (see android-e2e-verification).
When the android CLI is present in the runner image, android sdk install is a leaner alternative to setup-android for declarative platform/build-tools provisioning:
Stick with reactivecircus/android-emulator-runner for the emulator itself — android emulator is disabled on Windows and the runner action handles snapshot caching, hardware acceleration, and animation disabling that you'd otherwise rebuild by hand. See ../../references/android-cli-reference.md.
- Test sharding for large test suites:
Step 4: Feature Flags
- Decouple deployment from release:
Step 5: Deployment Automation
- Firebase App Distribution (internal testing):
- Play Store (production):
Step 6: Feedback Loops
- When CI fails, use the agent feedback loop:
- Read the failure output
- Identify the gate that failed
- Fix the specific issue (don't disable the gate)
- Re-run the pipeline
- If the fix introduces new failures, revert and investigate
Step 7: Pipeline Optimization
- If pipeline exceeds 10 minutes:
- Cache dependencies (Gradle, SDK components)
- Parallelize independent gates (lint + unit tests simultaneously)
- Selective testing (only run affected modules)
- Test sharding (split instrumented tests across emulators)
- Build cache (enable Gradle build cache)
Environment Separation
| Environment | Secrets Source | Build Type | |
|---|---|---|---|
| Local | local.properties (gitignored) | Debug | |
| CI | GitHub Secrets / Vault | Debug + Release | |
| Staging | Firebase Remote Config | Release (staging flavor) | |
| Production | Play Store + Firebase | Release |
Common Rationalizations
| Shortcut | Why It Fails | |
|---|---|---|
| "CI is too slow, I'll push without waiting" | Pushing broken code blocks the team. Optimize the pipeline instead. | |
| "Lint warnings aren't real errors" | Lint catches real bugs (unused resources, API compatibility, security issues). | |
| "Instrumented tests are too flaky for CI" | Flaky tests have root causes. Fix them or isolate them — don't skip them. | |
| "We'll add CI later" | Later means tech debt. Start with lint + compile + unit tests on day one. |
Red Flags
- No CI pipeline
- CI gates disabled or skipped (
@Suppress,-x lint) - No Gradle caching in CI
- Instrumented tests not running in CI
- Secrets in repository (use GitHub Secrets)
- No deployment automation
- Pipeline exceeds 15 minutes without optimization
- Feature flags without cleanup plan
Verification
- [ ] CI runs on every PR and push to main
- [ ] Gates run in order: format → lint → compile → unit tests → instrumented tests → security
- [ ] No gates skipped or disabled
- [ ] Gradle caching configured
- [ ] Instrumented tests run on emulator in CI
- [ ] Secrets stored in CI environment (not in repo)
- [ ] Deployment automated (Firebase App Distribution and/or Play Store)
- [ ] Pipeline completes in < 15 minutes
- [ ] Failed gates produce actionable error messages
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ci-cd-and-automation/SKILL.md
Popularity
- Repository stars
- 6
- Repository forks
- 3
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/guillemroca/agent-skills-android/ci-cd-and-automation)