agentleFS
koteitankoteitan/my-skills/skills/nostr/SKILL.md

nostr

Skill1 starsChanged 3 months agoMITView on GitHub

koteitan's Nostr hub — relay discovery (bootstrap → kind:10002 → kind:3 → fallback), NIP-19 bech32 encode/decode (naddr/nevent/npub, DIY, no nostr-tools), CLI relay debugging with websocat/nak, the standard web-app stack (TypeScript + Vite + rx-nostr + React), and a pointer to the ~/code/nostr-research survey of how real clients/relays behave (bootstrap relays, limit/rate-limit, NIP-11 limits). Use for any nostr task — building/fixing a nostr web client, making an naddr URL, checking which relay holds an event, or asking what other implementations do.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Match the surrounding file's existing method: If a bech32 helper or a relay-fetch pattern already exists in the file, reuse/extend it.

    line 23
  2. Distinctive:

    Only use kind:10002 for the relay list.

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

nostr

Everything for koteitan's nostr work. Read the reference file for the task at hand; each is self-contained.

TaskReference
New/existing nostr web app: stack, NIP-07, follow list, note fetchingreferences/project-stack.md
Which relays to read/write for a pubkey; incremental rendering rulereferences/relay-discovery.md
Build/parse naddr / nevent / npub / note / nprofilereferences/nip19.md
"Does relay X have event/tag Y for pubkey Z?" (CLI debugging)references/relay-query.md
How do other clients/relays actually do it? — bootstrap-relay choices per client, relay-software limit/rate-limit behavior, per-instance NIP-11 limitsreferences/research-repo.md → ~/code/nostr-research/

Standing rules (apply to all nostr work)

  1. Do NOT use nostr-tools (or other bech32 libs) for NIP-19 in project code — DIY the bech32, and keep decode symmetric with encode.
  2. Match the surrounding file's existing method. If a bech32 helper or a relay-fetch pattern already exists in the file, reuse/extend it.
  3. Render as data arrives — never block on EOSE.
  4. Only use kind:10002 for the relay list; kind:3 is fallback only.
  5. Don't guess how other clients/relays behave, or what a relay's limits are — look it up in ~/code/nostr-research/ (see references/research-repo.md).

Relay sets (shared by all references)

Bootstrap / indexer relays:

wss://directory.yabu.me
wss://purplepag.es
wss://relay.nostr.band
wss://indexer.coracle.social

Fallback relays — if browser locale is ja:

wss://yabu.me                    wss://nostr.compile-error.net
wss://r.kojira.io                wss://relay-jp.nostr.wirednet.jp
wss://nrelay-jp.c-stellar.net    wss://nostream.ocha.one
wss://snowflare.cc

otherwise:

wss://relay.damus.io             wss://nostr-pub.wellorder.net
wss://offchain.pub               wss://relay.snort.social

Common kinds: 0 metadata, 1 note, 3 contacts, 10002 relay list, 30030 emoji sets.

Related (not part of this skill)

  • nostter-upstream-pr — the PR workflow for contributing to SnowCait/nostter.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.