Using chrisbanes skills

From chrisbanes/skills · View interactive version

Using chrisbanes skills is an AI agent skill from the GitHub repository chrisbanes/skills. 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.

How to use this skill

Skill file

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.

  1. If one focused skill clearly matches, load it directly and stop routing.
  2. 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.

  1. Match each observed code signal to the table below.
  2. 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.

  1. 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 | CODE0 |

| Recomposition, stability, frame-rate reads, back-writing, or @ReadOnlyComposable | CODE1 |

| Component modifiers, caller placement, slots, or public content shape | CODE0 |

| Visibility, value, transition, content-swap, or other motion API choice | CODE0 |

| Keyboard, TV, D-pad, focus targets, custom traversal, or key events | CODE0 |

| Compose UI, screenshot, semantics, focus/key, or interaction-state tests | CODE0 |

| Coroutine ownership, raw Thread or Executor work, cancellation, Flow state/events, sharing, or replay | CODE2 |

| Kotlin classification, when, guards, exhaustiveness, smart casts, or null branches | CODE1 |

| Kotlin function ownership, domain types, expect/actual, or platform seams | CODE0 |

| Planned Gradle execution or a Gradle-centered warning/failure workflow | CODE0 |

| Comparing physical Android benchmark configurations, reversed rankings, or an Android default | CODE0 |

| Unreleased changelog maintenance or specified-release notes | CODE0 |

| Kotlin library release preparation, publication, or readiness | CODE0 |

| Behavior-preserving cleanup or a simplification review of changed code | CODE0 |

| One ready GitHub issue or in-chat task needs repository-aware planning | CODE0 |

| Explicit delivery of a named tracker issue and its descendants | CODE0 |

| Explicit setup, review, next-ticket execution or drain of a project board | CODE0 |

| Implementation of a local specification without a tracker issue | CODE0 in conversation mode, then CODE1 for one MR |

| Polling PRs/MRs, review comments, CI failures, or routine follow-up | CODE0 |

Combination boundaries

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.

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.

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.

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.

first. A nested predicate within one when branch is a

CODE0 decision. Add

CODE0 for the subsequent validation or for

an existing Gradle workflow.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.