amethyst: Skill for Claude Code

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

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

A guide to building desktop applications with Compose Multiplatform, a Kotlin toolkit for sharing user-interface code across operating systems.

In plain words
What is it for?
Use it for windows, system-tray menus, dialogs, keyboard shortcuts, desktop navigation, file pickers, drag-and-drop, and other desktop-only features.
Why use it?
It helps handle desktop-specific behavior and differences between macOS, Windows, and Linux without mixing those concerns into general shared code.

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/desktop-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 desktop-expert

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/vitorpamplona/amethyst/desktop-expert"><img src="https://agentmods.dev/badge/skills/vitorpamplona/amethyst/desktop-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,312 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
  • 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.02312
Opus 5.5 $0.00000 $0.00925
Sonnet 5.5 $0.00000 $0.00462
Haiku 4.5 $0.00000 $0.00231

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

Security

Grade A, and why

desktop-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/desktop-expert/SKILL.md · 114 lines

How it starts

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

Desktop (JVM shim)

desktopApp is a shim: it opens a window and renders the same AmethystApp Android renders. Screens, the navigation shell (bottom bar / rail / drawer, chosen by ScreenLayoutSpec) and the deck are shared UI in commonsUI — see AGENTS.md "Navigation Shell" and "Feature Workflow", and compose-expert. Never add a desktop-only screen or a desktop-specific navigation layout. Background: commons/plans/2026-09-27-one-ui-android-desktop.md, commons/plans/2026-10-09-legacy-desktop-retirement.md (the legacy desktop app is gone).

Where things live (desktopApp/src/jvmMain/kotlin/com/vitorpamplona/amethyst/desktop/)

File Role
app/AmethystDesktop.kt main(): macOS AWT properties, data dir, DesktopAppModules, the Window, the CompositionLocals (LocalAppPlatform, LocalNotePlatform, …) around AmethystApp. --publish-scheduled runs headless (OS timer publishing scheduled posts).
app/DesktopAppModules.kt The desktop graph (Android's AppModules minus phone-only parts).
app/DesktopAppRoot.kt AppRoot impl; jvmDestinations.
app/DesktopAppPlatform.kt AppPlatform (commonsUI ui/platform/); unoverridden members keep the default, which hides the feature.
app/DesktopNotePlatform.kt, DesktopRichTextPlatform.kt NotePlatform, RichTextPlatform (commonsUI).
app/DesktopAccountViewModelHost.kt, DesktopLocalCacheHost.kt, DesktopAppServices.kt AccountViewModelHost, LocalCacheHost, AppServices (commons).
app/DesktopMenuBar.kt DesktopNavigator, the Command enum, DesktopMenuBar, handleShortcut.
app/Legacy*Import.kt One-time import of the retired legacy app's accounts, deck, feeds, privacy lock.
platform/PlatformInfo.kt PlatformInfo.current / host, isMacOS, isWindows, isLinux, isGnome, isKde.
platform/SavedWindowBounds.kt Window position/size persisted to window-bounds.properties.
platform/WaylandDisplay.kt, platform/AppWindow.kt Native Wayland: WLToolkit picked in main() on a Wayland session (AMETHYST_X11=1 or the "Draw through XWayland" setting, display.properties, opts out); AppWindow is Compose's Window elsewhere and a Swing-drawn frame there. Open new top-level windows with AppWindow, never Window/ComposeDialog.
platform/DesktopUiScale.kt X11 at a fractional scale (Xft.dpi 120 = 125%, AMETHYST_SCALE by hand): AWT draws whole scales only, so AppWindow raises Compose's density by the rest. LocalDensity is then not AWT's scale: convert AWT window/event coordinates with awtPixelScale(component), and size AWT windows in AWT units.
account/, tor/, network/, service/, ui/media/ Account storage, Tor, HTTP, scheduled posts, video/audio players.
update/ Self-update: InstallChannel (how this copy was installed: DMG, Homebrew, MSI, zip, AppImage, tarball, .deb/.rpm, Flatpak), DesktopUpdateInstaller + UpdateHelperScripts (stage, then swap after quit), UpdateDownloader (SHA-256 checked). The checker is commons appupdate; dev runs need -Damethyst.update.devCheck=true.

Read the full file on GitHub · 114 lines

Files

What ships with it

4 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 44cb11893c82
  2. 7d ago Changed · +4 lines 1d8d6839ab45
  3. 15d ago Changed 79c5232b921b
  4. 20d ago Changed · +1 lines 387056311453
  5. 22d ago Changed · +1 lines 7081ca8fe5b6
  6. 23d ago Changed · +3 lines 618c8dd63086
  7. 24d ago Changed · +31 lines 43276726c817
  8. 25d ago Changed · -707 lines · -157 tokens per session 680f6615b617
  9. 28d ago Changed · +14 lines 0cf2b72bd44c
  10. 1mo ago First seen · 767 lines · 157 tokens per session scan A 98f358615978

Subscribe to this mod's changes

desktop-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,312 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

desktop-expert compared with skills from other repositories

desktop-expert next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
desktop-expertvitorpamplona/amethystSkill1.6kyesterdayMITA0Claude Code
compose-animationschrisbanes/skillsSkill1.1kyesterdayApache-2.0A64Claude Code
compose-focus-navigationchrisbanes/skillsSkill1.1kyesterdayApache-2.0A41Claude Code
kotlin-androidericrisco/rsc-harnessSkill5032d agoMITA78Claude Code, Codex
compose-multiplatformericrisco/rsc-harnessSkill5032d agoMITA80Claude Code, Codex
release-kotlin-librarychrisbanes/skillsSkill1.1kyesterdayApache-2.0A46Claude Code
using-chrisbanes-skillschrisbanes/skillsSkill1.1kyesterdayApache-2.0A38Claude Code