Agent skill

UI Devsimple Viewtheme

by afkT in afkT/DevUtils

为布局 XML 中的控件默认补全 DevSimple(lib/DevSimple)的 ViewTheme 样式引用: 按控件继承链匹配 ViewTheme.<类名>,ImageView/AppCompatImageView 使用 ViewTheme.ImageView.FITXY,无匹配则用 ViewTheme.View。工作区内优先 Read…

Apache-2.0Auto-check passedMobile

Install UI Devsimple Viewtheme

skills CLI
$ npx skills add afkT/DevUtils --skill ui-devsimple-viewtheme -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install afkT/DevUtils ui-devsimple-viewtheme --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/afkT/DevUtils.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/ui-devsimple-viewtheme .claude/skills/ui-devsimple-viewtheme && rm -rf skills-src

Use ~/.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/

Facts

Skill name
ui-devsimple-viewtheme
GitHub stars
1.6k
Token cost
~727 tokens
SKILL.md length
128 words
Files
2 (incl. references)
Skills in repo
13
Repo updated
First seen
Licence
Apache-2.0

At a glance

为布局 XML 中的控件默认补全 DevSimple(lib/DevSimple)的 ViewTheme 样式引用: 按控件继承链匹配 ViewTheme.<类名>,ImageView/AppCompatImageView 使用 ViewTheme.ImageView.FITXY,无匹配则用 ViewTheme.View。工作区内优先 Read…

  • Works in 7 steps: 已有… → 解析控件「语义类名」 → ImageView 特例:ImageView /… → …
  • Mobile work in your project
  • SKILL.md covers 模块路径(本地优先), 何时应用, 前置假设 and 核心规则(按顺序执行), plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

UI Devsimple Viewtheme is an agent skill from afkT/DevUtils. 为布局 XML 中的控件默认补全 DevSimple(lib/DevSimple)的 ViewTheme 样式引用: 按控件继承链匹配 ViewTheme.<类名>,ImageView/AppCompatImageView 使用 ViewTheme.ImageView.FITXY,无匹配则用 ViewTheme.View。工作区内优先 Read lib/DevSimple;根样式清单见同目录 references/reference.md。在编写或批量整理 layout XML、 引入 ViewTheme、迁移旧布局、或用户提到 DevSimple/ViewTheme 时使用。

Its SKILL.md is about 730 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.

When your agent uses it

  • Mobile work in your project

Example prompts

  • “/ui-devsimple-viewtheme”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. 已有 style/android:theme:不要覆盖用户显式配置;除非用户明确要求替换。
  2. 解析控件「语义类名」
  3. ImageView 特例:ImageView / AppCompatImageView 一律
  4. 匹配根样式:若 reference 根样式表存在 ViewTheme.<语义类名>,则
  5. ViewPager2:无 ViewTheme.ViewPager2;使用 style="@style/ViewTheme.ViewPager"。
  6. 无匹配:style="@style/ViewTheme.View"。
  7. 写法:style 放在标签属性前列(与项目现有 XML 风格一致)。

What it can do on your machine

Read from SKILL.md and the folder at commit 6022ede. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    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.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

UI Devsimple Viewtheme loads about 727 tokens when it runs, and up to ~2.7k if it reads all its reference files. Until then it costs about 81 tokens; SKILL.md has 128 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~81
When it runs · the whole SKILL.md, loaded when a task matches
~727
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.7k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from afkT/DevUtils at commit 6022ede, republished under its Apache-2.0 licence (© afkT). 128 words, ~727 tokens.

Download SKILL.mdSave it as .claude/skills/ui-devsimple-viewtheme/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
ui-devsimple-viewtheme
description
为布局 XML 中的控件默认补全 DevSimple(lib/DevSimple)的 ViewTheme 样式引用: 按控件继承链匹配 ViewTheme.&lt;类名&gt;,ImageView/AppCompatImageView 使用 ViewTheme.ImageView.FIT_XY,无匹配则用 ViewTheme.View。工作区内优先 Read lib/DevSimple;根样式清单见同目录 references/reference.md。在编写或批量整理 layout XML、 引入 ViewTheme、迁移旧布局、或用户提到 DevSimple/ViewTheme 时使用。

DevSimple 布局 XML 默认 ViewTheme 样式

模块路径(本地优先)

符号当前值
DEVSIMPLE_ROOTlib/DevSimple
DEVSIMPLE_VALUES{DEVSIMPLE_ROOT}/src/main/res/values

存在 {DEVSIMPLE_ROOT} 时 Read 本地 XML,勿用 WebFetch 代替。根样式全表、继承链、资源文件索引与 grep 维护步骤 → references/reference.md。

何时应用

  • 新建或编辑 res/layout/**/*.xml 中的控件,需要统一默认宽高与主题习惯时。
  • 用户要求为 View 补上 DevSimple / ViewTheme 的 style 时。

