Agent skill

Project Gradle Central Deps

by afkT in afkT/DevUtils

在 DevUtils 工程(仓库布局契约 DEPSROOT=file/gradle、DEPSMANIFEST=file/deps)中 新增或引用 Gradle 依赖时,先查 {DEPSROOT}/config.gradle、configkotlin.gradle、 configandroidx.gradle 与 configlibs.gradle…

Apache-2.0Auto-check passedMobile

Install Project Gradle Central Deps

skills CLI
$ npx skills add afkT/DevUtils --skill project-gradle-central-deps -a claude-code

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

GitHub CLI
$ gh skill install afkT/DevUtils project-gradle-central-deps --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/project-gradle-central-deps .claude/skills/project-gradle-central-deps && 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
project-gradle-central-deps
GitHub stars
1.6k
Token cost
~1.6k tokens
SKILL.md length
338 words
Files
1
Skills in repo
13
Repo updated
First seen
Licence
Apache-2.0

At a glance

在 DevUtils 工程(仓库布局契约 DEPSROOT=file/gradle、DEPSMANIFEST=file/deps)中 新增或引用 Gradle 依赖时,先查 {DEPSROOT}/config.gradle、configkotlin.gradle、 configandroidx.gradle 与 configlibs.gradle…

  • Works in 6 steps: 官方 Android 库检索(新增依赖前建议查阅) → 查找是否已存在 → 不存在时:决定写入哪个文件、哪个分组 → …
  • Tasks that involve Android development
  • SKILL.md covers 仓库布局契约(路径唯一来源), 0. 官方 Android 库检索(新增依赖前建议查阅), 1. 查找是否已存在 and 2. 不存在时:决定写入哪个文件、哪个分组, plus 3 more sections
  • Reaches mvnrepository.com

What it does

Project Gradle Central Deps is an agent skill from afkT/DevUtils. 在 DevUtils 工程(仓库布局契约 DEPSROOT=file/gradle、DEPSMANIFEST=file/deps)中 新增或引用 Gradle 依赖时,先查 {DEPSROOT}/config.gradle、configkotlin.gradle、 configandroidx.gradle 与 configlibs.gradle 是否已有坐标;按官方/非官方规则写入对应文件分组, 并在 {DEPSMANIFEST}/depsandroid.gradle 或 depsproject.gradle 中按现有风格引用。在用户要求添加 AndroidX、CameraX、Kotlin、Jetpack、第三方 Maven 依赖或修改 deps 清单时使用。

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile, covering Android development. It works with Gradle, Android and Kotlin. The repository describes itself as: :fire: ( 持续更新,目前含 300+ 工具类 ) DevUtils 是一个 Android 工具库,主要根据不同功能模块,封装快捷使用的工具类及 API 方法调用。该项目尽可能的便于开发人员,快捷、高效开发安全可靠的项目。 The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Android development

Example prompts

  • “/project-gradle-central-deps”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. 官方 Android 库检索(新增依赖前建议查阅)
  2. 查找是否已存在
  3. 不存在时:决定写入哪个文件、哪个分组
  4. 新增条目时的注释与 key 命名
  5. 在业务侧引用(DEPS_MANIFEST)
  6. 自检清单

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.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • mvnrepository.com

    Also links to:

    • developer.android.com

    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

Project Gradle Central Deps loads about 1.6k tokens when it runs. Until then it costs about 93 tokens; SKILL.md has 338 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~93
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k

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). 338 words, ~1,606 tokens.

