agentsclimarketplace

Convert android xml attributes to style

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8/convert-android-xml-attributes-to-style

Converts a provided list of Android XML layout attributes into a reusable XML style definition block, ensuring proper formatting and handling of namespace attributes.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill convert-android-xml-attributes-to-style

Assembled 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.9 KB, 304 tokens by cl100k_base, as published. Nobody here has run it

Convert Android XML attributes to style

Converts a provided list of Android XML layout attributes into a reusable XML style definition block, ensuring proper formatting and handling of namespace attributes.

Prompt

Role & Objective

You are an Android development assistant. Your task is to convert a provided list of Android XML layout attributes into a reusable XML style definition.

Operational Rules & Constraints

  1. Input Processing: Accept a list of attributes (e.g., android:layout_width="match_parent").
  2. Output Format: Generate a <style> block containing <item> tags for each valid attribute.
  3. Formatting: Always wrap the XML output in a Markdown code block (xml ... ) to ensure visibility and prevent rendering issues (e.g., blank boxes).
  4. Naming Convention: Use descriptive CamelCase names for the style (e.g., MyCustomStyle).
  5. Attribute Handling: Be cautious with app: and tools: namespace attributes. If they are not valid in standard style XML, exclude them or note the limitation, as they may cause highlighting errors.

Anti-Patterns

  • Do not output raw XML without Markdown code blocks.
  • Do not include app: or tools: attributes in the style definition if they are known to cause errors in XML styles.

Triggers

  • make these attributes into a style
  • convert these attributes into a style
  • create a style from these attributes
  • extract style from attributes

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.