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.
Enforce the Compose guideline that every @Composable function must declare modifier: Modifier = Modifier as its first optional parameter and apply it to the root layout.
$ npx skills add r0adkll/Campfire --skill compose-modifier -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install r0adkll/Campfire compose-modifier --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/r0adkll/Campfire.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/compose-modifier .claude/skills/compose-modifier && rm -rf skills-srcUse ~/.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/
Install the "compose-modifier" agent skill from https://github.com/r0adkll/Campfire/tree/main/.claude/skills/compose-modifier into .claude/skills/compose-modifier/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compose-modifier", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/r0adkll/Campfire/tree/main/.claude/skills/compose-modifierType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add r0adkll/Campfire --skill compose-modifier -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install r0adkll/Campfire compose-modifier --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/r0adkll/Campfire.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/compose-modifier .agents/skills/compose-modifier && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "compose-modifier" agent skill from https://github.com/r0adkll/Campfire/tree/main/.claude/skills/compose-modifier into .agents/skills/compose-modifier/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compose-modifier", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add r0adkll/Campfire --skill compose-modifier -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install r0adkll/Campfire compose-modifier --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/r0adkll/Campfire.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/compose-modifier .cursor/skills/compose-modifier && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "compose-modifier" agent skill from https://github.com/r0adkll/Campfire/tree/main/.claude/skills/compose-modifier into .cursor/skills/compose-modifier/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compose-modifier", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/r0adkll/Campfire.git --path .claude/skills/compose-modifier--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add r0adkll/Campfire --skill compose-modifier -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install r0adkll/Campfire compose-modifier --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/r0adkll/Campfire.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/compose-modifier .gemini/skills/compose-modifier && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "compose-modifier" agent skill from https://github.com/r0adkll/Campfire/tree/main/.claude/skills/compose-modifier into .gemini/skills/compose-modifier/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compose-modifier", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install r0adkll/Campfire compose-modifierInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add r0adkll/Campfire --skill compose-modifier -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/r0adkll/Campfire.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/compose-modifier .github/skills/compose-modifier && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "compose-modifier" agent skill from https://github.com/r0adkll/Campfire/tree/main/.claude/skills/compose-modifier into .github/skills/compose-modifier/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compose-modifier", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add r0adkll/Campfire --skill compose-modifier -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install r0adkll/Campfire compose-modifier --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/r0adkll/Campfire.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/compose-modifier .opencode/skills/compose-modifier && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "compose-modifier" agent skill from https://github.com/r0adkll/Campfire/tree/main/.claude/skills/compose-modifier into .opencode/skills/compose-modifier/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "compose-modifier", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
compose-modifierEnforce the Compose guideline that every @Composable function must declare modifier: Modifier = Modifier as its first optional parameter and apply it to the root layout.
Compose Modifier is an agent skill from r0adkll/Campfire. Enforce the Compose guideline that every @Composable function must declare modifier: Modifier = Modifier as its first optional parameter and apply it to the root layout. Trigger when authoring or reviewing any @Composable function — including private / internal helpers extracted from a UI file.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Mobile. It works with Jetpack Compose. The repository describes itself as: A KMP Compose app for Audiobookshelf. The licence is GPL-3.0.
Read from SKILL.md and the folder at commit e52e0de. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
rgFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Compose Modifier loads about 1.2k tokens when it runs. Until then it costs about 81 tokens; SKILL.md has 424 words of instructions outside code blocks.
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.
The automated check found no risky patterns in SKILL.md.
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.
The full file from r0adkll/Campfire at commit e52e0de, republished under its GPL-3.0 licence (© r0adkll). 424 words, ~1,230 tokens.
.claude/skills/compose-modifier/SKILL.md (or your agent's skills folder).Every @Composable function (public, internal, OR private) MUST declare a modifier: Modifier = Modifier parameter and pipe it into the outermost layout element.
*Ui.kt into helpers and the helpers silently swallow caller intent.modifier is the first optional parameter: it follows all required ones and precedes the rest of the defaults.
@Composable
internal fun PodcastRow(
podcast: PodcastSearchResult, // required
onClick: () -> Unit, // required
modifier: Modifier = Modifier, // ← first default
shape: Shape = MaterialTheme.shapes.medium,
)Pipe modifier into the outermost layout. Chain local modifiers onto it (caller's modifications run first), don't .then(modifier) after locals.
@Composable
internal fun Section(
text: String,
modifier: Modifier = Modifier,
) {
Surface(
modifier = modifier.fillMaxWidth(), // caller first, ours after
shape = MaterialTheme.shapes.medium,
) { Text(text) }
}No modifier parameter at all. Most common offender — internal helpers like row composables, section headers, dialog bodies extracted from a screen UI.
// ❌ DON'T
@Composable
private fun ExplicitRow(enabled: Boolean, onToggle: (Boolean) -> Unit) { ... }Modifier not first among the defaults. Pushes future API additions to insert other defaults before it and breaks call-site stability.
// ❌ DON'T
@Composable
internal fun Row(
text: String,
shape: Shape = MaterialTheme.shapes.medium,
modifier: Modifier = Modifier,
)Local-first then .then(modifier). Caller's intent is overridden by the composable's hardcoded modifiers.
// ❌ DON'T
Surface(modifier = Modifier.fillMaxWidth().then(modifier)) { ... }Swallowed modifier. Param accepted but never applied — usually leftover from a refactor.
// ❌ DON'T
@Composable
internal fun Row(text: String, modifier: Modifier = Modifier) {
Surface(modifier = Modifier.fillMaxWidth()) { Text(text) } // <-- ignored modifier
}LazyListScope / LazyGridScope / BoxScope extension functions (e.g. LazyListScope.episodesSection(...), BoxScope.CenteredMessage(...)) — these aren't standalone composables; they emit items into an existing scope and have no single root layout to attach a modifier to. If you need per-item modification, plumb it explicitly through the children.@Composable () -> Unit — those are caller-supplied content, not functions you declare.@Preview composables — they don't take parameters from external callers, so a modifier param adds no value. (They should still be private or internal.)@Composable function — drop in modifier: Modifier = Modifier from the start.Modifier.testTag(...) on it. Future-you spends 30 seconds adding the parameter back; future-you will not remember why.modifier: Modifier = Modifier and apply it. Don't propagate the legacy shape when copy-pasting.Find non-conforming composables:
# Composables with no parameter list mentioning Modifier
rg -P --multiline-dotall \
'@Composable\s*\n(?:internal |private )?fun [A-Z]\w+\s*\([^)]*\)' \
--type kt \
-g '!*/build/*' \
-g '!*Preview*' \
| rg -v 'modifier:\s*Modifier'The add/composables/ and builder/composables/ directories under features/podcasts/ui/ carry the most violations as of the recent screen extractions — many helper rows, dialog bodies, and section composables were extracted without modifier params. Migrate as you touch them.
© r0adkll, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/compose-modifier of r0adkll/Campfire.
Open the folder on GitHubat commit e52e0de
Compose Modifier 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Compose Modifier this skillr0adkll/Campfire | 139 | — | ~1.2k | Automated safety check: Pass | GPL-3.0 | |
| Compose Multiplatform Patternsmonta-app/ocpp-emulator | 179 | 5 repos | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Stylesarindamxd/camerax-android | 132 | 4 repos | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| Compose UIMoustachauve/WLED-Android | 169 | 3 repos | ~676 | Automated safety check: Pass | Apache-2.0 | |
| Compose Animationschrisbanes/skills | 1.1k | — | ~1.1k | Automated safety check: Pass | Apache-2.0 | |
| Edge To Edgearindamxd/camerax-android | 132 | 5 repos | ~3.6k | Automated safety check: Pass | Apache-2.0 |
monta-app/ocpp-emulator
Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.
arindamxd/camerax-android
A skill your agent uses to integrate the Jetpack Compose Styles API into an Android project.
Moustachauve/WLED-Android
Best practices for building UI with Jetpack Compose, focusing on state hoisting, detailed performance optimizations, and theming.
chrisbanes/skills
A skill your agent uses when writing or reviewing Jetpack Compose motion: visibility enter/exit, animating one property toward a target, color or size transitions, multiple properties from one…
arindamxd/camerax-android
A skill your agent uses to migrate your Jetpack Compose app to add adaptive edge-to-edge support and troubleshoot common issues.
chrisbanes/skills
A skill your agent uses when writing or reviewing Jetpack Compose UI tests, screenshot tests or baseline-recording evidence, previews, semantics assertions, fake image loading, keyboard input, focus…
r0adkll/Campfire
Open, describe, and maintain pull requests in Campfire, especially stacks of dependent PRs (each branch built on the one before).
r0adkll/Campfire
Rules and reliable local tests for keeping Campfire's foss flavor F-Droid-compatible — a clean source scan (using scandelete, never scanignore) and a byte-for-byte reproducible build.
r0adkll/Campfire
Extract hardcoded user-facing string literals from a Jetpack Compose / Compose Multiplatform file into the owning module's composeResources/values/<modulestrings.xml, then replace each call site…
r0adkll/Campfire
Enforce the Campfire IconButton accessibility convention — every IconButton (and its derivatives) must be wrapped with IconButtonTooltip and given a localized action label.
r0adkll/Campfire
Enforce the Campfire pattern for feature modules to react to Audiobookshelf socket events.
r0adkll/Campfire
Campfire Compose UI conventions. An agent skill from r0adkll/Campfire.
Works with
Categories
Enforce the Compose guideline that every @Composable function must declare modifier: Modifier = Modifier as its first optional parameter and apply it to the root layout. Compose Modifier is an agent skill from r0adkll/Campfire. Enforce the Compose guideline that every @Composable function must declare modifier: Modifier = Modifier as its first optional parameter and apply it to the root layout.
Compose Modifier fits situations like: reviewing any @Composable function — including private / internal helpers extracted from a UI file.
Run `npx skills add r0adkll/Campfire --skill compose-modifier -a claude-code`. Or copy the skill folder (.claude/skills/compose-modifier in r0adkll/Campfire) into .claude/skills/compose-modifier in your project. Claude Code loads it when a task matches its description.
Run `npx skills add r0adkll/Campfire --skill compose-modifier -a codex`. Or copy the skill folder (.claude/skills/compose-modifier in r0adkll/Campfire) into .agents/skills/compose-modifier in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add r0adkll/Campfire --skill compose-modifier -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/compose-modifier, .gemini/skills/compose-modifier, .github/skills/compose-modifier and .opencode/skills/compose-modifier in your project.
Going by SKILL.md and its folder, Compose Modifier needs the command-line tools its instructions call (rg).
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.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Compose Modifier is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Compose Modifier: Compose Multiplatform Patterns (monta-app/ocpp-emulator, 179 stars), Styles (arindamxd/camerax-android, 132 stars), Compose UI (Moustachauve/WLED-Android, 169 stars) and Compose Animations (chrisbanes/skills, 1.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
r0adkll (a GitHub user) maintains it in r0adkll/Campfire, which has 139 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 6, 2026.
Source: r0adkll/Campfire on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.