前置假设

  • 模块已依赖 DevSimple,R 中可解析 @style/ViewTheme.*。
  • 样式名是否存在:以 references/reference.md §根样式表 为准;若存疑或久未同步,在 {DEVSIMPLE_VALUES} grep name="ViewTheme. 后更新 reference(见 reference §扫描与更新)。

核心规则(按顺序执行)

  1. 已有 style/android:theme:不要覆盖用户显式配置;除非用户明确要求替换。
  2. 解析控件「语义类名」:
    • XML 为完整类名时取简单类名(如 RecyclerView)。
    • AppCompat / Material:沿继承向平台 Widget 回退,取第一个在 reference 根样式表中出现的简单类名。
      例:AppCompatEditText → EditText;MaterialButton → Button。
  3. ImageView 特例:ImageView / AppCompatImageView 一律
    style="@style/ViewTheme.ImageView.FIT_XY"(不用 ViewTheme.ImageView 作默认)。
  4. 匹配根样式:若 reference 根样式表存在 ViewTheme.<语义类名>,则
    style="@style/ViewTheme.<语义类名>"(ImageView 已按上一步处理)。
  5. ViewPager2:无 ViewTheme.ViewPager2;使用 style="@style/ViewTheme.ViewPager"。
  6. 无匹配:style="@style/ViewTheme.View"。
  7. 写法:style 放在标签属性前列(与项目现有 XML 风格一致)。

继承链与常见标签对照 → references/reference.md §继承链速查。需要 Match / Gravity / 子样式时 → references/reference.md §子样式命名规律。

示例

xml
<androidx.core.widget.NestedScrollView
    style="@style/ViewTheme.NestedScrollView">

    <androidx.recyclerview.widget.RecyclerView
        style="@style/ViewTheme.RecyclerView" />

    <androidx.appcompat.widget.AppCompatImageView
        style="@style/ViewTheme.ImageView.FIT_XY"
        android:layout_width="match_parent"
        android:layout_height="120dp" />

    <androidx.appcompat.widget.AppCompatEditText
        style="@style/ViewTheme.EditText" />
</androidx.core.widget.NestedScrollView>

无库内主题的控件:

xml
<androidx.appcompat.widget.SwitchCompat
    style="@style/ViewTheme.View"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content" />

执行清单

  • 已 Read references/reference.md 根样式表(或已 grep {DEVSIMPLE_VALUES} 核对)。
  • 未覆盖用户已有 style(除非明确要求)。
  • ImageView / ViewPager2 特例已套用。
  • DevSimple 有新增 ViewTheme 时,按 reference §扫描与更新 同步 reference,勿只改 SKILL。

© 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

Files

SKILL.md and 1 other file (references) in .cursor/skills/ui-devsimple-viewtheme of afkT/DevUtils.

  • SKILL.md
  • references/reference.md

Open the folder on GitHubat commit 6022ede

Compare with similar skills

UI Devsimple Viewtheme 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.

UI Devsimple Viewtheme compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
UI Devsimple Viewtheme this skillafkT/DevUtils1.6k—~727Automated safety check: PassApache-2.0
Compose Multiplatform Patternsmonta-app/ocpp-emulator1805 repos~2kAutomated safety check: PassApache-2.0
Phone HarnessShawnPana/phone-harness3.2k—~4.3kAutomated safety check: PassMIT
Stylesarindamxd/camerax-android1324 repos~2.3kAutomated safety check: PassApache-2.0
Verified Emailarindamxd/camerax-android1324 repos~4.7kAutomated safety check: PassApache-2.0
Argent Metro Debuggerbbplayer-app/BBPlayer1.1k—~3.4kAutomated safety check: PassMIT

Similar skills

  • 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.

    180 GitHub starsUsed in 5 repos~2k tokens
    MobileAuto-check passed
  • Phone Harness

    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.

    3.2k GitHub stars~4.3k tokensUpdated 10 days ago
    MobileAuto-check passed
  • Styles

    arindamxd/camerax-android

    A skill your agent uses to integrate the Jetpack Compose Styles API into an Android project.

    132 GitHub starsUsed in 4 repos~2.3k tokens
    MobileAuto-check passed
  • Verified Email

    arindamxd/camerax-android

    Provides a complete workflow for implementing verified email retrieval on Android Credential Manager API.

    132 GitHub starsUsed in 4 repos~4.7k tokens
    MobileAuto-check passed
  • Argent Metro Debugger

    bbplayer-app/BBPlayer

    Debug a JS runtime via CDP using argent debugger tools. An agent skill from bbplayer-app/BBPlayer.

    1.1k GitHub stars~3.4k tokensUpdated today
    MobileAuto-check passed
  • Mobile QA

    tloncorp/tlon-apps

    Run a mobile QA checklist on a physical Android device over adb for tlon-apps, then triage what fails into fixes.

    107 GitHub stars~2.4k tokensUpdated today
    MobileAuto-check passed

