Install
$ agentstack add skill-prasad-vennam-awesome-android-ai-agent-skills-android-design-to-code ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Android Design to Code (The Bridge) 📐🌉
Professional strategies for translating high-fidelity design specifications into clean, semantic, and pixel-perfect Jetpack Compose code.
⚡ When to Use
- UI Handover: Implementing a new screen from Figma/Sketch.
- Micro-Copy: Translating exact text styles and case formatting.
- Grid Alignment: Replicating specific spacing and layout grids.
- Component Building: Creating atoms/molecules from design symbols.
- Pixel Perfection: Verifying accuracy through developer tools.
🏗️ The 4 Principles of High-Fidelity Translation
- Semantic Match: Use MaterialTheme tokens (Primary, BodyLarge) instead of raw hex/pixel values.
- Structural Accuracy: Replicate Flexbox (Row, Column) and Constraint systems as intended.
- Interaction Fidelity: Add the correct hover, press, and click ripple effects.
- Responsive Layouts: Handle how the design should shrink or grow beyond the mock's dimensions.
🛠️ Translation Workflow
1. Spacing & Grids (The 8dp Rule)
- Rule: Most modern Android designs use an 8dp grid.
- Use
8.dp,16.dp,24.dp, etc. - In Compose:
Spacer(Modifier.height(16.dp))orPaddingValues(16.dp).
2. Colors & Typography
- Don't just copy the
0xFFAABBCC. Check if it's already in thecolorScheme.primaryorsurface. - Use the M3 Typography scale (HeadlineLarge, BodyMedium) to match the designer's intent.
3. Shadows & Elevation
- Designs often have custom "Soft Shadows".
- Rule: In Android, use
Modifier.shadow()with a highelevationfor M2, or useMaterialTheme.colorScheme.surfaceColorAtElevation()for modern M3 designs.
🚀 Speeding Up Implementation
- [ ] Figma Plugins: Use "Relay" or "Copy as Compose" plugins to generate base code.
- [ ] Lottie/Rive: Export complex animations as JSON or RIV files for pixel-perfect motion.
- [ ] Vector Assets: Export as SVG or VectorDrawable (AVD) for sharp rendering.
📐 Interaction Best Practices
- Ripple Effects: Ensure all
clickablemodifiers have the standard ripple or customIndication. - States: Implement all design states (Enabled, Disabled, Pressed, Hovered).
- Haptics: Add
LocalHapticFeedbackfor tactile confirmation on success/error.
🧪 Verification & Checklist
- [ ] The "Overlay" Test: Use a semi-transparent screen capture of the design overlaid on the running app.
- [ ] Layout Inspector: Verify all margins, paddings, and alignment match the specs.
- [ ] Dynamic Font Scales: Does the design survive a 200% font size increase?
- [ ] Localization: Does the layout break with long German or Russian strings?
📜 Key Terms for Designers
- dp: Density-independent pixels (The standard).
- sp: Scalable pixels (For text only).
- Material 3: The framework we use to build.
- Composable: The UI function we are creating.
🔗 Related Resources
- [Android Adaptive Layouts](../android-adaptive-layouts/SKILL.md)
- [Design System (M3) Skill](../android-design-system-m3/SKILL.md)
- [Accessibility Skill](../android-accessibility/SKILL.md)
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: prasad-vennam
- Source: prasad-vennam/Awesome-Android-AI-Agent-Skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.