guillemroca/agent-skills-android/incremental-implementation
Claude Code and agent skill by guillemroca/agent-skills-android
- community
Checking that the SKILL.md file is still in the repository.
Use when building features incrementally. Each increment leaves the system in a working, testable state. Covers vertical slicing, feature flags, and rollback-friendly development for Android.
Install
npx vskill@latest install guillemroca/agent-skills-android/incremental-implementationSKILL.md
The same SKILL.md was published earlier as guillemroca/agent-skills-android/incremental-implementation.
Incremental Implementation
Overview
"Each increment should leave the system in a working, testable state." Build features in small, verifiable steps — each one compiles, passes tests, and can be committed. Never leave the codebase in a broken state between increments.
When to Use
- Implementing any feature from a task breakdown (follows
planning-and-task-breakdown) - Building any change that spans more than one file
- Any time you're tempted to "get it all working, then commit"
Skip when: A true single-file, single-function change.
Core Process
Step 1: Review the Task
- Read the task's acceptance criteria from
tasks/todo.md - Identify the vertical slice — what observable behavior does this increment deliver?
- Gather existing examples — find similar patterns already in the codebase
Step 2: Implement with TDD
- For each increment, follow this cycle:
- Never skip the build check —
./gradlew assembleDebugmust succeed after every increment
Step 3: Primary Slicing Strategies
- Vertical slice (preferred):
- End-to-end: Entity → DAO → Repository → UseCase → ViewModel → Screen
- Each slice delivers user-visible functionality
- Example: "User can view task list" before "User can add task"
- Contract-first:
- Define the interface first (Repository interface, API contract)
- Implement against the contract
- Useful for parallel development (one dev does UI, another does data layer)
- Risk-first:
- Build the most uncertain piece first
- If the risk materializes, you've spent minimal effort
- Example: "Can we integrate with the payment SDK?" before building the checkout UI
Step 4: Feature Flags
- Use feature flags for incomplete features:
- Feature flag rules:
- Flags have an owner and a removal date
- Dead flags are tech debt — remove after rollout
- Test both paths (flag on and flag off)
Step 5: Keep It Compilable
- The codebase must compile after every commit:
- No commented-out code as "TODO" placeholders
- No unimplemented interfaces throwing
NotImplementedError(unless behind a feature flag) - No broken imports or missing dependencies
- If you're stuck, revert to last green state:
```bash # Stash current work git stash
# Verify last commit is green ./gradlew test && ./gradlew assembleDebug
# Try a different approach git stash pop ```
Step 6: APK Analysis Checkpoints
- Periodically check APK size:
```bash # Build release APK ./gradlew assembleRelease
# Analyze with APK Analyzer (Android Studio) # Or from command line: bundletool build-apks --bundle=app.aab --output=app.apks ```
- Watch for size regressions — new dependencies, unoptimized resources, missing ProGuard rules.
Common Rationalizations
| Shortcut | Why It Fails | |
|---|---|---|
| "I'll commit when it all works" | Large commits are unreviable, unrevertable, and hide bugs. | |
| "The build is temporarily broken, I'll fix it" | Temporary broken builds block the team and compound errors. | |
| "Feature flags are overhead" | Shipping incomplete features to production is worse overhead. | |
| "I need to refactor first" | Refactoring is a separate increment. Don't mix it with feature work. | |
| "100 lines is too small for a commit" | 100-line commits are reviewable in minutes. 1000-line commits take hours. |
Red Flags
- 100+ lines of code without running tests
- Mixing unrelated changes in one increment
- Expanding scope mid-increment ("while I'm here...")
- Build broken between commits
- No feature flag for partially-complete user-facing features
- Premature abstractions before the second use case
- No verification step between increments
Verification
- [ ] Each increment has passing tests (
./gradlew test) - [ ] Each increment compiles (
./gradlew assembleDebug) - [ ] Each increment is committed separately
- [ ] Commits are small and focused (~100 lines)
- [ ] Incomplete features behind feature flags
- [ ] No mixed refactoring + feature changes in one increment
- [ ] Acceptance criteria from task checked off after each increment
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/incremental-implementation/SKILL.md
Popularity
- Repository stars
- 2
- 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/incremental-implementation)