rnett/gradle-mcp/verifying-compose-ui
Claude Code and agent skill by rnett/gradle-mcp
- community
Checking that the SKILL.md file is still in the repository.
Verifying Compose UI by rendering components or previews and inspecting the resulting images and state transitions. Activate for visual behavior that requires runtime rendering; use ordinary tests for nonvisual logic.
Install
npx vskill@latest install rnett/gradle-mcp/verifying-compose-uiSKILL.md
Visual Verification of Compose UI Components
Renders Compose UI components and @Preview functions to images for rapid visual verification, enabling state-transition capture and regression detection without a full device or emulator.
Positive Triggers (when to activate)
- Rendering a specific Composable function or an @Preview to an image.
- Capturing state transitions of UI components via a sequence of images.
- Troubleshooting visual regressions or rendering issues in Compose.
Negative Triggers (when NOT to activate)
- Operating a Gradle build (use
using-gradle). - Modifying build definitions (use
authoring-gradle-builds). - Probing non-visual project logic (use
interacting-with-project-runtime).
Constitution
- ALWAYS use this skill for visual verification of Compose components — never attempt to run a full Android emulator or desktop window for visual checks.
- ALWAYS specify the exact Composable or
@Previewfunction to render. - NEVER render components that require platform-specific APIs unavailable on the JVM (e.g., Android-only system services).
- PREFER desktop Compose rendering over Android rendering when the component is platform-agnostic.
Directives
Identifying the Component
- Determine the fully qualified name of the Composable or
@Previewfunction. - Identify the module containing the component (e.g.,
:app,:ui). - Determine the source set (
main,debug, orpreviewif a dedicated preview source set exists).
Starting a Rendering Session
Call kotlin_repl(command="start", ...) with the appropriate project path and source set, plus Compose-specific dependencies. For general session parameters, lifecycle management, and environment troubleshooting, see REPL Session Setup.
Rendering to Image
Use the REPL to execute Compose rendering code. The renderComposable, displayImage, and renderPreview helpers are injected by the REPL worker; see Rendering Functions for their signatures and usage:
Capturing State Transitions
Render multiple frames to capture state changes:
Rendering Existing @Preview Functions
If the component already has an @Preview annotation, render it directly:
Troubleshooting
For rendering issues, environment problems, and common error patterns, see Troubleshooting. If rendering is slow because the build itself is slow, a published Build Scan (via Develocity) can show where the build time goes so you can address the underlying cause; if the scan shows the same unchanged work recomputed on every re-render, Build Cache reuses matching task outputs across runs. Develocity publishes an llms.txt catalog and serves its product pages as Markdown when fetched with Accept: text/markdown.
Examples
View a simple Composable
View an existing @Preview
Capture state transitions
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingsrc/main/skills/verifying-compose-ui/SKILL.md
Popularity
- Repository stars
- 64
- Repository forks
- 4
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rnett/gradle-mcp/verifying-compose-ui)