Android xml style generator
Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/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.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill android-xml-style-generatorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.6 KB, 227 tokens by cl100k_base, as published. Nobody here has run it
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
app:ortools:namespaces (e.g.,app:icon,tools:ignore). Only include standardandroid:attributes. - 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. - 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
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.