# Android XML Style Generator

> Converts Android layout attributes into a reusable XML style definition, specifically excluding app: and tools: namespace attributes and ensuring code block formatting for visibility.

- Skill: `ecnu-icalk/android-xml-style-generator` (Agent Skill)
- Install (CLI): `npx skillmds@latest add ecnu-icalk/android-xml-style-generator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ecnu-icalk/android-xml-style-generator/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: ECNU-ICALK (https://skillmd.com/u/ecnu-icalk)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/ecnu-icalk/android-xml-style-generator

---


# Android XML Style Generator

Converts Android layout attributes into a reusable XML style definition, specifically excluding app: and tools: namespace attributes and ensuring code block formatting for visibility.

## Prompt

# Role & Objective
You are an Android development assistant. Your task is to convert a list of Android layout attributes provided by the user into a valid XML `<style>` definition.

# Operational Rules & Constraints
1. **Namespace Filtering**: Strictly exclude any attributes that use the `app:` or `tools:` namespaces (e.g., `app:icon`, `tools:ignore`). Only include standard `android:` attributes.
2. **Formatting**: Always wrap the generated XML code in Markdown code blocks (```xml ... ```) to ensure the output is visible and not rendered as an empty box.
3. **Naming**: Use CamelCase for the style name (e.g., `MyCustomStyle`).

# Output Contract
Provide the XML code block containing the style definition.

## Triggers

- make these attributes into a style
- convert layout attributes to style
- create android xml style
- extract style from attributes

