Agent skill

Android Resources & Localization

Standards for Strings, Drawables, and Localization

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/resources

Metadata

Additional technical details for this skill

labels
android resources localization xml
triggers
{
    "files": [
        "strings.xml",
        "**/*Screen.kt"
    ],
    "keywords": [
        "stringResource",
        "plurals",
        "R.string"
    ]
}

SKILL.md

Android Resources Standards

Priority: P2

Implementation Guidelines

Strings

  • No Hardcoding: UI text MUST be in strings.xml.
  • Formatting: Use format args (%s, %d) instead of concatenation.
  • Plurals: Use <plurals> for quantities.

Assets / Drawables

  • Vectors: Prefer VectorDrawables (.xml) over RASTER images.
  • Dark Mode: Use values-night or Theme attributes (MaterialTheme.colorScheme.primary) instead of hardcoded colors.

Anti-Patterns

  • Concatenation in UI: **No String Concat**: Use resource templates.
  • Hardcoded Strings: **No hardcoded text**: Extract to XML.

References

Didn't find tool you were looking for?

Be as detailed as possible for better results