camerax-android: Skill for Claude Code

.agents/skills/adaptive/SKILL.md

adaptive is a skill for Claude Code, Codex from arindamxd/camerax-android. It costs 117 tokens per session (2,793 once invoked), scanned A, a copy of adaptive, Apache-2.0.

A guide for making Android interfaces adapt to phones, tablets, foldable devices, laptops, desktop computers, TVs, cars, and XR devices. It is designed for apps built with Jetpack Compose, Android's modern UI toolkit.

In plain words
What is it for?
Use it to verify an existing Android interface, create multi-pane layouts, adjust navigation bars, change list columns for wider screens, hide app bars while scrolling, and add previews for major device types.
Why use it?
It helps prevent layouts and navigation from working only on one screen size or input style. It also identifies required foundations such as Compose, Jetpack Navigation 3, and screenshot tests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is arindamxd/camerax-android's own configuration. It tells Claude Code and Codex how to work on camerax-android itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything camerax-android configures →

Reuse

Borrowing it

Nothing to install: this file belongs to arindamxd/camerax-android. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/arindamxd/camerax-android/master/.agents/skills/adaptive/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/arindamxd/camerax-android

Made for: Claude Code, 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 adaptive

README.md
[![agentmods](https://agentmods.dev/badge/skills/arindamxd/camerax-android/adaptive/github.svg)](https://agentmods.dev/skills/arindamxd/camerax-android/adaptive)
Your own site
<a href="https://agentmods.dev/skills/arindamxd/camerax-android/adaptive"><img src="https://agentmods.dev/badge/skills/arindamxd/camerax-android/adaptive/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 adaptive

Your own site · 80×15
<a href="https://agentmods.dev/skills/arindamxd/camerax-android/adaptive"><img src="https://agentmods.dev/badge/skills/arindamxd/camerax-android/adaptive.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,793 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.
Origin 100% copy Near-identical to another mod 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.00117 $0.02793
Opus 5.5 $0.00047 $0.01117
Sonnet 5.5 $0.00023 $0.00559
Haiku 4.5 $0.00012 $0.00279

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

Security

Grade A, and why

adaptive 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 2mo 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.

Origin

This is a copy

100% identical to adaptive — 299 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/adaptive/SKILL.md · 266 lines

How it starts

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

Prerequisites

The app must:

  • Use Compose for all screens. If it's still using Fragments or Views, suggest using the XML to Compose skill to migrate those screens.
  • Use Jetpack Navigation 3. If it doesn't, suggest the Navigation 3 skill to migrate the app.

Workflow to make an app adaptive

To make an app adaptive, follow these steps or a subset of them adapting to the task.

  • Step 1: Verify current UI
  • Step 2: Make the navigation bar adaptive
  • Step 3: Add multi-pane layouts
  • Step 4: Make vertical lists adaptive by changing the number of columns
  • Step 5: Hide app bars when scrolling

Step 1. Verify current UI

Ensure that screenshot tests exist to verify the current UI on different form factors. If they don't exist, add the Compose Preview Screenshot Testing tool. Use the following annotation to create previews for all the major form factors. For example:

@Preview(name = "Phone", device = Devices.PHONE, showBackground = true)
@Preview(name = "Foldable", device = Devices.FOLDABLE, showBackground = true)
@Preview(name = "Tablet", device = Devices.TABLET, showBackground = true)
@Preview(name = "Desktop", device = Devices.DESKTOP, showBackground = true)
annotation class FormFactorPreviews

@PreviewTest
@FormFactorPreviews
@Composable
fun FeedScreenPreview() {
    SnippetsTheme {
        Box {
            Text("My Screen")
        }
    }
}
   

Step 2. Make the navigation bar adaptive

Bottom navigation bars are optimized for touch input when the user is holding a phone in portrait mode. On larger screen hand-held devices, like tablets and unfolded foldables, the navigation area must be accessible from the edge of the screen (navigation rail).

If you need to provide more screen space for the content, hide the navigation area. Examples of this include:

  • Hiding the navigation bar when the user scrolls down and showing it again when the user scrolls up. The assumption is that when the user is scrolling down, they are consuming content but when scrolling up they are trying to navigate away from that content.
  • Hiding the navigation area when its content is distracting. For example, in camera previews or when displaying a full-screen photo.

Read the full file on GitHub · 266 lines

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. 2mo ago First seen · 266 lines · 117 tokens per session scan A fe4a8667efcd

Subscribe to this mod's changes

adaptive is a skill published in the GitHub repository arindamxd/camerax-android (132 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 117 tokens to every session and 2,793 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to adaptive, differing in 299 lines, and is treated as a copy.

Related

adaptive compared with skills from other repositories

adaptive next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adaptivearindamxd/camerax-androidSkill1321mo agoApache-2.0A117Claude Code, Codex
sceneview-iossceneview/sceneviewSkill1.4kyesterdayApache-2.0A148Codex
sceneviewsceneview/sceneviewSkill1.4kyesterdayApache-2.0A156Codex
compose-animationschrisbanes/skillsSkill1.1kyesterdayApache-2.0A64Claude Code
compose-focus-navigationchrisbanes/skillsSkill1.1kyesterdayApache-2.0A41Claude Code
kotlin-androidericrisco/rsc-harnessSkill5032d agoMITA78Claude Code, Codex
compose-multiplatformericrisco/rsc-harnessSkill5032d agoMITA80Claude Code, Codex