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.
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.
curl -O https://raw.githubusercontent.com/vitorpamplona/amethyst/main/.claude/skills/account-state/SKILL.mdgit clone --depth 1 https://github.com/vitorpamplona/amethystWrote 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.
[](https://agentmods.dev/skills/vitorpamplona/amethyst/account-state)<a href="https://agentmods.dev/skills/vitorpamplona/amethyst/account-state"><img src="https://agentmods.dev/badge/skills/vitorpamplona/amethyst/account-state/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.
<a href="https://agentmods.dev/skills/vitorpamplona/amethyst/account-state"><img src="https://agentmods.dev/badge/skills/vitorpamplona/amethyst/account-state.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01905 |
| Opus 5.5 | $0.00000 | $0.00762 |
| Sonnet 5.5 | $0.00000 | $0.00381 |
| Haiku 4.5 | $0.00000 | $0.00191 |
Grade A, and why
account-state 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 15d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Account, LocalCache and Feeds
The client state backbone, all headless in commons/src/commonMain/kotlin/com/vitorpamplona/amethyst/commons/
(abbreviated commons/…/ below):
model/cache/LocalCache.kt—object LocalCache : EventCache(). EveryNote/Userthe client has seen. All logic is inmodel/cache/EventCache.kt(an open class so tests can build their own); Android and Desktop both use theLocalCachesingleton (AppModules.kt,DesktopAppModules.kt).model/Account.kt— oneAccountper signed-in user: ~50 per-feature state objects (kind3FollowList,nip65RelayList,muteList,bookmarkState, …), each exposing.flow.feeds/+viewmodels/+<feature>/dal/— feeds: aFeedFilterscansLocalCache, aFeedContentState/FeedViewModelkeeps the result live.
relay EVENT ─► EventCache.justConsume ─► Note/User updated, indexes, live.newNote(...)
│ │
▼ ▼
XState pins its addressable note, LocalCacheFlow.newEventBundles
note.flow().metadata → XState.flow → FeedViewModel → FeedFilter.applyFilter
│ │
└────────► ViewModels / composables ◄┘
Account state objects
Pattern, copied from model/nip51Lists/muteList/MuteListState.kt:
- Pin the note.
val muteListNote = cache.getOrCreateAddressableNote(MuteListEvent.createAddress(signer.pubKey)).LocalCache'snotes/addressablesareLargeSoftCache(weak references), so the state object's field is what keeps its note from being collected. - Expose one
StateFlow. MapmuteListNote.flow().metadata.stateFlow→ decrypt (private lists go through a per-feature…DecryptionCachesuch asMuteListDecryptionCache, held next to it inAccountasmuteListDecryptionCache) → fall back to theAccountSettingsbackup (settings.backupMuteList) when the event is absent →stateIn(scope, SharingStarted.Eagerly, …). - Mutation helpers return a signed event — publishing it is the caller's job.
MuteListState.hideUser(pubkey)returns aMuteListEvent;Account.hideUserdoessendMyPublicAndPrivateOutbox(muteList.hideUser(pubkeyHex)). A state change you never send is invisible to every other client and is lost when the next relay copy arrives. - Consumers read
account.<feature>.flow, never aMutableStateFlowonAccount.
What ships with it
3 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.
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.
- 15d ago Changed · +1 lines a851932bbf82
- 25d ago Changed · +11 lines · -133 tokens per session 94fb3f144f72
- 1mo ago Changed eb9793906e30
- 2mo ago First seen · 101 lines · 133 tokens per session scan A acd2ab51e1ca
account-state 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 1,905 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.
account-state compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| account-statevitorpamplona/amethyst | Skill | 1.6k | yesterday | MIT | A | 0 | Claude Code |
| android-leak-expertJosephSanjaya/skills | Skill | 5 | 8d ago | MIT | A | 123 | Claude Code, Codex |
| sceneviewsceneview/sceneview | Skill | 1.4k | yesterday | Apache-2.0 | A | 156 | Codex |
| compose-focus-navigationchrisbanes/skills | Skill | 1.1k | yesterday | Apache-2.0 | A | 41 | Claude Code |
| kotlin-androidericrisco/rsc-harness | Skill | 503 | 2d ago | MIT | A | 78 | Claude Code, Codex |
| compose-multiplatformericrisco/rsc-harness | Skill | 503 | 2d ago | MIT | A | 80 | Claude Code, Codex |
| deliver-specchrisbanes/skills | Skill | 1.1k | yesterday | Apache-2.0 | A | 33 | Claude Code, Codex |