More from afkT/DevUtils

All 13 skills in this repo
  • 依据 Android 官方「版本」文档完成平台适配:按版本号 N 抓取行为变更(所有应用、 targetSdk=N)、changes/features 子页与探索新功能/API;归纳影响项并落地到 Manifest/Gradle/工具类封装。在用户要求 Android 版本适配、行为变更排查、 targetSdk 升级、新 API 封装或对照…

    1.6k GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • 统一 Android XML 资源命名:layout、drawable、mipmap、color、values、id 的前缀与 snakecase 规则;把颜色/圆角/描边/状态编码进文件名(bg、border、textcolor…selector)。

    1.6k GitHub stars~1.3k tokensUpdated 1 mo ago
    Auto-check passed
  • 根据用户给出的 Java/Kotlin 工具类或 View 相关源码,设计并实现 androidx.databinding.BindingAdapter。

    1.6k GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • 对 DevUtils 工程(DEPSROOT=file/gradle、DEPSMANIFEST=file/deps)中定义的第三方库 GAV 依赖做版本查证与升级;结合 Maven Central、Google Maven、Gradle Plugin Portal、 JitPack 与 GitHub Releases/README 交叉校验「最新可用版本」;必要时修正…

    1.6k GitHub stars~1.2k tokensUpdated 1 mo ago
    Auto-check passed
  • UI Devwidget Round

    afkT/DevUtils

    在需要圆角矩形纯色背景、描边边框时,优先用 DevWidget(io.github.afkt:DevWidgetX)的 dev.widget.ui.round 包替代 shape / layer-list drawable。流程与核心坑在 SKILL,Round 系列 View、R.styleable.DevWidget 中 app:dev 属性及源码对照见…

    1.6k GitHub stars~880 tokensUpdated 1 mo ago
    Auto-check passed
  • UI Dialogx Dialog

    afkT/DevUtils

    需要对话框、弹窗、菜单、加载等待、轻提示(Toast 替代)、应用内通知、底部弹窗、 上下文菜单、全屏/自定义弹层或操作引导时,默认使用 DialogX (com.github.kongzue.DialogX,本工程已依赖)而非系统 AlertDialog/Toast/PopupMenu。

    1.6k GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Categories

Questions about UI Devsimple Viewtheme

What does UI Devsimple Viewtheme do?

为布局 XML 中的控件默认补全 DevSimple(lib/DevSimple)的 ViewTheme 样式引用: 按控件继承链匹配 ViewTheme.&lt;类名&gt;,ImageView/AppCompatImageView 使用 ViewTheme.ImageView.FITXY,无匹配则用 ViewTheme.View。工作区内优先 Read…. UI Devsimple Viewtheme is an agent skill from afkT/DevUtils.

When should I use UI Devsimple Viewtheme?

UI Devsimple Viewtheme fits situations like: mobile work in your project.

How do I install UI Devsimple Viewtheme in Claude Code?

Run `npx skills add afkT/DevUtils --skill ui-devsimple-viewtheme -a claude-code`. Or copy the skill folder (.cursor/skills/ui-devsimple-viewtheme in afkT/DevUtils) into .claude/skills/ui-devsimple-viewtheme in your project. Claude Code loads it when a task matches its description.

How do I install UI Devsimple Viewtheme in Codex?

Run `npx skills add afkT/DevUtils --skill ui-devsimple-viewtheme -a codex`. Or copy the skill folder (.cursor/skills/ui-devsimple-viewtheme in afkT/DevUtils) into .agents/skills/ui-devsimple-viewtheme in your project. Codex loads it when a task matches its description.

Can I use UI Devsimple Viewtheme in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add afkT/DevUtils --skill ui-devsimple-viewtheme -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ui-devsimple-viewtheme, .gemini/skills/ui-devsimple-viewtheme, .github/skills/ui-devsimple-viewtheme and .opencode/skills/ui-devsimple-viewtheme in your project.

What does UI Devsimple Viewtheme need to run?

SKILL.md names no scripts, command-line tools or credentials: UI Devsimple Viewtheme is instructions for the agent only.

Does UI Devsimple Viewtheme access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is UI Devsimple Viewtheme safe to install?

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.

What licence does UI Devsimple Viewtheme use?

UI Devsimple Viewtheme 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.

How many tokens does UI Devsimple Viewtheme use?

About 727 tokens (SKILL.md is roughly 2.9k 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 2k tokens, read only when the agent opens those files.

What are the alternatives to UI Devsimple Viewtheme?

Skills that share tags, products or a category with UI Devsimple Viewtheme: 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.

Who maintains UI Devsimple Viewtheme?

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.