In short.
ink-app-builder is an AI assistant skill for Android developers building Compose drawing tools, but its examples contain API inconsistencies and incomplete save and restore handling. It provides detailed guidance for transferring live strokes into finished drawing state, configuring brushes, editing stroke geometry and storing editable documents. Brush restoration, undo behavior and export fidelity need particular attention. Compilation, runtime correctness and latency have not been assessed.
Researched and written by an AI model and checked by a second AI model. How it works
Covers jetpack-compose/ink/ink-app-builder/SKILL.md; references/drawing-and-brushes.md, editing-and-architecture.md and persistence-and-advanced.md; and the five guides under references/android/develop/ui/compose/touch-input/stylus-input/: ink-api-brush-apis.md, ink-api-draw-stroke.md, ink-api-geometry-apis.md, ink-api-setup.md and ink-api-state-preservation.md. Includes repository-root LICENSE.txt as the related notice. All are from revision c72942584fff970dac86ced78b367fce0c441e52. Other skills, dependency implementations and external pages beyond the supplied excerpts are outside this scope. Nothing was executed; compilation, device behavior, performance and production suitability remain unverified.
The overview
What it is
ink-app-builder contains instructions and Kotlin examples for a coding assistant implementing freehand drawing with Jetpack Ink and Jetpack Compose. Its metadata names Google LLC as the author. It lives in the android/skills repository at jetpack-compose/ink/ink-app-builder and includes SKILL.md plus eight reference documents. The runtime drawing functionality comes from androidx.ink dependencies added to the Android app.
Practical assessment
The material is useful as a focused implementation starting point. It covers integration details that can affect drawing quality and correctness: transferring completed strokes synchronously, isolating canvas transformations, refreshing cached textures, preserving highlighter transparency and coordinating gesture handlers.
The examples require technical review before adoption. Visible inconsistencies include List<Strokes> in the drawing guide while the other examples use Stroke, and an android.graphics.Matrix passed to an input-transform parameter that the detailed parameter table identifies as androidx.compose.ui.graphics.Matrix. These are document-level findings; no build was performed.
Who it suits
It suits developers adding handwriting, sketching, annotation or highlighting to an existing Kotlin and Compose Android app. Beginners get a concrete separation between the drawing surface, ViewModel state and database repository, but still need help connecting those pieces to their project. Experienced developers can use the references to inspect rendering, storage and gesture decisions. XML and View-based drawing screens and programmatic custom brush construction are explicitly outside its scope.
What it covers
The drawing guidance covers pressure pens, markers, highlighters, dashed lines and emoji highlighters. It shows brush color and size changes, translucent highlighter compositing with BlendMode.Multiply, texture registration and cache refresh. The eraser example removes entire strokes whose geometry intersects the swept eraser area. Partial stroke erasing is described conceptually, without a complete implementation.
The architecture examples provide linear undo and redo, a history cap of 50 snapshots, document loading, Room persistence and bitmap or PNG export. Additional references discuss coordinate transforms for zoom and pan and sharing pointer events with a long-press drag handler.
Using it
Project requirements
The skill specifies minSdk 26, corresponding to Android 8.0, and shows Java 17 compatibility settings with Compose enabled. It requires all androidx.ink modules to use the same version and calls out ink-nativeloader, ink-authoring-android and the separate input-motionprediction dependency. Its persistence examples also require kotlinx.serialization, Room and the Kotlin Symbol Processing plugin, KSP.
Advanced brush behavior has additional constraints. The references require Android 14, API 34, for mini-emoji trails and mesh features such as accumulating self-overlap. Emoji textures must be supplied by the app. Supported assistant hosts, model requirements and the complete compatible combination of build-tool versions are not specified.
How it works
Jetpack Ink separates the stroke being drawn, called wet ink, from completed strokes, called dry ink. InProgressStrokes handles live input and delivers finished Stroke objects through onStrokesFinished. A separate Compose Canvas renders completed strokes through CanvasStrokeRenderer on the native Android canvas.
The drawing template adds finished strokes immediately to a local Compose state buffer while the ViewModel update arrives asynchronously. This is intended to avoid a visible gap during the handoff. Persistence stores encoded StrokeInputBatch input points alongside brush metadata so strokes can be reconstructed for further editing. Brush epsilon controls geometric detail: smaller values allow closer zoom at a memory cost, and the documented constraint is 0 < epsilon <= size.
Setup and integration
Keep SKILL.md with its reference directory because the instructions link to task-specific files by relative path. Installation instructions for loading ink-app-builder into a particular assistant are not supplied. For the app itself, the material shows a Gradle version catalog, module dependencies, Compose configuration and serialization and KSP plugins.
The build snippets are templates. They contain latest-version placeholders and refer to Kotlin, Room, serialization and KSP version entries that are not defined in the shown catalog block. The developer must choose compatible versions, reconcile the shorter setup guide with the fuller dependency list, and connect the drawing screen, ViewModel, repository and Room database. Hilt is mentioned, but complete dependency-injection wiring is not shown.
A suitable use case
A note-taking app could start with the supplied black pressure pen using size 5f and epsilon 0.1f, then add marker and translucent highlighter switching. Finished strokes would enter the ViewModel history and be serialized into a Room document. The supplied eraser would remove whole intersecting strokes, while PNG export would create a flattened image for sharing. This describes how the examples could fit together; no resulting app was built or run.
Assessment & evidence
Limitations and implementation risks
Software bitmap export has documented fidelity limits. Mesh-only effects, including accumulating self-overlap, mini-emoji trails and some per-vertex brush behaviors, are skipped unless a compatible fallback paint is provided. A drawing displayed on screen therefore needs comparison with its exported image when those effects are used.
The detailed persistence example maps only the default marker, pressure pen, highlighter and dashed-line families. Its Room repository supplies no custom-brush registry. Following that path would restore unmapped families, including emoji highlighters, as markers. Corrupt stroke data returns null and is omitted during loading; malformed document JSON becomes an empty list. Applications need explicit restoration errors and complete brush mappings before relying on this storage approach.
Each eraser movement that removes strokes adds a history snapshot, so one undo does not necessarily reverse a complete eraser drag. History shares immutable Stroke objects, but the snapshot lists still retain stroke references and consume memory. The ViewModel also launches saves independently and loads the initial document asynchronously; save ordering and edits made before loading finishes need review.
The supplied snippets contain the API inconsistencies described above. Low-latency claims are not accompanied by measured device results, and the intended flicker-free handoff has not been verified through execution.
Why the approach may fit
The approach is a reasonable fit when an app needs editable drawing documents: retaining input points and brush metadata supports geometry-based erasing, undo and later rendering at different scales. Separating live input, completed drawing state and database work also gives each part a clear responsibility. This benefit depends on completing the integration correctly, especially coordinate transforms, brush reconstruction and ordered persistence.
Related approaches
For programmatically constructed brush families, custom tips, textures and behavior graphs, the resource points to ink-custom-brush-builder at [https://github.com/android/skills/tree/main/jetpack-compose/ink/ink-custom-brush-builder]. That companion skill's implementation and quality are not established by the supplied files.
Developers implementing Ink manually can use the bundled Android guide excerpts covering setup, brushes, drawing, geometry and state preservation. They address the same underlying library without the full assistant task routing. No comparative performance evidence or complete View-based alternative is supplied.
Source evidence
The original source snapshot is the skill folder at revision c72942584fff970dac86ced78b367fce0c441e52: [https://github.com/android/skills/tree/c72942584fff970dac86ced78b367fce0c441e52/jetpack-compose/ink/ink-app-builder]. It contains instructions and embedded implementation examples. The supplied scope includes no complete app project, build results, device observations or benchmark methodology. Claims about successful compilation, durable storage, rendering fidelity and latency therefore remain unverified.
Access & freshness
Costs
The supplied Apache license grants copyright permissions without a license charge, subject to its conditions. The documents provide no assistant subscription, model API, support or development cost figures. Any cost of using a coding assistant with this skill, and the total cost of integrating it, remain unknown.
License and reuse
SKILL.md directs readers to LICENSE.txt, whose supplied text is Apache License 2.0. It permits reproduction, modification and redistribution under its conditions. Redistribution requires a copy of the license, retention of applicable notices, prominent notices on changed files and preservation of relevant NOTICE attributions if such a file accompanies the work.
The license does not grant general trademark rights and provides the work without warranty. Licenses for separately obtained dependencies and rights to user-supplied emoji or texture assets are not established by these files. The captured license is available at [https://raw.githubusercontent.com/android/skills/c72942584fff970dac86ced78b367fce0c441e52/LICENSE.txt].
Dates and API versions
SKILL.md declares an update date of 2026-11-10; the supplied snapshot was captured on 2026-11-15 at 23:04:46.274 UTC. It describes Ink 1.0.0 as stable and distinguishes 1.1.0 alpha APIs for custom brushes and serialization. Experimental annotation requirements vary across those versions, while bundled examples show different usage. These statements describe the captured material; the latest releases and subsequent repository changes are unknown.
Before adopting it
Start from the pinned original folder with its references and license. Choose the target Ink version and Android API range, complete the Gradle configuration and resolve the conflicting snippet types. Define persistence mappings for every supported brush, report restoration failures explicitly, and review initial loading and save ordering. Decide whether undo should reverse individual eraser updates or a whole drag.
Then build the integrated app and check drawing handoff, brush switching, erasing, undo and redo, document reopening and export on the Android versions it supports. Include emoji or custom brushes and malformed saved data where relevant. Compare advanced brush effects on screen and in PNG output. These are recommended checks; none was performed.
