skills/mobile-ui-slicing-playbook/SKILL.md
Mobile UI slicing workflow for Android Compose, Android XML, and Flutter widgets. Use when implementing new screens/components, splitting large UI tasks into safe incremental slices, fixing layout/state coupling, or converting design specs into maintainable UI without logic leakage.
npx skillsauth add envy-7z/mobile-agent-skillpack mobile-ui-slicing-playbookInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Build UI in thin, verifiable slices so each commit changes one concern: structure, styling, state wiring, interactions, and edge states.
@Composable, Modifier, ui/ packages.res/layout/*.xml, adapters, custom views.Widget trees, build(), feature presentation files.loading, content, error, empty).build() trees into private widgets.Bloc, Provider, Riverpod, or existing pattern).Use this structure in responses:
# UI Slicing Plan
## Target
- Platform:
- Screen/component:
- Files:
## Slices
1. Skeleton
2. Visual styling
3. State rendering
4. Interactions
5. Verification/polish
## Risks
- ...
## Next Patch
- Exact files to modify
- Minimal diff scope
scripts/ui_slice_snapshot.sh <repo_root> to map UI files and hotspots.references/ui-slicing-checklist.md for review criteria.development
Use when you have a spec or requirements for a multi-step task, before touching code
data-ai
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
tools
Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktrees with smart directory selection and safety verification
testing
Applies Kent Beck's Thinkies—pattern-based thinking habits that generate ideas. Use when stuck, exploring alternatives, or reframing decisions.