Download SKILL.mdSave it as .claude/skills/project-gradle-central-deps/SKILL.md (or your agent's skills folder).
name
project-gradle-central-deps
description
在 DevUtils 工程(仓库布局契约 DEPS_ROOT=file/gradle、DEPS_MANIFEST=file/deps)中 新增或引用 Gradle 依赖时,先查 {DEPS_ROOT}/config.gradle、config_kotlin.gradle、 config_androidx.gradle 与 config_libs.gradle 是否已有坐标;按官方/非官方规则写入对应文件分组, 并在 {DEPS_MANIFEST}/deps_android.gradle 或 deps_project.gradle 中按现有风格引用。在用户要求添加 AndroidX、CameraX、Kotlin、Jetpack、第三方 Maven 依赖或修改 deps 清单时使用。

Project 中心化依赖(Gradle)

仓库布局契约(路径唯一来源)

本 Skill 内凡出现依赖配置路径,均以下列符号展开;将来若抽成 project-gradle-* 或 fork 改目录,只改本表一行即可。

符号当前值(DevUtils)说明
DEPS_ROOTfile/gradle坐标定义:ext.deps、ext.deps_lib、versions.gradle 等
DEPS_MANIFESTfile/deps业务侧聚合引用:deps_*.gradle

常用文件(由契约展开)

符号路径变量用途
{DEPS_ROOT}/config.gradledeps构建插件 build、dev 分组
{DEPS_ROOT}/config_kotlin.gradledeps_kotlin官方 Kotlin / JetBrains 生态及 KTX
{DEPS_ROOT}/config_androidx.gradledeps_androidxandroidx.* Jetpack / Material 等官方库
{DEPS_ROOT}/config_libs.gradledeps_lib非 Android 官方第三方库
{DEPS_ROOT}/versions.gradleversions${versions.xxx} 集中版本号
{DEPS_MANIFEST}/deps_android.gradle—引用 deps_kotlin.* / deps_androidx.*(Android 库 / 示例)
{DEPS_MANIFEST}/deps_project.gradle—引用 deps_lib.*(示例 / 第三方 lib 聚合)

{DEPS_ROOT}/config.gradle 首部依次 apply 了 config_kotlin.gradle(ext.deps_kotlin)、config_androidx.gradle(ext.deps_androidx)、config_libs.gradle(ext.deps_lib),再定义 ext.deps(仅 build / dev);根工程 build.gradle 只需 apply config.gradle 即可加载全部 ext.deps*。任何新依赖必须先查是否已存在,禁止重复定义同一坐标。

升级已有 GAV 版本、多源校验写回 → Read project-gradle-third-party-version-upgrade/SKILL.md(沿用同一 DEPS_ROOT / DEPS_MANIFEST)。

0. 官方 Android 库检索(新增依赖前建议查阅)

写入 {DEPS_ROOT}/config_androidx.gradle(deps_androidx)/ config_kotlin.gradle(deps_kotlin)的 官方坐标 前,优先在下列站点核对 artifact 名、稳定版号、分组语义:

{DEPS_ROOT}/config_androidx.gradle / config_kotlin.gradle 内 「Android 官方库」 区块注释已收录上表部分链接;查版本号以中文版总览页为准,与文件中各条目旁的 mvnrepository.com 链接交叉核对。

第三方 / 非官方库不在此页检索 → 使用 mvnrepository.com 或库方 GitHub,并写入 {DEPS_ROOT}/config_libs.gradle。

1. 查找是否已存在

按优先级在 {DEPS_ROOT} 下四个坐标文件全文检索(建议对 artifact 名、group、已有 key 各搜一次):

文件变量用途
{DEPS_ROOT}/config.gradledeps构建插件 build、dev 分组
{DEPS_ROOT}/config_kotlin.gradledeps_kotlin官方 Kotlin / JetBrains 生态及相关 KTX
{DEPS_ROOT}/config_androidx.gradledeps_androidx官方 androidx.* / Material 等
{DEPS_ROOT}/config_libs.gradledeps_lib非 Android 官方第三方库,按子分组组织

若已存在:跳到 第 4 步,只在本模块或 {DEPS_MANIFEST}/*.gradle 中增加 api / implementation / kapt 引用,不要再写一条相同 GAV 的配置。

2. 不存在时:决定写入哪个文件、哪个分组

2.1 写入官方坐标文件(deps / deps_kotlin / deps_androidx)

在同时满足「官方」且语义属于下列范围时使用:

  • {DEPS_ROOT}/config_kotlin.gradle(deps_kotlin,顶层平铺 map):org.jetbrains.kotlin、org.jetbrains.kotlinx、org.jetbrains.dokka;与 Kotlin/JetBrains 生态强相关、且现有 deps_kotlin 里同类条目并列的 AndroidX KTX(若团队惯例放在 deps_kotlin 而非纯 deps_androidx,与文件内现有条目保持一致)。
  • {DEPS_ROOT}/config_androidx.gradle(deps_androidx,顶层平铺 map):androidx.* Jetpack/AndroidX 构件;com.google.android.material:material 等与官方文档并列的 Material 组件(本仓库当前放在 deps_androidx);com.google.dagger:hilt-android* 等本文件已有先例的官方栈。
  • {DEPS_ROOT}/config.gradle(deps)→ build 分组:Gradle 插件类坐标(与现有 kotlin_gradle_plugin 等并列)。
  • {DEPS_ROOT}/config.gradle(deps)→ dev 分组:仅 io.github.afkt Dev 系列,勿把外部库塞入。

CameraX(androidx.camera:*)属于 AndroidX 官方 → 新增键应放在 config_androidx.gradle 的 deps_androidx(除非仓库后续另有约定;以文件内同类 androidx.* 为准)。

2.2 写入 {DEPS_ROOT}/config_libs.gradle(deps_lib)
  • 非 Google/JetBrains/AndroidX 官方发布、或 group 为第三方域名(如 com.squareup、com.github.*、io.github.* 等)→ 放入 deps_lib。
  • 在现有子分组中选语义最接近的一个(如网络 common、图片 image_widget、路由 router)。不要把明显不属于该分组的库硬塞进去。
  • 若确实没有合适分组:在 deps_lib 顶层新增一个子 map 键(命名风格与现有一致:小写 + 下划线,如 camera_kit),并在该块顶部用与全文件一致的 区块注释(// ===...=== + 简短中文说明)。
2.3 与 {DEPS_ROOT}/versions.gradle 的关系

config.gradle / config_kotlin.gradle / config_androidx.gradle / config_libs.gradle 首行均 apply from: versions.gradle(相对 {DEPS_ROOT})。若版本需多处复用或与 Kotlin 版本对齐,可像 kotlin-gradle-plugin 那样使用 ${versions.xxx};否则可直接写死版本号(与现有条目风格一致)。

3. 新增条目时的注释与 key 命名

参考 {DEPS_ROOT} 下两文件中已有行:

  • 可选:// https://mvnrepository.com/artifact/...
  • 一行中文说明 + 官方文档或 GitHub 链接(与邻近条目同级)。
  • key:全小写 + 下划线,语义清晰(如 camerax_camera2、camerax_lifecycle);同一库多模块多个 key 时保持前缀一致。

4. 在业务侧引用(DEPS_MANIFEST)

  • Android 库 / 示例里与官方坐标相关的清单:照 {DEPS_MANIFEST}/deps_android.gradle —— api deps_kotlin.<key>、api deps_androidx.<key>,需要处理器时用 kapt(与模块现有写法一致)。
  • 示例工程、第三方 lib 聚合清单:照 {DEPS_MANIFEST}/deps_project.gradle —— api deps_lib.<子分组>.<key>,并保留分组标题注释与简短中文/GitHub 说明。

具体模块若直接写依赖而不走 deps_kotlin/deps_androidx/deps_lib,仍应使用同一字符串(如 api deps_androidx.camerax),避免复制一份硬编码 GAV。

5. 自检清单

  • 官方 AndroidX/Kotlin 坐标已在 AndroidX 版本总览(中文) 核对稳定版号与 artifact 名。
  • 已在 {DEPS_ROOT}/config.gradle、config_kotlin.gradle、config_androidx.gradle 与 config_libs.gradle 中确认无重复坐标。
  • 官方/非官方归属与文件分组、注释风格与邻居一致。
  • 若在 deps / deps_kotlin / deps_androidx / deps_lib 新增 key,已在 {DEPS_MANIFEST}/deps_*.gradle 或目标模块 build.gradle 中增加引用行。
  • 需要注解处理器时同时声明 kapt 行(若该模块已使用 kapt)。

© 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

Just SKILL.md in .cursor/skills/project-gradle-central-deps of afkT/DevUtils.

Open the folder on GitHubat commit 6022ede

Compare with similar skills

Project Gradle Central Deps 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.

Project Gradle Central Deps compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Project Gradle Central Deps this skillafkT/DevUtils1.6k—~1.6kAutomated safety check: PassApache-2.0
Android Developmentdpconde/claude-android-skill336—~1.7kAutomated safety check: PassMIT
Claude Android NinjaDrjacky/claude-android-ninja124—~5.2kAutomated safety check: PassApache-2.0
Expo Brownfield Integrationmweinbach/agent-coworker1562 repos~900Automated safety check: NotesCustom licence
Jugg Android Dev Loopniki914/zafiro241—~2kAutomated safety check: PassMIT
Build Foremannekomangaorg/Neko2.8k—~807Automated safety check: PassApache-2.0

Similar skills

  • Android Development

    dpconde/claude-android-skill

    Create production-quality Android applications following Google's official architecture guidance and NowInAndroid best practices.

    336 GitHub stars~1.7k tokensUpdated 10 mo ago
    MobileAuto-check passed
  • Claude Android Ninja

    Drjacky/claude-android-ninja

    Build and migrate Android apps with Kotlin, Jetpack Compose, MVVM, Hilt, Room 3 (KSP, SQLiteDriver, Flow/suspend DAOs), Navigation3, and multi-module Gradle.

    124 GitHub stars~5.2k tokensUpdated 11 days ago
    MobileAuto-check passed
  • Expo Brownfield Integration

    mweinbach/agent-coworker

    Helps add Expo and React Native to an existing native iOS or Android app, and choose between a prebuilt AAR or XCFramework and a fully integrated build.

    156 GitHub starsUsed in 2 repos~900 tokens
    MobileAuto-check: notes
  • Jugg Android Dev Loop

    niki914/zafiro

    A skill your agent uses when editing source files (Java/Kotlin/XML/layout/AndroidManifest/Gradle) in a Android project, or when user asks to build/deploy/verify an Android app.

    241 GitHub stars~2k tokensUpdated today
    MobileAuto-check passed
  • Build Foreman

    nekomangaorg/Neko

    Optimizes Gradle build scripts, compilation times, and Android Studio sync performance.

    2.8k GitHub stars~807 tokensUpdated yesterday
    MobileAuto-check passed
  • Android Audio E2E

    hyochan/react-native-nitro-sound

    Build and run device-backed Android end-to-end checks for react-native-nitro-sound permissions, recording, playback, listeners, pause/resume, seek, speed, audio focus, lifecycle behavior, and rapid…

    961 GitHub stars~814 tokensUpdated 11 days ago
    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
  • 为布局 XML 中的控件默认补全 DevSimple(lib/DevSimple)的 ViewTheme 样式引用: 按控件继承链匹配 ViewTheme.&lt;类名&gt;,ImageView/AppCompatImageView 使用 ViewTheme.ImageView.FITXY,无匹配则用 ViewTheme.View。工作区内优先 Read…

    1.6k GitHub stars~727 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

Categories

Questions about Project Gradle Central Deps

What does Project Gradle Central Deps do?

在 DevUtils 工程(仓库布局契约 DEPSROOT=file/gradle、DEPSMANIFEST=file/deps)中 新增或引用 Gradle 依赖时,先查 {DEPSROOT}/config.gradle、configkotlin.gradle、 configandroidx.gradle 与 configlibs.gradle…. Project Gradle Central Deps is an agent skill from afkT/DevUtils.

When should I use Project Gradle Central Deps?

Project Gradle Central Deps fits situations like: tasks that involve Android development.

How do I install Project Gradle Central Deps in Claude Code?

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

How do I install Project Gradle Central Deps in Codex?

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

Can I use Project Gradle Central Deps 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 project-gradle-central-deps -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/project-gradle-central-deps, .gemini/skills/project-gradle-central-deps, .github/skills/project-gradle-central-deps and .opencode/skills/project-gradle-central-deps in your project.

What does Project Gradle Central Deps need to run?

SKILL.md names no scripts, command-line tools or credentials: Project Gradle Central Deps is instructions for the agent only.

Does Project Gradle Central Deps access the network?

SKILL.md names 2 domains. In commands or code: mvnrepository.com; the agent is likely to contact it when it follows the instructions. As links in the text: developer.android.com. This is read from the text; nothing was executed.

Is Project Gradle Central Deps 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 Project Gradle Central Deps use?

Project Gradle Central Deps 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 Project Gradle Central Deps use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Project Gradle Central Deps?

Skills that share tags, products or a category with Project Gradle Central Deps: Android Development (dpconde/claude-android-skill, 336 stars), Claude Android Ninja (Drjacky/claude-android-ninja, 124 stars), Expo Brownfield Integration (mweinbach/agent-coworker, 156 stars) and Jugg Android Dev Loop (niki914/zafiro, 241 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Project Gradle Central Deps?

afkT (a GitHub user) maintains it in afkT/DevUtils, which has 1,613 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.