Reviewing Android design-system changes from a coding agent

← Back to Blog & Articles

The unit of work is a stateless composable.

The durable artifacts are the theme, the component library, and the strings file. The main hazard is a screen that quietly acquires its own state or its own data access.

Trace a toggle. The user taps the checkbox, the row calls onToggleCompleted, the screen passes it up, and the view model asks the repository to record the change. The list state updates and the row recomposes. At no point does a composable write to storage.

Capture the baseline with ./gradlew assembleDebug lintDebug. Add a new component that takes data and a callback, add a preview with a hand-made value, and run lint. Record every warning it reports.

Read each composable’s parameter list first. A repository, a context, or a view model in a component signature is a finding. Then check each state a screen can be in, and ask what a user sees and hears in it.

When a screen looks wrong in one state, reproduce it with a hand-made state value in a preview. If you cannot, the state is not coming in as a parameter, and that is the real bug.

A composable that shows data from a deep link or a server must treat the text as data. Check that nothing renders untrusted text as a link target without validation, and that error messages do not include tokens or file paths.

Today the checks are lint and the JVM suite. Add Compose UI tests for the interactions that matter and a screenshot test for the components, in a separate job. Say in the release notes which of those exist.

Add a component to the library before using it in a second screen. Review strings and descriptions in every pull request. Test the app with TalkBack on at least once per release.

  • Components take data and callbacks, not services.
  • Every state has an on-screen representation in words.
  • Interactive elements have at least a 48dp target and a description.
  • Strings live in resources.
  • Layout follows window width, not device type.
  • Why does a when over a sealed type improve a screen?
  • What was wrong with the chip that had an empty click handler?
  • Why does Trailhead check width rather than device type?
  • Which strings in this edition are still literals?

Continue with the book

Explore the full treatment, worked examples, and exercises in Agentic Android App Development.


Companion article for Agentic Android App Development, published by Choral Software. Article text and original examples © 2026 Choral Software. All rights reserved.

Scroll to Top