Skip to content
Back to skills

Convert Android Xml Attributes To Style

ASecurity

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

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
ai-agents

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill convert-android-xml-attributes-to-style --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Convert Android Xml Attributes To Style?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Convert Android Xml Attributes To Style
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-convert-android-xml-attributes-to-style/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-convert-android-xml-attributes-to-style)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "7725167c-0de6-4b57-af3e-1ab36f49b0f6"
name: "Convert Android XML attributes to style"
description: "Converts a provided list of Android XML layout attributes into a reusable XML style definition block, ensuring proper formatting and handling of namespace attributes."
version: "0.1.0"
tags:
  - "android"
  - "xml"
  - "style"
  - "layout"
  - "development"
triggers:
  - "make these attributes into a style"
  - "convert these attributes into a style"
  - "create a style from these attributes"
  - "extract style from attributes"
---

# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.