Agent skill

Android Patterns

by hanamizuki in hanamizuki/solopreneur

A skill your agent uses when building Android apps with Jetpack Compose — covers @Preview setup (LocalInspectionMode, Vico charts), Scaffold + bottom nav + status bar insets, ModalBottomSheet…

MITAuto-check: notesMobile

Install Android Patterns

skills CLI
$ npx skills add hanamizuki/solopreneur --skill android-patterns -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install hanamizuki/solopreneur android-patterns --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/hanamizuki/solopreneur.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/android-dev/android-patterns .claude/skills/android-patterns && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
android-patterns
GitHub stars
152
Token cost
~557 tokens
SKILL.md length
201 words
Files
10 (incl. references)
Skills in repo
33
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when building Android apps with Jetpack Compose — covers @Preview setup (LocalInspectionMode, Vico charts), Scaffold + bottom nav + status bar insets, ModalBottomSheet…

  • Building Android apps with Jetpack Compose — covers @Preview setup (LocalInspectionMode
  • SKILL.md covers When to load which reference and How to use these patterns
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Scaffold + bottom nav + status bar insets

What it does

Android Patterns is an agent skill from hanamizuki/solopreneur. Use when building Android apps with Jetpack Compose — covers @Preview setup (LocalInspectionMode, Vico charts), Scaffold + bottom nav + status bar insets, ModalBottomSheet nested-scroll jitter, ripple clipping on rounded corners, SwipeToDismissBox with transparent content, and locale-aware date formatting (MIUI quirks).

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including reference files (for example `references/bottomsheet-scroll.md`, `references/compose-preview-charts.md` and `references/compose-preview-debugging.md`).

It sits in Mobile, covering Android development. It works with Android and Jetpack Compose. The repository describes itself as: Skills and agents for solopreneurs — ship, review, debug, and think through problems with AI. The licence is MIT.

When your agent uses it

  • Building Android apps with Jetpack Compose — covers @Preview setup (LocalInspectionMode
  • Scaffold + bottom nav + status bar insets
  • ModalBottomSheet nested-scroll jitter
  • Ripple clipping on rounded corners

Example prompts

  • “/android-patterns”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash, Grep, Glob

What it can do on your machine

Read from SKILL.md and the folder at commit f43f001. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Bash
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Android Patterns loads about 557 tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 85 tokens; SKILL.md has 201 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~85
When it runs · the whole SKILL.md, loaded when a task matches
~557
With references · SKILL.md plus every file in references/, read only if the agent opens them
~15k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Edit, Bash, Grep, Glob

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from hanamizuki/solopreneur at commit f43f001, republished under its MIT licence (© hanamizuki). 201 words, ~557 tokens.

Download SKILL.mdSave it as .claude/skills/android-patterns/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
android-patterns
description
Use when building Android apps with Jetpack Compose — covers @Preview setup (LocalInspectionMode, Vico charts), Scaffold + bottom nav + status bar insets, ModalBottomSheet nested-scroll jitter, ripple clipping on rounded corners, SwipeToDismissBox with transparent content, and locale-aware date formatting (MIUI quirks).
allowed-tools
Read, Write, Edit, Bash, Grep, Glob

Android / Jetpack Compose Patterns

A curated collection of non-obvious patterns that solve recurring issues in Jetpack Compose apps. Each reference is self-contained — load only the one(s) relevant to the task.

When to load which reference

Decide by the symptom or the task at hand, then read the matching reference before writing code.

Task / SymptomReference
Writing a new @Preview, preview is blank, or any preview questionreferences/compose-preview-overview.md — start here (it branches to solutions/debugging/charts)
Preview involves Vico charts, CartesianChartModelProducer, or complex chart logicreferences/compose-preview-charts.md
Designing Scaffold + BottomNavigationBar + TopAppBar with edge-to-edge / status barreferences/scaffold-bottom-nav.md
Content inside ModalBottomSheet jitters when scrolled to topreferences/bottomsheet-scroll.md
Ripple on a rounded/shaped clickable is rectangular or spills past cornersreferences/compose-ripple-clipping.md
SwipeToDismissBox — background indicator bleeds through semi-transparent contentreferences/swipe-to-dismiss-transparent.md
Displaying user-facing dates across locales (MM/DD vs DD/MM, MIUI locale quirks, i18n)references/date-format-localization.md

How to use these patterns

These references describe patterns, not project-specific conventions. Examples use AppTheme and generic identifiers — substitute the host project's theme (MojoTheme, YourAppTheme, etc.) and domain types when applying. The principles transfer directly.

If the host project already has an established pattern that contradicts a reference, follow the host project. Use these references for greenfield code or when a known issue matches the described symptom.

© hanamizuki, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files (references) in skills/android-dev/android-patterns of hanamizuki/solopreneur.

  • SKILL.md
  • references/bottomsheet-scroll.md
  • references/compose-preview-charts.md
  • references/compose-preview-debugging.md
  • references/compose-preview-overview.md
  • references/compose-preview-solutions.md
  • references/compose-ripple-clipping.md
  • references/date-format-localization.md
  • references/scaffold-bottom-nav.md
  • references/swipe-to-dismiss-transparent.md

Open the folder on GitHubat commit f43f001

Compare with similar skills

Android Patterns next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Android Patterns compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Android Patterns this skillhanamizuki/solopreneur152—~557Automated safety check: NotesMIT
Compose Multiplatform Patternsmonta-app/ocpp-emulator1795 repos~2kAutomated safety check: PassApache-2.0
Android Developmentdpconde/claude-android-skill336—~1.7kAutomated safety check: PassMIT
Stylesarindamxd/camerax-android1324 repos~2.3kAutomated safety check: PassApache-2.0
Benchmarkandroidx/androidx6.1k—~1.1kAutomated safety check: PassApache-2.0
Mobile Android Designopenvetta/open-vetta2903 repos~950Automated safety check: PassApache-2.0

Similar skills

  • Compose Multiplatform Patterns

    monta-app/ocpp-emulator

    Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.

    179 GitHub starsUsed in 5 repos~2k tokens
    MobileAuto-check passed
  • Android Development

    dpconde/claude-android-skill

    Create production-quality Android applications following Google's official architecture guidance and NowInAndroid best practices.

    336 GitHub stars~1.7k tokensUpdated 10 mo ago
    MobileAuto-check passed
  • Styles

    arindamxd/camerax-android

    A skill your agent uses to integrate the Jetpack Compose Styles API into an Android project.

    132 GitHub starsUsed in 4 repos~2.3k tokens
    MobileAuto-check passed
  • Benchmark

    androidx/androidx

    Benchmarking and improving the performance of Jetpack Compose.

    6.1k GitHub stars~1.1k tokensUpdated today
    MobileAuto-check passed
  • Mobile Android Design

    openvetta/open-vetta

    Master Material Design 3 and Jetpack Compose patterns for building native Android apps.

    290 GitHub starsUsed in 3 repos~950 tokens
    MobileAuto-check passed
  • Generating Baseline Profiles

    rosuH/EasyWatermark

    A skill your agent uses to generate and measure Jetpack Compose Baseline Profiles end-to-end with the AGP 8.2+ Baseline Profile Generator module and the Macrobenchmark harness.

    1.9k GitHub starsUsed in 1 repo~5k tokens
    MobileAuto-check passed

More from hanamizuki/solopreneur

All 33 skills in this repo
  • Preview

    hanamizuki/solopreneur

    Create an interactive HTML preview of any proposal, plan, idea, doc, brief, or spec and land it in the browsable local Preview Library by default (opens under file:// with a catalog sidebar and…

    152 GitHub stars~5.2k tokensUpdated 11 days ago
    Auto-check passed
  • iOS Patterns

    hanamizuki/solopreneur

    A skill your agent uses when building iOS/macOS apps with SwiftUI — covers localization (String Catalogs), date/time formatting, JSON date decoding, Previews, state management, sheet/navigation…

    152 GitHub stars~2.3k tokensUpdated 11 days ago
    Auto-check: notes
  • Linkedin Growth

    hanamizuki/solopreneur

    LinkedIn organic growth consultant — diagnoses profiles, discusses goals, and co-creates a personalized 90-day growth plan.

    152 GitHub stars~3.7k tokensUpdated 11 days ago
    Auto-check passed
  • Perspective

    hanamizuki/solopreneur

    Switch perspectives to think through problems using the mental models of ten iconic thinkers: Elon Musk, Richard Feynman, Charlie Munger, Naval Ravikant, Steve Jobs, Nassim Taleb, Ilya Sutskever…

    152 GitHub stars~971 tokensUpdated 11 days ago
    Auto-check passed
  • Slide Design

    hanamizuki/solopreneur

    Create brand-aware presentations using frontend-slides or reveal.js.

    152 GitHub stars~3.9k tokensUpdated 11 days ago
    Auto-check passed
  • X Growth

    hanamizuki/solopreneur

    X/Twitter growth consultant — diagnoses profiles, discusses goals, and co-creates a personalized growth plan.

    152 GitHub stars~3.8k tokensUpdated 11 days ago
    Auto-check passed

Categories

Questions about Android Patterns

What does Android Patterns do?

A skill your agent uses when building Android apps with Jetpack Compose — covers @Preview setup (LocalInspectionMode, Vico charts), Scaffold + bottom nav + status bar insets, ModalBottomSheet…. Android Patterns is an agent skill from hanamizuki/solopreneur. Use when building Android apps with Jetpack Compose — covers @Preview setup (LocalInspectionMode, Vico charts), Scaffold + bottom nav + status bar insets, ModalBottomSheet nested-scroll jitter, ripple clipping on rounded corners, SwipeToDismissBox with transparent content, and locale-aware date formatting (MIUI quirks).

When should I use Android Patterns?

Android Patterns fits situations like: building Android apps with Jetpack Compose — covers @Preview setup (LocalInspectionMode; scaffold + bottom nav + status bar insets; modalBottomSheet nested-scroll jitter; ripple clipping on rounded corners.

How do I install Android Patterns in Claude Code?

Run `npx skills add hanamizuki/solopreneur --skill android-patterns -a claude-code`. Or copy the skill folder (skills/android-dev/android-patterns in hanamizuki/solopreneur) into .claude/skills/android-patterns in your project. Claude Code loads it when a task matches its description.

How do I install Android Patterns in Codex?

Run `npx skills add hanamizuki/solopreneur --skill android-patterns -a codex`. Or copy the skill folder (skills/android-dev/android-patterns in hanamizuki/solopreneur) into .agents/skills/android-patterns in your project. Codex loads it when a task matches its description.

Can I use Android Patterns in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hanamizuki/solopreneur --skill android-patterns -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/android-patterns, .gemini/skills/android-patterns, .github/skills/android-patterns and .opencode/skills/android-patterns in your project.

What does Android Patterns need to run?

SKILL.md names no scripts, command-line tools or credentials: Android Patterns is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash, Grep, Glob.

Does Android Patterns access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Android Patterns safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Android Patterns use?

Android Patterns is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Android Patterns use?

About 557 tokens (SKILL.md is roughly 2.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 15k tokens, read only when the agent opens those files.

What are the alternatives to Android Patterns?

Skills that share tags, products or a category with Android Patterns: Compose Multiplatform Patterns (monta-app/ocpp-emulator, 179 stars), Android Development (dpconde/claude-android-skill, 336 stars), Styles (arindamxd/camerax-android, 132 stars) and Benchmark (androidx/androidx, 6.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Android Patterns?

hanamizuki (a GitHub user) maintains it in hanamizuki/solopreneur, which has 152 GitHub stars. The repository holds 33 skills in this directory. The repository was last updated on September 26, 2026.

Source: hanamizuki/solopreneur on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.