add-android-module

add-android-module is a skill for Codex from ashtanko/compose-android-template. It costs 69 tokens per session (583 once invoked), scanned A, original, MIT.

A generator for adding Android or Kotlin modules to a Gradle project. A module is a separately configured part of an application or library, such as a feature or shared code package.

In plain words
What is it for?
Use it when creating Android, Kotlin/JVM, feature, core, or other library modules and registering their Gradle paths and packages.
Why use it?
It avoids inconsistent hand-written module setup and connects the new module to the repository’s existing build conventions.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/add-module.sh \.

Good fit Use it when creating Android, Kotlin/JVM, feature, core, or other library modules and registering their Gradle paths and packages.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ashtanko/compose-android-template
agentmods
npx agentmods add skills/ashtanko/compose-android-template/add-android-module

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-android-module

README.md
[![agentmods](https://agentmods.dev/badge/skills/ashtanko/compose-android-template/add-android-module/github.svg)](https://agentmods.dev/skills/ashtanko/compose-android-template/add-android-module)
Your own site
<a href="https://agentmods.dev/skills/ashtanko/compose-android-template/add-android-module"><img src="https://agentmods.dev/badge/skills/ashtanko/compose-android-template/add-android-module/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-android-module

Your own site · 80×15
<a href="https://agentmods.dev/skills/ashtanko/compose-android-template/add-android-module"><img src="https://agentmods.dev/badge/skills/ashtanko/compose-android-template/add-android-module.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 583 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.00583
Opus 5.5 $0.00028 $0.00233
Sonnet 5.5 $0.00014 $0.00117
Haiku 4.5 $0.00007 $0.00058

Measured 1mo ago against content hash 8c36ed7f8862, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

add-android-module scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/add-android-module/SKILL.md · 45 lines

How it starts

The opening of the file, as written. The whole thing — 45 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add Android Module

Create a module with explicit, repeatable inputs, then replace or remove generator placeholders and validate the new Gradle path.

Workflow

  1. Read ../../reference/architecture.md and inspect settings.gradle.kts, gradle/libs.versions.toml, build-logic/convention, and the nearest working module of the same type.

  2. Choose:

    • type: android for Android APIs, resources, or Compose; kotlin for platform-independent logic.
    • name: lowercase letters, digits, and hyphens.
    • parent: usually feature, core, or an empty string for a root module.
    • package: a valid dotted identifier under the project's current base package.
  3. Inspect the working tree and confirm the target directory and Gradle path do not already exist. Preserve unrelated edits in settings.gradle.kts.

  4. Run the generator non-interactively:

    bash scripts/add-module.sh \
      --type android \
      --name profile \
      --parent feature \
      --package app.template.feature.profile
    
  5. Review every generated file. Replace the placeholder greeting class and test with the requested implementation, or remove them if the task only calls for an empty module.

  6. Generated Android modules intentionally start without explicit library dependencies. Add only the direct dependencies required by the implementation, default to implementation, and use api only when a dependency type intentionally appears in the module's public contract. Use catalog aliases and existing convention plugins; do not hardcode versions.

  7. Confirm that the module appears exactly once in settings.gradle.kts and that its namespace and package path agree.

  8. Run ./gradlew spotlessApply, inspect the formatting diff, then run the module's unit-test task and ./gradlew spotlessCheck.

Guardrails

  • Do not run the generator interactively from an unattended agent session.
  • Do not overwrite an existing module or discard concurrent changes to settings.gradle.kts.
  • Do not assume every feature needs Compose, Hilt, Room, or navigation. Add only what its implementation requires.
  • Do not add convenience api dependencies to make libraries available transitively to consumers.
  • Do not retain sample code merely to make an empty module compile; use a minimal real contract or no source file.
  • Report all created files and the exact validation tasks run.

Read the full file on GitHub · 45 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 45 lines · 69 tokens per session scan A 8c36ed7f8862

Subscribe to this mod's changes

add-android-module is a skill published in the GitHub repository ashtanko/compose-android-template (13 stars, last pushed 4d ago), licensed MIT. It adds 69 tokens to every session and 583 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

compose-animations

Use when writing or reviewing Jetpack Compose motion: visibility enter/exit, animating one property toward a target, color or size transitions, multiple properties from one state, switching composable content, or choosing between AnimatedVisibility, animateAsState, rememberTransition, AnimatedContent, and Crossfade.

chrisbanes/skills · 64 tokens

compose-focus-navigation

Use when writing or reviewing Jetpack Compose UI for TV, keyboard, desktop, accessibility focus, D-pad navigation, FocusRequester, focusProperties, key events, or initial focus behavior.

chrisbanes/skills · 41 tokens

kotlin-android

Use when building or fixing a native Android app in Kotlin and Jetpack Compose on the UDF layered architecture — ViewModel/StateFlow, Hilt, Room, Retrofit, coroutines, type-safe Navigation, and the Gradle/AGP surface. NOT shared Android and iOS UI from one Kotlin codebase (that is compose-multiplatform).

ericrisco/rsc-harness · 78 tokens

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. Use for new projects or modules, Compose screens and ViewModels, Room 3 and RemoteMediator, API 37 / targetSdk migration, Play Integrity client wiring…

Drjacky/claude-android-ninja · 123 tokens

migrating-to-modifier-node

Use this skill to author new custom Jetpack Compose modifiers and migrate legacy ones from Modifier.composed { } to Modifier.Node + ModifierNodeElement . Covers the persistent-node lifecycle (onAttach, onDetach, onReset, coroutineScope), the specialized node interfaces (DrawModifierNode, LayoutModifierNode…

skydoves/compose-performance-skills · 183 tokens

setting-up-compose-hotswan

Use this skill to install and verify Compose HotSwan end to end so a developer goes from zero to working sub-second hot reload on a real device or emulator in one session. Covers the JetBrains IDE plugin install, the com.github.skydoves.compose.hotswan.compiler Gradle plugin wiring, the canonical hotSwanCompiler {…

skydoves/compose-performance-skills · 161 tokens