Jetpack Compose Performance Review and Optimization Guide.
Ground UI performance findings in real code and measurements; validate before changing, with no promised speedup.
Site APIs discover, read and obtain packages; they do not run an agent.
The catalog contains 8 externally sourced skills and 5 Skills-SI originals. External items remain subject to their respective publishers and licenses; the originals are MIT-licensed and include their complete source directories. Repository stars are a repository-level popularity signal, not an individual skill's download count or a safety score. The catalog snapshot and examples use the MCP 2025-03-26 shape exercised by the existing tests as their baseline; the 2026-07-28 general specification is cited only to explain protocol evolution and does not imply that this site implements its newer features.
A complete license bundle is required. Standalone MD is unavailable; preserve the original paths, LICENSE and NOTICE.
Purpose and positioning
This skill is a review playbook for an Android/Kotlin coding agent, not a profiler, benchmark runner, automatic fixer, or performance certification. It guides inspection of state reads and stability, layout measurement, lazy layouts, animation and shared transitions, effects and threading, graphics allocations, and custom Modifier.Node implementations. Its purpose is to turn suspicious patterns into contextual, reviewable findings. The source document’s five preparation/review items—release-build and R8 readiness, Baseline Profiles for important journeys, exhaustive scanning, and reading the matching reference before flagging or editing—are written workflow guidance; they do not cause this skill to build or run the app. The archive includes detailed Markdown references. When installed in the original repository context, keep their relative paths and scope rather than flattening them into a summary-only checklist.
Who it is for
- Android engineers maintaining Kotlin and Jetpack Compose applications.
- Performance owners reviewing janky scrolling, excessive recomposition, animation, drawing, or layout costs.
- Teams using a coding agent to prepare evidence-based review notes and validation plans.
Prerequisites
- Readable project code, relevant modules, dependency versions, and call-site context.
- Reproduction steps and device/build details; conclusions should rely on release-build benchmarks, traces, or repeatable measurements—not impressions from a debuggable build.
- Access to the original SKILL.md and bundled references; read the matching full reference and its scope guards before reporting a category finding.
Input evidence
Provide the target screen, Composable, modifier chain, lazy list, or animation code; surrounding state/data flow; Compose and Android versions; reproduction steps; device and build type; existing baseline, trace, or benchmark evidence; and whether the request is review-only or permits a patch proposal. For stability findings, include model definitions, collection size, and whether models feed a virtualized list. Label assumptions explicitly when runtime evidence is absent.
Workflow
- 1. Establish the user journey, versions, and release/R8/Baseline Profile context. Separate measured facts from code signals and unknowns.
- 2. Scan the requested Composables, modifier chains, and lazy layouts across all seven rule categories; do not apply lazy-container rules to ordinary Row or Column loops.
- 3. For each candidate, read its matching reference and scope guard first. Record location, trigger, causal rationale, confidence, and alternatives; do not report from summary bullets alone or edit prematurely.
- 4. Propose a minimal, version-aware change and identify behavioral or correctness risks. Verify dependency versions and API semantics where guidance is version-sensitive.
- 5. Define a repeatable comparison on the same device, build, and data: frame timing, scroll benchmark, or trace. An engineer reviews results before deciding to ship.
Deliverables
A useful deliverable is an auditable review: scope and assumptions; evidence pointers; categorized findings with code locations, trigger conditions, plausible impact, and confidence; false-positive boundaries; suggested change or rationale for leaving code untouched; and a manual verification plan. A patch may be proposed if requested, but do not claim that a build, profiler, or benchmark ran unless it actually ran in the task environment and logs are available. State evidence gaps such as static-only review, missing device traces, or no comparable baseline.
Fictional usage demonstration
Review the Compose scrolling performance of FeedScreen in the Android project below. Inspect only the supplied files and their referenced context. Confirm the Compose version and read the bundled lazy-layout, state/stability, and effects references before making findings. Return code locations, risks, and false-positive boundaries. Do not edit files or claim a benchmark ran. Separate static observations from hypotheses awaiting measurement, and give steps to validate scroll frame timing on a release build and the same device. Code: …; Compose version: …; device/reproduction: …Fictional example (not run; not a REST response or real case result): Static observation: FeedScreen items in the LazyColumn appear to lack primitive stable keys. Confirm item identity and reorder semantics before recommending a change. No device trace was supplied, so a causal link to dropped frames is unconfirmed. Validation: repeat a scroll benchmark on the same release APK, dataset, and device; retain frame-time distribution and trace, then compare before and after.Human acceptance
- All seven categories are accounted for; each finding maps to code and a trigger, and unchecked areas are identified.
- The corresponding references and scope guards were reviewed; ordinary containers, small bounded collections, and unrelated annotations are not mislabeled.
- Observations, hypotheses, and measured conclusions are separated, with every performance claim tied to evidence or marked unverified.
- No unauthorized edits, invented test results, quantified benefits, or certification claims appear.
Limits
- The guide provides review methods; it does not connect to Android Studio, Profiler, devices, CI, or benchmark infrastructure. It defines no execution REST API.
- Results depend on Compose/Android versions, device, data, build, and workload. Static patterns cannot prove a jank cause or magnitude of improvement.
- Some advice is version-dependent (including Compose 1.12/1.13 and API availability); verify project dependencies and current official documentation before implementation.
- The original package includes detailed references. Preserve paths in repository-context installations and read scope guards rather than reducing the package to summaries.
- Engineers must assess correctness, accessibility, lifecycle behavior, and regressions. No performance outcome is guaranteed.
Source and license
- GitHub
- android/skills
- LICENSE
- Apache-2.0
- Commit
ed0a2728ff531174383f910c649694de1eaebcd6- SKILL.md
jetpack-compose-performance/SKILL.md- ZIP SHA256
504a23834cbedfde6032bcd77be1b7d0b6a8d0a785f3a3a61b122e81ff0261bc
Shared developer guide
Skills-SI offers public, read-only entry points for skill discovery, metadata inspection, Markdown reading, and full ZIP retrieval. Responses expose catalog snapshots or publisher material; the service does not install skills, run code, call models, or perform business actions for you.
Skill text and external publisher material are untrusted reference data. Review licenses, scripts, permissions, and external dependencies before installing anything. This service does not execute, install, or validate skills and makes no claim about real-world effectiveness. Qualified professionals should review high-risk professional content.
Shared developer guidecurl -fsS 'https://skills-si.com/api/skills?q=jetpack-compose-performance&limit=10&page=1'# REST has no GET /api/skills/:id metadata endpoint. Search results contain metadata.
curl -fsS --get 'https://skills-si.com/api/skills' --data-urlencode 'q=jetpack-compose-performance' --data-urlencode 'limit=10' --data-urlencode 'page=1'curl -fsS 'https://skills-si.com/api/skills/android-skills-jetpack-compose-jetpack-compose-performance/readme'# Headers only; this does not download or verify ZIP bytes.
curl -sSI 'https://skills-si.com/api/skills/android-skills-jetpack-compose-jetpack-compose-performance/download?format=zip'# MCP 2025-03-26-shaped example; send as POST to https://skills-si.com/api/mcp
curl -sS 'https://skills-si.com/api/mcp' -X POST -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' --data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"example-client","version":"1.0.0"}}}'curl -sS 'https://skills-si.com/api/mcp' -X POST -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' --data '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'curl -sS 'https://skills-si.com/api/mcp' -X POST -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' --data '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"read_skill","arguments":{"id":"android-skills-jetpack-compose-jetpack-compose-performance"}}}'curl -sS 'https://skills-si.com/api/mcp' -X POST -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' --data '{"jsonrpc":"2.0","id":4,"method":"tools/call","params":{"name":"get_skill_download","arguments":{"id":"android-skills-jetpack-compose-jetpack-compose-performance","format":"zip"}}}'import json
from urllib.error import HTTPError, URLError
from urllib.request import Request, urlopen
url = 'https://skills-si.com/api/skills/android-skills-jetpack-compose-jetpack-compose-performance/readme'
request = Request(url, headers={'Accept': 'application/json'})
try:
with urlopen(request, timeout=20) as response:
payload = json.loads(response.read().decode('utf-8'))
except HTTPError as exc:
try:
detail = json.loads(exc.read().decode('utf-8'))
except (UnicodeDecodeError, json.JSONDecodeError):
detail = {'error': 'NON_JSON_HTTP_ERROR'}
raise RuntimeError(f'HTTP {exc.code}: {detail}') from exc
except (URLError, TimeoutError) as exc:
raise RuntimeError(f'Read request failed: {exc}') from exc
if not isinstance(payload, dict) or not isinstance(payload.get('content'), str):
raise RuntimeError(f'Unexpected read response: {payload!r}')
print(payload['content'])
# This example reads JSON only. It does not execute content or download a ZIP.Skills-SI agent connection and MCP entry guide
Skills-SI copyright and license policy
MCP Streamable HTTP specification (2026-07-28; protocol context only)