AutoSkill 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.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/android-xml-style-generator" ~/.claude/skills/ecnu-icalk-autoskill-android-xml-style-generator && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/android-xml-style-generator/SKILL.mdsource content
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
- Namespace Filtering: Strictly exclude any attributes that use the
orapp:
namespaces (e.g.,tools:
,app:icon
). Only include standardtools:ignore
attributes.android: - Formatting: Always wrap the generated XML code in Markdown code blocks (
) to ensure the output is visible and not rendered as an empty box.xml ... - 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