compose-new-screen

compose-new-screen is a skill for Claude Code, Codex from RoninForge/roninforge-kotlin-compose. It costs 50 tokens per session (1,016 once invoked), scanned A, original, MIT.

A recipe for creating a new screen in a Jetpack Compose Android app, the Android toolkit for building user interfaces with Kotlin code. It sets up the screen, its state, navigation route, view model, dependency injection, and previews.

In plain words
What is it for?
Use it when adding screens such as Profile, Settings, or Order Detail. It helps create the screen UI, state model, ViewModel, StateFlow data stream, type-safe navigation, Hilt injection, and Compose previews.
Why use it?
It removes the need to repeatedly design the supporting Kotlin structure for a Compose screen. It gives the screen a consistent way to load data, report errors, receive user actions, and navigate.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding screens such as Profile, Settings, or Order Detail. It helps create the screen UI, state model, ViewModel, StateFlow data stream, type-safe navigation, Hilt injection, and Compose previews.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roninforge/roninforge-kotlin-compose/compose-new-screen
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add RoninForge/roninforge-kotlin-compose --skill compose-new-screen
Clone the repo
git clone --depth 1 https://github.com/RoninForge/roninforge-kotlin-compose

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 compose-new-screen

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/roninforge/roninforge-kotlin-compose/compose-new-screen"><img src="https://agentmods.dev/badge/skills/roninforge/roninforge-kotlin-compose/compose-new-screen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,016 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.00050 $0.01016
Opus 5 $0.00025 $0.00508
Sonnet 5 $0.00010 $0.00203
Haiku 4.5 $0.00005 $0.00102

Measured 8d ago against content hash e852b2f59fde, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

compose-new-screen 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 8d 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.

skills/compose-new-screen/SKILL.md · 149 lines

How it starts

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

Scaffold Jetpack Compose Screen

When to Use

When creating a new screen (e.g. Profile, Settings, OrderDetail) in a Compose-based Android app.

Instructions

  1. Choose the route name and arguments. Define the route as a @Serializable data class or data object:

    @Serializable data class Profile(val userId: String)
    
  2. Define the UI state as a sealed interface:

    sealed interface ProfileUiState {
        data object Loading : ProfileUiState
        data class Success(val user: User) : ProfileUiState
        data class Error(val message: String) : ProfileUiState
    }
    
  3. Define intents (events from UI to ViewModel):

    sealed interface ProfileIntent {
        data object Refresh : ProfileIntent
    }
    
  4. Create the ViewModel:

    @HiltViewModel
    class ProfileViewModel @Inject constructor(
        private val repo: ProfileRepository,
        savedState: SavedStateHandle,
    ) : ViewModel() {
    
        private val args = savedState.toRoute<Profile>()
    
        val state: StateFlow<ProfileUiState> = repo.observeUser(args.userId)
            .map { ProfileUiState.Success(it) as ProfileUiState }
            .catch { emit(ProfileUiState.Error(it.message ?: "Unknown")) }
            .stateIn(
                scope = viewModelScope,
                started = SharingStarted.WhileSubscribed(5_000),
                initialValue = ProfileUiState.Loading,
            )
    
        fun onIntent(intent: ProfileIntent) {
            when (intent) {
                ProfileIntent.Refresh -> viewModelScope.launch { repo.refresh(args.userId) }
            }
        }
    }
    
  5. Create the stateful Route composable (requests the VM, collects state, delegates to Screen):

    @Composable
    fun ProfileRoute(vm: ProfileViewModel = hiltViewModel()) {
        val state by vm.state.collectAsStateWithLifecycle()
        ProfileScreen(state, onIntent = vm::onIntent)
    }
    
  6. Create the stateless Screen composable:

Read the full file on GitHub · 149 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. 8d ago First seen · 149 lines · 50 tokens per session scan A e852b2f59fde

Subscribe to this mod's changes

compose-new-screen is a skill published in the GitHub repository RoninForge/roninforge-kotlin-compose (1 stars, last pushed 3mo ago), licensed MIT. It adds 50 tokens to every session and 1,016 once invoked, about $0.0003 per session on Opus 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

e2e-testing

AI-powered E2E testing for any app — Flutter, React Native, iOS, Android, Electron, Tauri, KMP, .NET MAUI. Connects via MCP to running apps so the agent can take screenshots, tap elements, enter text, scroll, inspect UI trees, and verify state with natural language. Use when the user wants to test an app's UI…

ai-dashboad/flutter-skill · 107 tokens

tw-migrate

Analyze a Tailwind CSS v3 project and generate a complete migration plan to v4. Scans config, CSS, and template files for v3 patterns and produces a prioritized checklist with exact find-and-replace commands.

RoninForge/roninforge-tailwind-v4 · 48 tokens

tw-component

Generate a UI component using correct Tailwind CSS v4 utility classes, CSS variable theming, and accessibility best practices. Prevents v3 syntax hallucination by grounding output in verified v4 patterns.

RoninForge/roninforge-tailwind-v4 · 43 tokens

tw-validate

Scan a Tailwind CSS project for v3/v4 version mixing, deprecated patterns, and common mistakes. Reports issues with exact file locations and suggested fixes.

RoninForge/roninforge-tailwind-v4 · 35 tokens

truesheet-usage

Consumer-side guide for integrating @lodev09/react-native-true-sheet into a React Native app. Use this skill whenever the user wants to add, configure, control, or debug a bottom sheet using TrueSheet — including ref-based sheets, named global sheets, web support with TrueSheetProvider/useTrueSheet, React Navigation…

lodev09/react-native-true-sheet · 169 tokens

uniwind

Uniwind — Tailwind CSS v4 styling for React Native. Use when adding, building, or debugging components in a React Native project that uses Uniwind classNames. Covers setup, Metro config, global.css, theming, className props, accent- color props, platform/data/state/responsive variants, CSS variables, custom utilities…

uni-stack/uniwind · 130 tokens