SkillsReviewed · maxrave-dev

Compose screens footguns

Compose screens footguns is a troubleshooting skill for Kotlin and Compose developers and their coding assistants, but its examples need adapting to each app and framework version. It provides a symptom index and 32 references covering navigation, responsive layouts, gestures, media controls and settings state.

Researched 15 Nov 2026

In short.

Compose screens footguns is a troubleshooting skill for Kotlin and Compose developers and their coding assistants, but its app-specific examples are not ready-made fixes. Its 32 references connect visible interface failures to concrete causes involving state, measurement, gestures and persistence. Particularly useful material covers unfinished settings edits, pager feedback loops, window resizing, gesture cancellation and controls that silently misrepresent stored values. Several excerpts are adapted, incomplete or deliberately illustrate defects. Nothing was executed, so effectiveness, performance and compatibility with a particular application are not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

The scope includes skills/compose-screens-footguns/SKILL.md and all 32 Markdown files under its references directory at revision 2c391bc9c9f873580aa855d7a7b1c3a2ed9e68ae, plus the repository-root LICENSE as an ancestor notice outside the folder. Other repository content, referenced sibling skills and the originating production application are excluded. The material establishes the documentation's contents, not runtime correctness. No snippets, commands, builds, device interactions or exports were executed.

The overview

Identity

