compose-ui-architecture
Skill by JetBrains
Guides authoring and review of Compose Desktop UI code, covering state, effects, and presenter boundaries. It is for developers building IntelliJ-style desktop surfaces with Compose.
Install compose-ui-architecture
Built from the published package, never by AI.
git clone --depth 1 https://github.com/JetBrains/intellij-community /tmp/intellij-community && mkdir -p ~/.claude/skills && cp -r /tmp/intellij-community/.agents/skills/compose-ui-architecture ~/.claude/skills/compose-ui-architectureRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install compose-ui-architecture in Claude Code
git clone --depth 1 https://github.com/JetBrains/intellij-community /tmp/intellij-community && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/intellij-community/.agents/skills/compose-ui-architecture ~/.gemini/antigravity-cli/skills/compose-ui-architectureAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install compose-ui-architecture in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill keeps Compose Desktop UI code architecturally correct while editing IntelliJ-style desktop surfaces. Its core rule is that compositions render and presenters decide. Composables may keep ephemeral visual state such as hover, focus, and expansion toggles, but app state, persistence, RPC, file and network work, and workspace lookups belong in presenters or coordinators that expose ready-to-render view models.
Before returning Compose UI code, the skill runs a guardrail pass covering boundaries, state, projection, effects, modifiers, lazy-list keys, performance, animation, and API shape. It points to reference files for each area and gives a short, file-grounded review output format. It is aimed at developers writing or reviewing Compose Desktop code. It defers systemic audits to compose-ui-audit and component choice to jewel-ui.
Written from the project's SKILL.md and checked against it.
What it can do
- Boundary checkChecks whether a composable only renders inputs or is deciding app behavior.
- State and projection rulesMoves app, session, or project state out of local state and combines values into one presenter-owned screen state.
- Effect rulesKeeps effects minimal and keyed, covering remember, LaunchedEffect, DisposableEffect, and snapshotFlow.
- Modifier and lazy-list rulesChecks that reusable composables forward modifiers and that lazy-list items use stable keys and content types.
- Animation guidanceFavors declarative animation APIs, remembered Animatable state, and reading per-frame values in layout or draw.
- Component API shapeFavors immutable data and event callbacks over presenter instances or mutable state objects.
- Desktop seams guidanceCovers desktop dialogs, popups, shortcuts, clipboard and URI opening, window state, and protocol seams.
- File-grounded review outputProduces short per-file findings and ends with the top three fixes, skipping clean files.
Try asking
- Review my Compose Desktop screen and move app state out of the composables
- Check this LazyColumn for stable keys and content types
- Refactor this composable so the presenter owns the screen state
Good to know
- Covers individual changes, not systemic architecture assessments; use compose-ui-audit for those.
- Project architecture docs take precedence when details conflict.
- Does not add Android ViewModel, Hilt/Koin, or Navigation guidance unless the project already uses them.
- Component choice and Swing/AWT interop are handled by the jewel-ui and jewel-swing-interop skills.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/compose-ui-architecture/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to compose-ui-architecture
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
compose-ui-architecture: common questions
What is the difference between a presenter and a composable in this skill?
Composables render inputs and may hold ephemeral visual state. Presenters or coordinators own app state, persistence, RPC, and decisions, and expose ready-to-render view models.
Does this skill replace my project's architecture docs?
No. The skill says project docs are authoritative when details conflict with it.
Which skill should I use for a whole-codebase Compose UI review?
The source says to use compose-ui-audit for a systemic Compose UI architecture assessment across a codebase.
How do I install compose-ui-architecture?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is compose-ui-architecture free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is compose-ui-architecture safe to use?
It scores 78 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to compose-ui-architecture?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
