RIPDPI: Skill for Claude Code

.agents/skills/android-compose-patterns/SKILL.md

android-compose-patterns is a skill for Claude Code, Codex from po4yka/RIPDPI. It costs 52 tokens per session (1,507 once invoked), scanned A, original, BSD-3-Clause.

A guide to the project's conventions for Android Jetpack Compose, a Kotlin toolkit for building app screens. It covers screen structure, navigation, saved settings, and how screen state reaches the UI.

In plain words
What is it for?
Use it when adding or changing Compose screens, routes, ViewModels, settings flow, diagnostics UI, or screen actions.
Why use it?
Following the project's existing patterns avoids mixing incompatible ways of handling navigation, data, and user actions. It is meant for this app rather than general Compose questions.

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 po4yka/RIPDPI's own configuration. It tells Claude Code and Codex how to work on RIPDPI 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 RIPDPI configures →

Reuse

Borrowing it

Nothing to install: this file belongs to po4yka/RIPDPI. 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/po4yka/RIPDPI/main/.agents/skills/android-compose-patterns/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/po4yka/RIPDPI

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 android-compose-patterns

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/po4yka/ripdpi/android-compose-patterns"><img src="https://agentmods.dev/badge/skills/po4yka/ripdpi/android-compose-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,507 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 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.00052 $0.01507
Opus 5.5 $0.00021 $0.00603
Sonnet 5.5 $0.00010 $0.00301
Haiku 4.5 $0.00005 $0.00151

Measured yesterday against content hash 20a5e4d9ddcb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

android-compose-patterns 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 yesterday.

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/android-compose-patterns/SKILL.md · 122 lines

How it starts

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

Android Compose Patterns

Overview

RIPDPI uses Jetpack Compose with Material 3 and a sealed-class navigation system. State flows from DataStore through ViewModels to Composables via StateFlow + collectAsStateWithLifecycle().

Diagnostics UI is a current hotspot in this repo. It layers internal UI models over shared diagnostics contracts, exposes stable automation tags through RipDpiTestTags, and routes callback-style actions such as opening Advanced Settings or candidate-detail sheets through screen-level parameters.

Data Flow

DataStore (proto) -> ViewModel (StateFlow + combine) -> Composable (collectAsStateWithLifecycle)
User action -> ViewModel method -> DataStore.updateData { } or ServiceManager.start/stop
One-shot effects -> Channel<Effect> -> receiveAsFlow() -> LaunchedEffect collector

Routes are defined as a sealed class in app/.../ui/navigation/Route.kt.

Adding a New Screen

  1. Add a @Serializable data object (or data class) to the Route sealed class with stableRoute, @StringRes titleRes, and an optional icon. Routes are type-safe; there are no route strings.
  2. If top-level: add it to Route.topLevel. Add it to Route.all and to stableRouteMatchers in RipDpiNavHost.kt.
  3. Register composable<Route.YourRoute> { ... }. RipDpiNavHost.kt is at the 1,000-line arch-health limit: put the route in a feature graph file such as ImportNavigation.kt or HistoryNavigation.kt in ui/navigation/.
  4. Navigate with the object: navController.navigate(Route.YourRoute) { launchSingleTop = true }.
  5. Update the two expectation maps in RipDpiNavHostLogicTest and the route list in scripts/guide/specs/ui-ux-audit.yaml; both have coverage tests.

Navigation Conventions

  • Use launchSingleTop = true for every navigation; add restoreState = true (with saveState on popUpTo) only for top-level tab switches
  • Bottom bar shows only for isTopLevelDestination() routes
  • Pass ViewModels to route composables, not raw state

Read the full file on GitHub · 122 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. yesterday First seen · 122 lines · 52 tokens per session scan A 20a5e4d9ddcb

Subscribe to this mod's changes

android-compose-patterns is a skill published in the GitHub repository po4yka/RIPDPI (85 stars, last pushed yesterday), licensed BSD-3-Clause. It adds 52 tokens to every session and 1,507 once invoked, about $0.0002 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-11-07.

Related

android-compose-patterns compared with skills from other repositories

android-compose-patterns next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
android-compose-patternspo4yka/RIPDPISkill85yesterdayBSD-3-ClauseA52Claude Code, Codex
solopi-aialipay/SoloPiSkill6.4k3d agoApache-2.0A82Codex
argent-react-native-app-workflowsoftware-mansion/argentSkill3.2ktodayApache-2.0A46Claude Code, Codex
analyzing-android-malware-with-apktoolmukul975/Anthropic-Cybersecurity-SkillsSkill36k2mo agoApache-2.0A84Claude Code
compose-multiplatformericrisco/rsc-harnessSkill5293d agoMITA80Claude Code, Codex
simvynpranshuchittora/simvynSkill44210d agoMITA63Codex
ios-slim-bindingsdotnet/maui-labsSkill235yesterdayMITA97Claude Code, Codex