Skip to main content
skill CX Codex

using-chrisbanes-skills — Claude Code skill: Kotlin and Compose

Reads a Kotlin or Jetpack Compose task and loads the right skill from the chrisbanes set. Useful when several concerns overlap in one change.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add chrisbanes/skills --skill using-chrisbanes-skills -a claude-code
Open on GitHub

What using-chrisbanes-skills does

The skill acts as a dispatcher. It reads the task, inspects the source, and decides which skill in the set owns the decision the code needs. If one focused skill matches, routing stops there.

Inside is a step-by-step procedure and a mapping table: a code signal on the left, the starting skill on the right. Combination boundaries are spelled out too, covering when a second skill joins the first. A flow delivery defect plus a separate catch-all over a sealed route, for instance, needs both kotlin-concurrency-and-flow and kotlin-control-flow.

Before a Compose skill loads, you need a concrete Compose API or composable in the inspected source, or an explicit request to create such code. A hypothetical UI consumer is not evidence, so without it the route stays in the Kotlin cluster even when the task mentions UI, routes, or navigation.

What it helps with

  • pick the right skill from the set for a given task
  • separate overlapping Kotlin and Compose concerns in one change
  • avoid loading adjacent skills speculatively
  • decide when a second skill is actually needed
  • give every material concern one focused owner

Example prompts for the agent

  • Route this Kotlin task and tell me which skills to load
  • We have a flow delivery defect and a catch-all over a sealed route — which skills apply?
  • Here are Android benchmark reports and a config decision — where do I start?

How to install using-chrisbanes-skills

1Skills CLI (Vercel)

npx skills add chrisbanes/skills --skill using-chrisbanes-skills -a claude-code

2Manually: put the files in place

~/.claude/skills/using-chrisbanes-skills/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/using-chrisbanes-skills/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about using-chrisbanes-skills

How do I install using-chrisbanes-skills in Claude?

Run npx skills add chrisbanes/skills --skill using-chrisbanes-skills -a claude-code. The skill lands at ~/.claude/skills/using-chrisbanes-skills/SKILL.md.

What does using-chrisbanes-skills do?

It routes Kotlin and Jetpack Compose work: it works out which skill in the chrisbanes set owns the decision in the code and loads it before any advice or edits.

When does a second skill get added?

Only when it owns an independent decision in the same change. Adjacent skills are not loaded speculatively.

Source text

SKILL.md · Apache-2.0
---
name: using-chrisbanes-skills
description: Use when routing Kotlin or Jetpack Compose work, or physical Android benchmark evidence that needs a configuration decision, especially when several Kotlin or Compose concerns overlap.
---

# Using chrisbanes skills

## Core principle

Route by the decision the code needs, not by the number of APIs mentioned.
Load one cluster when its shared procedure owns the concern; add a specialist
only when its independent behavior changes the same work.

## Routing procedure

1. Read the task. For Kotlin or Compose work, inspect the source that makes the
   concern concrete. For an Android benchmark comparison, inspect the supplied
   reports, configurations, and traces instead.
2. If one focused skill clearly matches, load it directly and stop routing.
3. Before loading a Compose skill, point to a concrete Compose API or composable
   in the inspected source, or to an explicit request to create or design
   Compose code. A hypothetical UI consumer is not evidence. If neither form
   of evidence exists, stay in the Kotlin cluster even when the task mentions
   UI, routes, or navigation.
4. Match each observed code signal to the table below.
5. Add a second skill only when it owns an independent decision in the same
   change; do not load adjacent skills speculatively. For example, a flow
   delivery defect plus a separate catch-all over a sealed route needs both
   `kotlin-concurrency-and-flow` and `kotlin-control-flow`. Load the latter
   because the branch mapping needs an explicit decision, including whether a
   data-bearing subtype's payload is used through a smart cast or deliberately
   discarded, not merely because a `when` appears in the file.
6. Finish routing when every material concern has one focused owner and those
   skills are loaded before advice or edits.

## Common routes

| Task signal | Start with |
|---|---|
| Evidenced Compose state, effects, screen ownership, or UI event collection | [`compose-state-and-effects`](../compose-state-and-effects/SKILL.md) |
| Recomposition, stability, frame-rate reads, back-writing, or `@ReadOnlyComposable` | [`compose-performance`](../compose-performance/SKILL.md) |
| Component modifiers, caller placement, slots, or public content shape | [`compose-component-design`](../compose-component-design/SKILL.md) |
| Visibility, value, transition, content-swap, or other motion API choice | [`compose-animations`](../compose-animations/SKILL.md) |
| Keyboard, TV, D-pad, focus targets, custom traversal, or key events | [`compose-focus-navigation`](../compose-focus-navigation/SKILL.md) |
| Compose UI, screenshot, semantics, focus/key, or interaction-state tests | [`compose-ui-testing-patterns`](../compose-ui-testing-patterns/SKILL.md) |
| Coroutine ownership, raw `Thread` or `Executor` work, cancellation, Flow state/events, sharing, or replay | [`kotlin-concurrency-and-flow`](../kotlin-concurrency-and-flow/SKILL.md) |
| Kotlin classification, `when`, guards, exhaustiveness, smart casts, or null branches | [`kotlin-control-flow`](../kotlin-control-flow/SKILL.md) |
| Kotlin function ownership, domain types, expect/actual, or platform seams | [`kotlin-api-design`](../kotlin-api-design/SKILL.md) |
| Planned Gradle execution or a Gradle-centered warning/failure workflow | [`gradle-run`](../gradle-run/SKILL.md) |
| Comparing physical Android benchmark configurations, reversed rankings, or an Android default | [`android-benchmark-comparison`](../android-benchmark-comparison/SKILL.md) |
| Kotlin library release preparation, publication, or readiness | [`release-kotlin-library`](../release-kotlin-library/SKILL.md) |
| One ready GitHub issue or in-chat task needs repository-aware planning | [`to-plan`](../to-plan/SKILL.md) |
| Polling PRs/MRs, review comments, CI failures, or routine follow-up | [`shepherd`](../shepherd/SKILL.md) |

## Combination boundaries

- Add [`kotlin-concurrency-and-flow`](../kotlin-concurrency-and-flow/SKILL.md)
  to Compose state work only when delivery, replay, sharing, or cancellation is
  a separate concern. Add state ownership or performance only when animation
  work changes that concern too.
- Pair focus navigation with UI testing when the task also needs a test shape.
  For a focus-aware `AnimatedContent` swap, load Compose animations as well:
  rendering each outgoing and incoming branch from its content-lambda target
  is a separate identity decision from focus timing and the interaction test.
- Add [`kotlin-control-flow`](../kotlin-control-flow/SKILL.md) when a Kotlin
  concern also has an independent branch decision, such as a catch-all over a
  sealed result that hides cases or branch payload. Plain route delivery with
  no separate branching issue does not need it. Do not add Compose without the
  evidence required in step 3.
- Encapsulating a Compose snapshot property behind a read-only public accessor
  remains one state-ownership decision. Do not add `kotlin-api-design` merely
  because the accessor is public; add it when the same change also needs a
  separate function-ownership, domain-type, compatibility, or platform-boundary
  decision.
- Load [`gradle-run`](../gradle-run/SKILL.md) only for planned Gradle execution
  or an existing Gradle workflow, not incidental Kotlin or Compose advice.

© chrisbanes · Apache-2.0 · chrisbanes/skills

Similar skills

Everything for Mobile →

From the same set18

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor