amethyst: Skill for Claude Code

.claude/skills/compose-expert/SKILL.md

compose-expert is a skill for Claude Code from vitorpamplona/amethyst. It costs 0 tokens per session (2,224 once invoked), scanned A, original, MIT.

Guidance for building shared Compose Multiplatform user interfaces for Android and desktop apps. It covers reusable screens and components, state handling, Material 3 styling, custom icons, images, and ways to reduce unnecessary screen updates.

In plain words
What is it for?
Use it when creating or refactoring shared Compose components, managing loading and error states, adding custom icons, choosing shared versus platform code, or improving recomposition and list performance.
Why use it?
It helps decide which interface code can live in shared code and which parts must remain platform-specific. It also addresses common issues with UI state, performance, and consistent styling.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions AGENTS.md.

This is vitorpamplona/amethyst's own configuration. It tells Claude Code how to work on amethyst itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything amethyst configures →

About the project

Amethyst is an Android client for Nostr, a social network protocol that lets people control their own social activity and connections. People use it to read and publish Nostr content, follow accounts, and exchange encrypted direct messages from Android and other supported platforms. The catalogue add-ons support workflows for developing or operating the client.

vitorpamplona/amethyst · 1,620 stars · on GitHub · amethyst.social

Reuse

Borrowing it

Nothing to install: this file belongs to vitorpamplona/amethyst. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vitorpamplona/amethyst/main/.claude/skills/compose-expert/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/vitorpamplona/amethyst

Made for: Claude Code.

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 compose-expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/vitorpamplona/amethyst/compose-expert/github.svg)](https://agentmods.dev/skills/vitorpamplona/amethyst/compose-expert)
Your own site
<a href="https://agentmods.dev/skills/vitorpamplona/amethyst/compose-expert"><img src="https://agentmods.dev/badge/skills/vitorpamplona/amethyst/compose-expert/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 compose-expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/vitorpamplona/amethyst/compose-expert"><img src="https://agentmods.dev/badge/skills/vitorpamplona/amethyst/compose-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,224 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. Third-party audits
  • Socket pass 29 Sept 2026
  • Snyk pass 29 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00000 $0.02224
Opus 5.5 $0.00000 $0.00890
Sonnet 5.5 $0.00000 $0.00445
Haiku 4.5 $0.00000 $0.00222

Measured today against content hash 93ae8f5f92b7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

compose-expert 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 today.

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.

.claude/skills/compose-expert/SKILL.md · 145 lines

How it starts

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

compose-expert

Where shared Compose UI lives in Amethyst and the house rules for it. What goes in commons vs commonsUI vs a platform shim is in AGENTS.md ("Sharing Philosophy", "Feature Workflow") and commonsUI/ARCHITECTURE.md; this skill does not repeat it.

Delegate: Activity / manifest / flavors -> android-expert; Window, tray, menu bar -> desktop-expert; source-set placement, expect/actual, extracting an Android composable -> kotlin-multiplatform; feeds and Account state -> account-state; Flow and coroutine scopes -> kotlin-coroutines.

Where things live

All paths below are under commonsUI/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/.

What Where
Screens ui/screen/loggedIn/<feature>/ (and ui/screen/ for shared feed views)
Reusable components ui/components/ (catalog: references/shared-composables-catalog.md)
Feed scaffolding ui/feeds/ (RenderFeedContentState, RefresheableBox, FeedEmpty, LoadingFeed)
Note rendering ui/note/ (NoteCompose), rich text in ui/richtext/ + ui/components/RichTextViewer.kt
Theme ui/theme/ (AmethystColorScheme.kt palettes + ColorScheme.* tokens, ColorScheme.isLight, Shape.kt, Type.kt)
Window tiers ui/layouts/ScreenLayout.kt (ScreenLayoutSpec, LocalScreenLayout, FeedContentMaxWidth)
Shell + nav ui/app/AmethystApp.kt, ui/app/AppRoot.kt, ui/navigation/ (see below)
Platform ports for UI ui/platform/AppPlatform.kt (LocalAppPlatform), ui/components/PlatformPermission.kt
Icons icons/ (Amethyst glyph font) and icons/symbols/ (MaterialSymbols, AmethystIcons)
Robohash avatars robohash/ (CachedRobohash, RobohashAssembler, parts/)
Strings commonsUI/src/commonMain/composeResources/values/strings.xml -> Res.string.* (rules: AGENTS.md "Strings")

The Android app's AmethystTheme wrapper is still in amethyst/src/main/java/com/vitorpamplona/amethyst/ui/theme/Theme.kt; the palettes it applies are shared.

Read the full file on GitHub · 145 lines

Files

What ships with it

5 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. today Changed 93ae8f5f92b7
  2. 24d ago Changed · +7 lines bbccc4cc5e5a
  3. 25d ago Changed · -448 lines · -115 tokens per session 2e724d898487
  4. 1mo ago Changed · +7 lines · +17 tokens per session 406886fdd554
  5. 1mo ago Changed 2443f658c59d
  6. 2mo ago First seen · 579 lines · 98 tokens per session scan A 4c3e68fffcca

Subscribe to this mod's changes

compose-expert is a skill published in the GitHub repository vitorpamplona/amethyst (1,620 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,224 tokens. 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-30.

Related

compose-expert compared with skills from other repositories

compose-expert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
compose-expertvitorpamplona/amethystSkill1.6kyesterdayMITA0Claude Code
compose-component-designchrisbanes/skillsSkill1.1kyesterdayApache-2.0A41Claude Code
m3-expressiveahmed3elshaer/everything-claude-code-mobileSkill664mo agoMITA41Claude Code
liquid-glassahmed3elshaer/everything-claude-code-mobileSkill664mo agoMITA40Claude Code
accessibility-patternsahmed3elshaer/everything-claude-code-mobileSkill664mo agoMITA35Claude Code
design-uiThisIsSadeghi/KMPilotSkill553mo agoMITB22Claude Code
sceneviewsceneview/sceneviewSkill1.4kyesterdayApache-2.0A156Codex