Use the CLI as a controlled execution surface.
1. Skill management
Discover and install relevant Android skills through supported commands. Inspect the skill’s task scope before allowing it to guide workspace changes.
2. Action boundaries
Separate diagnostics from operations that install software, modify configuration or delete state. Follow the user’s authorized scope and make consequential changes reviewable.
3. Idempotent workflows
A repeated command sequence should not create duplicate state or hide prior failure. Check prerequisites and existing outputs before repeating mutations.
Worked scenario
An agent re-runs a setup workflow after interruption. Existing configuration is detected and preserved rather than appended twice.
Apply it
Design a diagnose-build-verify workflow with explicit preconditions and stop conditions.
Check your understanding
Each operation has a known side effect and a reason to run. Explain the decision and show evidence from your implementation or design. If you cannot demonstrate it yet, revisit the relevant section before continuing.