amethyst: Skill for Claude Code

.claude/skills/event-store-semantics/SKILL.md

event-store-semantics is a skill for Claude Code from vitorpamplona/amethyst. It costs 167 tokens per session (5,243 once invoked), scanned A, original, MIT.

A behavioral specification for Quartz event stores, which save and retrieve Nostr events, including a reference implementation backed by SQLite, a small file-based database.

In plain words
What is it for?
Use it when implementing or reviewing an event store, checking another backend against SQLite behavior, answering filter-semantics questions, or updating the contract when store behavior changes.
Why use it?
It gives different storage backends a shared definition of correct filtering and query behavior, making mismatches easier to find and test.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

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,596 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/event-store-semantics/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 event-store-semantics

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/vitorpamplona/amethyst/event-store-semantics"><img src="https://agentmods.dev/badge/skills/vitorpamplona/amethyst/event-store-semantics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 167 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,243 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.00167 $0.05243
Opus 5 $0.00084 $0.02622
Sonnet 5 $0.00033 $0.01049
Haiku 4.5 $0.00017 $0.00524

Measured 9d ago against content hash d2fda7f68775, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

event-store-semantics 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 9d 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.

.claude/skills/event-store-semantics/SKILL.md · 326 lines

How it starts

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

Event Store Semantics — the IEventStore / SQLite-store contract

The SQLite EventStore (quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip01Core/store/sqlite/) is the de-facto reference implementation of what a Quartz event store must do. Other implementations — the in-repo filesystem store (nip01Core/store/fs/, held to parity by quartz/src/jvmTest/.../store/fs/FsParityTest.kt) and external engines (e.g. a Vespa-backed store) — reimplement its observable behavior and assert parity in CI. This skill states that behavior as named, numbered decisions so a parity divergence becomes a lookup, not an archaeology session through QueryBuilder/MergeQueryExecutor.

Every rule below was verified against the code as of this skill's last update. When you change store behavior, update the rule here in the same PR and add a line to the Semantics changelog — downstream implementations pin Quartz by commit and review pin bumps against this file.

Key files

Concern File
Public contract (KDoc is normative) nip01Core/store/IEventStore.kt
High-level store (owns pool + planner) sqlite/EventStore.kt, sqlite/SQLiteEventStore.kt
Filter → SQL, ordering, limits, counts sqlite/QueryBuilder.kt
k-way merge fast path (feed shapes) sqlite/MergeQueryExecutor.kt
Schema, tag hashing, immutability sqlite/EventIndexesModule.kt, sqlite/TagNameValueHasher.kt, sqlite/SeedModule.kt
Replaceable / addressable supersession sqlite/ReplaceableModule.kt, sqlite/AddressableModule.kt
NIP-09 / NIP-40 / NIP-62 / ephemeral sqlite/DeletionRequestModule.kt, sqlite/ExpirationModule.kt, sqlite/RightToVanishModule.kt, sqlite/EphemeralModule.kt
NIP-50 FTS sqlite/FullTextSearchModule.kt (see also the searchable-events skill)
Index/feature toggles sqlite/IndexingStrategy.kt (client default) and geode's RelayIndexingStrategy.kt (relay preset)
Operational README sqlite/README.md (concurrency, pragmas, maintenance)

Read the full file on GitHub · 326 lines

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. 9d ago First seen · 326 lines · 167 tokens per session scan A d2fda7f68775

Subscribe to this mod's changes

event-store-semantics is a skill published in the GitHub repository vitorpamplona/amethyst (1,596 stars, last pushed today), licensed MIT. It adds 167 tokens to every session and 5,243 once invoked, about $0.0008 per session on Opus 5. 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

Other skills, from other repositories

sqldelight-patterns

SQLDelight patterns for Kotlin Multiplatform - .sq file definitions, platform drivers, type adapters, migrations, and shared database access.

ahmed3elshaer/everything-claude-code-mobile · 34 tokens

room-patterns

Room database patterns for Android - entity definitions, DAO interfaces, Database class, migrations, TypeConverters, and Flow integration.

ahmed3elshaer/everything-claude-code-mobile · 28 tokens

offline-first-expert

Expert guidance for offline-first KMP and Android architectures using Store5, Room, SQLDelight, Ktor. Always trigger this skill when designing repositories, databases, caching, offline sync, Fetchers, SourceOfTruth, Updaters, Bookkeepers.

JosephSanjaya/skills · 57 tokens

sceneview-web

Build 3D and WebXR (AR/VR) experiences in the browser with SceneView for Web — Filament.js (WebGL2/WASM) wrapped in a Kotlin/JS DSL and a plain-JavaScript API on window.sceneview. Use whenever the user asks for "3D in the browser", "a web model viewer", "WebXR AR/VR", or any browser 3D/AR app where the dependency is…

sceneview/sceneview · 147 tokens

sceneview

Build 3D and AR apps with the SceneView SDK in Jetpack Compose, SwiftUI (iOS/macOS/visionOS via SceneViewSwift), Web (Filament.js), Flutter and React Native. Use whenever the user asks for "3D in Compose", "AR with ARCore in Compose", a model viewer, or any cross-platform 3D/AR app where the dependency is…

sceneview/sceneview · 156 tokens

to-plan

Use when one ready GitHub issue or an in-chat task needs a repository-aware implementation plan for a later implementation workflow.

chrisbanes/skills · 27 tokens