timo-drick/compose_edge_to_edge_preview/integrate-edge-to-edge-preview-lib
Claude Code and agent skill by timo-drick/compose_edge_to_edge_preview
- community
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install timo-drick/compose_edge_to_edge_preview/integrate-edge-to-edge-preview-libSKILL.md
Skill: Integrate edge_to_edge_preview_lib
Use this skill when an AI agent must add edge-to-edge Compose preview simulation to an existing project by integrating:
- Module:
edge_to_edge_preview_lib - Maven artifact:
de.drick.compose:edge-to-edge-preview
This skill covers Android Compose projects and Kotlin Multiplatform (Compose Multiplatform) projects.
Goal
After applying this skill, the target project should be able to render edge-to-edge preview variants with simulated WindowInsets (status bar, navigation bar, camera cutout, optional caption bar), powered by EdgeToEdgeTemplate.
Prerequisites
- The target project uses Compose.
- For Compose Multiplatform previews, the target project has:
- Compose Multiplatform
1.10.1+(recommended: latest stable) - An Android target configured (required for current preview rendering path)
- The agent can edit Gradle files and at least one preview file.
Step 1: Detect project type
Classify the target module before editing:
- Android-only Compose module
- Usually uses
com.android.application/com.android.libraryand Kotlin Android plugin.
- Kotlin Multiplatform module
- Uses
org.jetbrains.kotlin.multiplatform, Compose plugin, and hassourceSets.
Then follow the matching branch below.
Step 2A: Add dependency (Android-only)
Add the library to the module that owns preview composables:
If the project uses a version catalog, prefer adding aliases there instead of hardcoding the coordinate.
Step 2B: Add dependency (Kotlin Multiplatform)
In kotlin { sourceSets { ... } }:
- Add the edge-to-edge dependency to
commonMain. - Ensure preview dependencies are present:
commonMain:ui-tooling-previewandroidMain:ui-tooling(for IDE preview tooling support)
- Ensure an Android target exists in the same KMP module (preview path depends on it).
Example:
Step 3: Wrap previews with EdgeToEdgeTemplate
In a preview composable, wrap screen content with EdgeToEdgeTemplate.
Minimal example:
Configured example:
Step 4: Select realistic preview variants
Create at least a small matrix of variants to catch inset issues early:
- Navigation modes:
ThreeButton,Gesture - Cutout modes:
None,Middle(orStart/Endwhen relevant) - Orientation path: portrait and landscape (
isLandscapeor orientation-based previews) - One hidden-bars variant (
InsetMode.Hidden) when testingsystemBarsIgnoringVisibilitybehavior
Use showInsetsBorder = true in diagnostics previews.
Step 5: Verify integration
Minimum verification checklist:
- Gradle sync succeeds.
- Preview compiles with imports:
EdgeToEdgeTemplateNavigationModeCameraCutoutModeInsetMode(when used)
- Preview renders at least one variant without runtime/preview errors.
- At least one configured preview demonstrates non-default insets behavior.
API quick reference
EdgeToEdgeTemplate(...)- Main wrapper composable for simulating edge-to-edge environment.
InsetsConfig- Full configuration object (alternative to direct named parameters).
NavigationModeThreeButton,GestureInsetModeVisible,Hidden,OffCameraCutoutModeNone,Middle,Start,End
Common pitfalls and fixes
- KMP preview does not render edge-to-edge simulation
- Check Compose Multiplatform version is
1.10.1+. - Verify Android target is configured in the KMP module.
- Unresolved preview/tooling classes
- Add
ui-tooling-previewtocommonMain. - Add
ui-toolingtoandroidMain.
- Insets appear wrong in test preview
- Confirm
statusBarMode/navigationBarModeare not accidentally set toOff. - Temporarily enable
showInsetsBorder = trueto debug.
Done criteria
Mark the integration complete only when all are true:
- Dependency is present in the correct source set/module.
- At least one preview uses
EdgeToEdgeTemplatesuccessfully. - At least one non-default configuration variant is present.
- Project/module compiles after changes.
Reference
- `reference/integration-checklist.md`
- Compact handoff checklist for fast agent-to-agent transfer.
Security
- Security scanPassed, 90 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 repositoryCheckingai_skills/integrate-edge-to-edge-preview-lib/SKILL.md
Popularity
- Repository stars
- 57
- Repository forks
- 1
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 May 2026, 5 months ago.
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/timo-drick/compose_edge_to_edge_preview/integrate-edge-to-edge-preview-lib)