The resource is the skills/compose-screens-footguns folder in maxrave-dev/kotlin-footguns. It contains SKILL.md and 32 Markdown reference files. Its original repository location is [https://github.com/maxrave-dev/kotlin-footguns/tree/main/skills/compose-screens-footguns]. The source revision described here is 2c391bc9c9f873580aa855d7a7b1c3a2ed9e68ae.

The index describes the material as derived from a production Kotlin and Compose Multiplatform application. That production history is the author's account; the originating application's behavior is not independently established by these files.

Assessment

This is useful as a focused debugging and code-review companion when an interface resembles a listed symptom. The references explain why apparently reasonable implementations fail, rather than supplying only preferred code shapes.

The explanations sometimes distinguish symptoms from uncertain causes. The media-slider note explicitly leaves its suspected range-handling mechanism unproven, while the toolbar note explains why inconsistent interpolation terms alter a smooth curve rather than introduce a kink. The sheet note also distinguishes a recommended shared helper from the originating application's existing implementation. These distinctions support careful investigation, but do not establish that every proposed pattern works in another project.

Who it suits

The intended readers are developers building or repairing Compose interfaces, and coding assistants that can read the relevant project files. Beginners can use the symptom descriptions to locate a topic, but applying the examples requires familiarity with Kotlin, composables, observable state and callbacks.

Experienced developers will find detail about long-lived gesture handlers, asynchronous storage, window lifecycle and measurement timing. Media applications feature heavily: examples include audio curves, playback queues, video overlays and desktop mini players. Those examples require application-specific adaptation.

What it covers

Layout and navigation topics include adaptive window sizing, route organization, tab registration, collapsing headers, interchangeable screen styles, empty-state recovery, floating controls, system-bar spacing, lazy-list grouping and centered weighted content.

Interaction topics include list reordering, swipe actions, capped multi-selection, expandable text with links, modal sheets, sliders, custom scrubbers, curve editors and explicit text-field saving. Other references address translated settings labels, unsupported saved preferences, optional controls that leave empty containers, one-shot effects, playback pagers, fullscreen video, story reels and desktop windows. The folder supplies guidance and snippets; it does not provide an automatic detector or repair engine.

Using it

Requirements

Reading the files requires no application runtime. Applying their examples requires an existing Kotlin and Compose project with the APIs used by the chosen reference. Depending on the topic, these include Material3, coroutines, Navigation Compose, Kotlin serialization or JVM desktop window APIs.

Some verification recipes require shell utilities, cached Gradle artifacts and javap. For assistant use, the index tells the assistant to read the matching reference files with a file-reading tool before proposing code, and each reference's verification commands are written to be run against the user's own project, so assistant use needs file access to both the skill folder and the project, plus a shell where those checks are wanted. The folder supplies no complete build configuration, minimum Kotlin version, supported-assistant matrix or package-wide dependency compatibility table. Individual platform conditions, such as the Android API 31 blur example, are narrower than a general support guarantee.

How it works

SKILL.md maps symptoms to reference filenames. Each reference explains a working pattern, specific failure modes and suggested verification steps. Some cross-references stay within the folder; others require sibling skills.

Recurring techniques include restarting gesture handlers when captured parameters change, separating shared behavior from visual variants, keeping related visual layers inside one pager, and triggering one-shot effects from the action that caused them. The screen-variant notes distinguish shared state and callbacks from geometry calculations that belong to each visual style.

Getting started

Obtain the folder from the identified repository revision and preserve SKILL.md beside references/ so its relative links remain usable. Keep the repository licence with redistributed copies. No assistant-specific installer command or installation directory is documented.

Match the interface symptom to the index, then inspect the relevant reference alongside the application's actual implementation and resolved dependencies. Substitute local filenames for examples such as CollapsingToolbar.kt. For overload-sensitive advice, inspect the function signature used by the project. A search that matches no files is not evidence that the implementation is correct.

Example use

Consider an endpoint setting that saves an unfinished address when the keyboard closes. The text-field reference proposes a separate draft initialized with remember(storedEndpoint). Typing changes the draft; an explicit Save or IME action commits it. Losing focus does not save.

The reference then examines less obvious consequences. An external stored-value change resets the keyed draft, potentially discarding unfinished typing. A setter that trims text can leave the Save button visible after an equal-value write, so editing or comparison must account for normalization. Plain remember also loses drafts on configuration changes; rememberSaveable(source) is discussed when preserving them matters. These are proposed implementation and verification steps, not demonstrated outcomes.

Assessment & evidence

Limitations

The snippets are not a standalone application or uniformly corrected component library. Some deliberately expose hazards before explaining them. The lazy-scroll helper includes state writes inside derivedStateOf and a lookup that can fail on an empty visible list. The expandable-text example uses remembered flags that the accompanying discussion says must be keyed on the text.

Custom controls transfer responsibilities to the application. The pointer-based scrubber explicitly lacks the slider's accessibility and keyboard behavior until those are added. The curve-editor excerpt does not demonstrate a complete loading-state policy for edits made before stored data arrives.

Verification commands are search heuristics with source-specific paths, counts and assumptions. Cross-references to sibling skills fall outside this folder. Examples and commands were not executed, and no performance improvement or compatibility result is established.

Why the patterns matter

Many references address failures that ordinary happy-path interaction can miss. A player update can compete with a swipe, an empty header can remove the only navigation control, and an unsupported saved style can survive after its picker option is hidden. The notes explain which state or component owns each decision.

The layout references make similarly useful distinctions between drawing and measurement. Floating controls reserve no space for content; stacked sibling bars do not share inset consumption; responsive layout decisions depend on the current window rather than the device label. These explanations give developers concrete causes to investigate, although reduced debugging time or defect rates are not measured.

Alternative approaches

The folder compares two seek-control approaches. Customizing Material3 Slider slots retains framework accessibility and keyboard behavior; building a pointer layer over a progress indicator offers different visuals and gesture control but requires adding those behaviors explicitly.

Other alternatives are architectural. Navigation-builder extension functions organize one flat graph; actual nested graphs are needed for the per-area navigation semantics described in the note. Grouping related header blocks into one lazy item avoids changing every section's spacing through a global arrangement value. These are explained trade-offs, not measured comparisons with competing skills or libraries.

Source evidence

The primary material consists of the skill index, all 32 companion references and the repository-level licence at the same revision. The unchanged index is available at [https://raw.githubusercontent.com/maxrave-dev/kotlin-footguns/2c391bc9c9f873580aa855d7a7b1c3a2ed9e68ae/skills/compose-screens-footguns/SKILL.md], and the licence at [https://raw.githubusercontent.com/maxrave-dev/kotlin-footguns/2c391bc9c9f873580aa855d7a7b1c3a2ed9e68ae/LICENSE].

The references contain adapted code, suggested behavioral checks and observations attributed to the originating application. For example, the slider-range note reports a sample of sixty profiles, while the story-reel note describes checking gesture-detector source. These remain author-reported evidence; independent reproduction and benchmark results are not established.

Access & freshness

Costs

The selected files state no purchase price, subscription, required paid model or support price. Actual acquisition charges, assistant usage charges and implementation effort are unknown.

The resource consists of Markdown guidance rather than a documented hosted service. Its GPL licence permits charging for distributed copies, which does not establish a price for this particular resource.

Licence and reuse

The repository-level LICENSE contains GNU General Public License version 3, dated 29 June 2007. No separate licence or snippet exception appears in the supplied skill files. GPLv3 permits copying, modification and redistribution subject to its conditions. Verbatim source distribution requires preserving applicable notices and supplying the licence; distributed modifications also require change notices and applicable GPL licensing.

An unchanged copy should retain the skill, its references and the ancestor LICENSE. The licence disclaims warranty to the extent permitted by law. The generic application template at the end mentions later GPL versions, but does not itself establish an author-specific later-version grant for this resource. The files supply no separate permissive licence for embedded Kotlin examples.

Version context

The source snapshot was captured on 15 November 2026 at 18:24:53.667 UTC, at revision 2c391bc9c9f873580aa855d7a7b1c3a2ed9e68ae. That capture date does not establish when individual files were written or last changed. Subsequent changes are unknown.

The media-slider discussion names Compose Multiplatform Material3 1.12.0-alpha01, tracking androidx.compose.material3 1.5.0-alpha25. Those versions contextualize that discussion; they are not a dependency requirement for the entire skill. Compatibility with other resolved artifacts is not assessed.

Practical next steps

Begin with one matching symptom and inspect the relevant reference against the application's actual files and dependencies. Use its suggested interactions as acceptance criteria rather than treating matching code or empty search output as proof.

For navigation and lists, check every bar or rail, disable a tab while it is selected, cancel a reorder, and confirm selections remain attached to the same records. For media controls, hold a scrub beyond the hide timer and verify that the control remains usable. For sliders, include stored values outside the previously assumed range.

Where applicable, exercise every sheet dismissal path, close the main window while the mini player is open, and compare story-card exports across device themes. These checks are proposed next steps; their outcomes are unknown.

Evidence for this report

LICENSEnotice · checked 2026-11-15
skills/compose-screens-footguns/SKILL.mdselected · checked 2026-11-15