Compose Multiplatform Patterns
monta-app/ocpp-emulator
Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.
统一 Android XML 资源命名:layout、drawable、mipmap、color、values、id 的前缀与 snakecase 规则;把颜色/圆角/描边/状态编码进文件名(bg、border、textcolor…selector)。
$ npx skills add afkT/DevUtils --skill android-xml-resource -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install afkT/DevUtils android-xml-resource --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/afkT/DevUtils.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/android-xml-resource .claude/skills/android-xml-resource && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "android-xml-resource" agent skill from https://github.com/afkT/DevUtils/tree/master/.cursor/skills/android-xml-resource into .claude/skills/android-xml-resource/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-xml-resource", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/afkT/DevUtils/tree/master/.cursor/skills/android-xml-resourceType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add afkT/DevUtils --skill android-xml-resource -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install afkT/DevUtils android-xml-resource --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/afkT/DevUtils.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.cursor/skills/android-xml-resource .agents/skills/android-xml-resource && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "android-xml-resource" agent skill from https://github.com/afkT/DevUtils/tree/master/.cursor/skills/android-xml-resource into .agents/skills/android-xml-resource/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-xml-resource", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add afkT/DevUtils --skill android-xml-resource -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install afkT/DevUtils android-xml-resource --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/afkT/DevUtils.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.cursor/skills/android-xml-resource .cursor/skills/android-xml-resource && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "android-xml-resource" agent skill from https://github.com/afkT/DevUtils/tree/master/.cursor/skills/android-xml-resource into .cursor/skills/android-xml-resource/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-xml-resource", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/afkT/DevUtils.git --path .cursor/skills/android-xml-resource--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add afkT/DevUtils --skill android-xml-resource -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install afkT/DevUtils android-xml-resource --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/afkT/DevUtils.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.cursor/skills/android-xml-resource .gemini/skills/android-xml-resource && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "android-xml-resource" agent skill from https://github.com/afkT/DevUtils/tree/master/.cursor/skills/android-xml-resource into .gemini/skills/android-xml-resource/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-xml-resource", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install afkT/DevUtils android-xml-resourceInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add afkT/DevUtils --skill android-xml-resource -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/afkT/DevUtils.git skills-src && mkdir -p .github/skills && cp -r skills-src/.cursor/skills/android-xml-resource .github/skills/android-xml-resource && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "android-xml-resource" agent skill from https://github.com/afkT/DevUtils/tree/master/.cursor/skills/android-xml-resource into .github/skills/android-xml-resource/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-xml-resource", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add afkT/DevUtils --skill android-xml-resource -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install afkT/DevUtils android-xml-resource --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/afkT/DevUtils.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.cursor/skills/android-xml-resource .opencode/skills/android-xml-resource && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "android-xml-resource" agent skill from https://github.com/afkT/DevUtils/tree/master/.cursor/skills/android-xml-resource into .opencode/skills/android-xml-resource/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "android-xml-resource", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
android-xml-resource统一 Android XML 资源命名:layout、drawable、mipmap、color、values、id 的前缀与 snakecase 规则;把颜色/圆角/描边/状态编码进文件名(bg、border、textcolor…selector)。
Android XML Resource is an agent skill from afkT/DevUtils. 统一 Android XML 资源命名:layout、drawable、mipmap、color、values、id 的前缀与 snakecase 规则;把颜色/圆角/描边/状态编码进文件名(bg、border、textcolor…selector)。 生成 selector 与 ColorStateList 时多状态写入单个文件、内联 shape、默认项放最后、按真实颜色 hex 命名(如 textcolor333333ffffffselector)。在用户要求命名或重命名资源文件、生成 selector / state color / shape / ripple / layer-list drawable、整理布局 id、 规范 colors/dimens/styles 命名时使用。
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/reference.md`).
It sits in Mobile. It works with Android. The repository describes itself as: :fire: ( 持续更新,目前含 300+ 工具类 ) DevUtils 是一个 Android 工具库,主要根据不同功能模块,封装快捷使用的工具类及 API 方法调用。该项目尽可能的便于开发人员,快捷、高效开发安全可靠的项目。 The licence is Apache-2.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 6022ede. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are xml).
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
schemas.android.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Android XML Resource loads about 1.3k tokens when it runs, and up to ~3.1k if it reads all its reference files. Until then it costs about 95 tokens; SKILL.md has 222 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from afkT/DevUtils at commit 6022ede, republished under its Apache-2.0 licence (© afkT). 222 words, ~1,255 tokens.
.claude/skills/android-xml-resource/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.让新建的 layout、drawable、mipmap、color、values 资源命名一致、可预测、可被工具校验。本 Skill 自包含,不依赖任何外部文档;全量表格、示例与反例见 references/reference.md。
name。@+id/、colors、dimens、styles 的命名。layout/、drawable/、color/、mipmap/、anim/…目录下文件)只能用小写 a-z、数字 0-9、下划线 _;大写、空格、连字符、中文都非法。drawable/、mipmap/、layout/、values/、color/、anim/、menu/、xml/、raw/、font/…),不能放 res/ 根,也不能自造目录基名。- 追加到目录基名(drawable-night-hdpi、values-zh-rCN、layout-land),并按官方优先级排序;目录不可嵌套。限定符顺序见 references/reference.md。snake_case(全小写下划线)。values/ 值名(name="...")统一 snake_case(btn_submit、dp_12、color_0088ff);仅 style / theme 用 PascalCase + 点分(Theme.App、Widget.App.Button.Primary)。activity_、item_、ic_、bg_…)。res-<module>/),文件名以模块/功能域起头(main_tab_*、learning_word_*)规避跨模块同名。各类型的前缀表与 name 规则(layout / drawable 两族 / colors / dimens / styles / ids)见 references/reference.md。
按用途二选一,全表见 references/reference.md § drawable 命名:
ic_*、btn_*、divider_*、<module>_..._selector(内部用 @mipmap/@drawable 切换状态)。bg_<color1>[_<color2>][_<alphaPercent>][_r<radius>][_border[_<borderColor>]][_w<width>]_<suffix>
border_<strokeColor>[_<alphaPercent>]_r<radius>[_w<width>]
text_color_<color1>_<color2>[_..]_selector#(ffffff、0088ff);按真实颜色取值,即使引用的是短别名(@color/color_33 仍写 333333)。第 1 个 = 默认/normal 态,第 2 个 = 激活态。_<百分比>(_40 = 40% 不透明)。圆角:r<dp>,小数用 _(r2_5 = 2.5dp,r50 = 胶囊)。描边:border/border_<色>、线宽 w<dp>。后缀:selector/shape/gradient。随状态变化的 背景 / 文本色 / 图标 必须用 一个 selector 或 ColorStateList 文件表达全部 state。禁止拆成 xxx_normal.xml + xxx_pressed.xml + xxx_selector.xml。
规则:
<item> 内联 <shape>(corners/solid/stroke),不外链多个 shape 文件。state_checked/state_pressed/state_selected/state_focused…),无 state 的默认项放最后兜底。bg_ffffff_0088ff_r5_selector;文本色如 text_color_333333_ffffff_selector。背景 selector 范式(单文件、内联 shape、默认项在最后):
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_checked="true">
<shape>
<corners android:radius="@dimen/dp_5" />
<solid android:color="@color/color_0088ff" />
</shape>
</item>
<item android:state_selected="true">
<shape>
<corners android:radius="@dimen/dp_5" />
<solid android:color="@color/color_0088ff" />
</shape>
</item>
<item>
<shape>
<corners android:radius="@dimen/dp_5" />
<solid android:color="@color/color_ffffff" />
</shape>
</item>
</selector>文本色 ColorStateList 范式(res/color/ 下,默认项在最后):
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/white" android:state_checked="true" />
<item android:color="@color/white" android:state_pressed="true" />
<item android:color="@color/white" android:state_focused="true" />
<item android:color="@color/white" android:state_selected="true" />
<item android:color="@color/color_33" />
</selector>能不建文件就不建,优先复用工程现成能力:
Round* 的 app:dev_*);复杂多态/渐变才写 drawable。ShadowLayout 的 app:hl_*)。ColorStateList。@dimen/dp_*、@dimen/sp_*。确需新建时,再按上文命名族与单文件整合规则落地。
color_<hex6>[_<alphaPercent>];尺寸 dp_*/sp_*。© afkT, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in .cursor/skills/android-xml-resource of afkT/DevUtils.
Open the folder on GitHubat commit 6022ede
Android XML Resource next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Android XML Resource this skillafkT/DevUtils | 1.6k | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Compose Multiplatform Patternsmonta-app/ocpp-emulator | 180 | 5 repos | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Phone HarnessShawnPana/phone-harness | 3.2k | — | ~4.3k | Automated safety check: Pass | MIT | |
| Stylesarindamxd/camerax-android | 132 | 4 repos | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| Verified Emailarindamxd/camerax-android | 132 | 4 repos | ~4.7k | Automated safety check: Pass | Apache-2.0 | |
| Argent Metro Debuggerbbplayer-app/BBPlayer | 1.1k | — | ~3.4k | Automated safety check: Pass | MIT |
monta-app/ocpp-emulator
Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.
ShawnPana/phone-harness
Control the user's phone — an iPhone through the Mac's iPhone Mirroring window, an Android over adb, or a rented cloud Android: open apps, tap, type, swipe, read the screen.
arindamxd/camerax-android
A skill your agent uses to integrate the Jetpack Compose Styles API into an Android project.
arindamxd/camerax-android
Provides a complete workflow for implementing verified email retrieval on Android Credential Manager API.
bbplayer-app/BBPlayer
Debug a JS runtime via CDP using argent debugger tools. An agent skill from bbplayer-app/BBPlayer.
tloncorp/tlon-apps
Run a mobile QA checklist on a physical Android device over adb for tlon-apps, then triage what fails into fixes.
afkT/DevUtils
依据 Android 官方「版本」文档完成平台适配:按版本号 N 抓取行为变更(所有应用、 targetSdk=N)、changes/features 子页与探索新功能/API;归纳影响项并落地到 Manifest/Gradle/工具类封装。在用户要求 Android 版本适配、行为变更排查、 targetSdk 升级、新 API 封装或对照…
afkT/DevUtils
根据用户给出的 Java/Kotlin 工具类或 View 相关源码,设计并实现 androidx.databinding.BindingAdapter。
afkT/DevUtils
对 DevUtils 工程(DEPSROOT=file/gradle、DEPSMANIFEST=file/deps)中定义的第三方库 GAV 依赖做版本查证与升级;结合 Maven Central、Google Maven、Gradle Plugin Portal、 JitPack 与 GitHub Releases/README 交叉校验「最新可用版本」;必要时修正…
afkT/DevUtils
为布局 XML 中的控件默认补全 DevSimple(lib/DevSimple)的 ViewTheme 样式引用: 按控件继承链匹配 ViewTheme.<类名>,ImageView/AppCompatImageView 使用 ViewTheme.ImageView.FITXY,无匹配则用 ViewTheme.View。工作区内优先 Read…
afkT/DevUtils
在需要圆角矩形纯色背景、描边边框时,优先用 DevWidget(io.github.afkt:DevWidgetX)的 dev.widget.ui.round 包替代 shape / layer-list drawable。流程与核心坑在 SKILL,Round 系列 View、R.styleable.DevWidget 中 app:dev 属性及源码对照见…
afkT/DevUtils
需要对话框、弹窗、菜单、加载等待、轻提示(Toast 替代)、应用内通知、底部弹窗、 上下文菜单、全屏/自定义弹层或操作引导时,默认使用 DialogX (com.github.kongzue.DialogX,本工程已依赖)而非系统 AlertDialog/Toast/PopupMenu。
Works with
Categories
统一 Android XML 资源命名:layout、drawable、mipmap、color、values、id 的前缀与 snakecase 规则;把颜色/圆角/描边/状态编码进文件名(bg、border、textcolor…selector)。. Android XML Resource is an agent skill from afkT/DevUtils.
Android XML Resource fits situations like: mobile work in your project.
Run `npx skills add afkT/DevUtils --skill android-xml-resource -a claude-code`. Or copy the skill folder (.cursor/skills/android-xml-resource in afkT/DevUtils) into .claude/skills/android-xml-resource in your project. Claude Code loads it when a task matches its description.
Run `npx skills add afkT/DevUtils --skill android-xml-resource -a codex`. Or copy the skill folder (.cursor/skills/android-xml-resource in afkT/DevUtils) into .agents/skills/android-xml-resource in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add afkT/DevUtils --skill android-xml-resource -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/android-xml-resource, .gemini/skills/android-xml-resource, .github/skills/android-xml-resource and .opencode/skills/android-xml-resource in your project.
SKILL.md names no scripts, command-line tools or credentials: Android XML Resource is instructions for the agent only.
SKILL.md names 1 domain. In commands or code: schemas.android.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Android XML Resource is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Android XML Resource: Compose Multiplatform Patterns (monta-app/ocpp-emulator, 180 stars), Phone Harness (ShawnPana/phone-harness, 3.2k stars), Styles (arindamxd/camerax-android, 132 stars) and Verified Email (arindamxd/camerax-android, 132 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
afkT (a GitHub user) maintains it in afkT/DevUtils, which has 1,612 GitHub stars. The repository holds 13 skills in this directory. The repository was last updated on September 2, 2026.
Source: afkT/DevUtils on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.