ui-state-design

ui-state-design is a skill for Claude Code, Codex from GDvega/super-android-kotlin-firebase-skill. It costs 38 tokens per session (826 once invoked), scanned A, original, MIT.

A workflow for defining all important states an Android screen can show, such as loading, empty, content, error, offline, permission, and sensitive-data states. It connects those states to the app's real data sources and user actions.

In plain words
What is it for?
Use it before implementing or reviewing Compose UI, especially for network, Room, DataStore, Firebase, authentication, permission, and synchronization flows.
Why use it?
It prevents screens from handling only the successful case and leaving users without useful feedback or recovery options. It keeps state ownership in the existing ViewModel and data layers.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: $skill-name invocation.

Good fit Use it before implementing or reviewing Compose UI, especially for network, Room, DataStore, Firebase, authentication, permission, and synchronization flows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gdvega/super-android-kotlin-firebase-skill/ui-state-design
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 GDvega/super-android-kotlin-firebase-skill --skill ui-state-design
Clone the repo
git clone --depth 1 https://github.com/GDvega/super-android-kotlin-firebase-skill

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 ui-state-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/gdvega/super-android-kotlin-firebase-skill/ui-state-design/github.svg)](https://agentmods.dev/skills/gdvega/super-android-kotlin-firebase-skill/ui-state-design)
Your own site
<a href="https://agentmods.dev/skills/gdvega/super-android-kotlin-firebase-skill/ui-state-design"><img src="https://agentmods.dev/badge/skills/gdvega/super-android-kotlin-firebase-skill/ui-state-design/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 ui-state-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/gdvega/super-android-kotlin-firebase-skill/ui-state-design"><img src="https://agentmods.dev/badge/skills/gdvega/super-android-kotlin-firebase-skill/ui-state-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 826 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.00038 $0.00826
Opus 5 $0.00019 $0.00413
Sonnet 5 $0.00008 $0.00165
Haiku 4.5 $0.00004 $0.00083

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

Security

Grade A, and why

ui-state-design 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 10d 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/ui-state-design/SKILL.md · 113 lines

How it starts

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

Purpose

Make every important UI state intentional, testable and accessible.

When to use

  • Designing or reviewing loading, empty, content, error, offline or permission states.
  • Creating a screen state model before implementing Compose UI.
  • Improving AI-generated UI that only handles the happy path.
  • Connecting UI copy, affordances and tests to repository, network, Room, DataStore or Firebase behavior.

Inputs to inspect

  • Gate result from design-test-gate.
  • ViewModel state model and events.
  • Repository/network/local/Firebase result types.
  • Existing previews and tests.
  • Error, permission, offline, auth and sync behavior.
  • Accessibility labels and recovery actions.

Required workflow

  1. Confirm build/tests passed before redesigning states.
  2. Map the real state sources: local data, network, Firebase, permissions and user actions.
  3. Define visible states and transitions without changing data ownership.
  4. Design copy, actions and accessibility semantics for each state.
  5. Add or recommend previews and tests for critical states.
  6. Route implementation details to existing Compose, testing and data skills.

Rules

  • Do not invent states that the ViewModel or data layer cannot produce.
  • Do not hide errors behind generic messages when recovery matters.
  • Preserve ViewModel, repository, Firebase and navigation contracts.
  • Give offline and permission-denied states clear next actions.
  • Include sensitive-data handling in state design when the domain requires it.
  • Prefer explicit UI models over scattered nullable flags.

Local skills to invoke

  • jetpack-compose
  • testing
  • accessibility
  • room-datastore
  • networking-retrofit-ktor
  • firebase-core

External companion skills to use when installed

Do not assume these companion skills are installed. Prefer the local skills above first, then consult Companion Skills for install and verification commands.

  • aldefy/compose-skill — use for deeper Jetpack Compose, Material 3, design-to-code, theming or Compose architecture guidance.
  • skydoves/android-testing-skills — use for deeper Android or Compose UI testing, semantics, assertions or test workflow guidance.

Read the full file on GitHub · 113 lines

Files

What ships with it

2 files 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. 10d ago First seen · 113 lines · 38 tokens per session scan A 474da17aa3be

Subscribe to this mod's changes

ui-state-design is a skill published in the GitHub repository GDvega/super-android-kotlin-firebase-skill (2 stars, last pushed 2mo ago), licensed MIT. It adds 38 tokens to every session and 826 once invoked, about $0.0002 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

compose-component-design

Use when designing or reviewing reusable Jetpack Compose component APIs with modifier parameters, root layout placement, caller-provided variable content, primitive content parameters, optional content, or boolean shape flags.

chrisbanes/skills · 41 tokens

maui-accessibility

Improve MAUI accessibility. USE FOR: semantic labels, hints, headings, screen-reader focus/announcements, AutomationProperties, touch targets, decorative content, TalkBack/VoiceOver/Narrator checks. DO NOT USE FOR: general layout, automation-only tests, performance.

dotnet/maui-labs · 60 tokens

flutter-design-system

Enforce Design Language System adherence in Flutter. Use when implementing design tokens, preventing hardcoded colors/spacing, or building a DLS.

HoangNguyen0403/agent-skills-standard · 32 tokens

android-jetpack-compose-expert-v2

Android Jetpack Compose Expert workflow skill. Use this skill when the user needs Expert guidance for building modern Android UIs with Jetpack Compose, covering state management, navigation, performance, and Material Design 3 and the operator should preserve the upstream workflow, copied support files, and provenance…

diegosouzapw/awesome-omni-skills · 72 tokens

m3-expressive

Material 3 Expressive design patterns for Jetpack Compose - expressive theming, motion physics, shape morphing, typography emphasis, color emphasis, and all 28 expressive components.

TalissonVitorino/kmp-ios-skills · 41 tokens

liquid-glass

Apple Liquid Glass design patterns for SwiftUI iOS 26 - glass effects, morphing, containers, interactive glass, tinting, accessibility, and cross-platform glass design.

TalissonVitorino/kmp-ios-skills · 40 tokens