nostr-auth

nostr-auth is a skill for Claude Code from dyegolara/nostr-auth-agents. It costs 35 tokens per session (557 once invoked), scanned A, original, MIT.

A guide for completing Nostr sign-in, where a service verifies an identity through a signed challenge rather than a password.

In plain words
What is it for?
Use it to build, sign, and submit a Nostr authentication event when a site or API supplies a challenge.
Why use it?
It explains the authentication handshake and distinguishes signing in from publishing notes or making payments.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the nostr-auth plugin — 2 skills, 1 MCP server shipped together

Good fit Use it to build, sign, and submit a Nostr authentication event when a site or API supplies a challenge.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dyegolara/nostr-auth-agents/nostr-auth
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dyegolara/nostr-auth-agents --skill nostr-auth
Clone the repo
git clone --depth 1 https://github.com/dyegolara/nostr-auth-agents

Made for: Claude Code.

Or install nostr-auth, the plugin that ships this one along with the rest of its 2 skills, 1 MCP server.

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 nostr-auth

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dyegolara/nostr-auth-agents/nostr-auth"><img src="https://agentmods.dev/badge/skills/dyegolara/nostr-auth-agents/nostr-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 557 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.
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.00035 $0.00557
Opus 5 $0.00017 $0.00279
Sonnet 5 $0.00007 $0.00111
Haiku 4.5 $0.00003 $0.00056

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

Security

Grade A, and why

nostr-auth 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 11d 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.

contrib/anthropics/skills/nostr-auth/SKILL.md · 50 lines

How it starts

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

Nostr sign-in (NIP-07)

Use this skill when a service presents a Nostr sign-in challenge: a string or event template the client must sign to prove ownership of a Nostr identity. Nostr sign-in is an authentication handshake, not a payment or publishing flow.

Protocol

  1. Receive the challenge from the service, either as a free-form string or as an event template (kind, tags, content).
  2. Build or complete the event. The common shape is kind 22242 with a ["challenge", "<value>"] tag and optionally a ["relay", "<url>"] tag, empty content, created_at in unix seconds, and the signer's 32-byte hex pubkey (x coordinate of the secp256k1 point).
  3. Compute the NIP-01 id: sha256(JSON.stringify([0, pubkey, created_at, kind, tags, content])) as lowercase hex.
  4. Sign the raw 32-byte id with BIP-340 schnorr using the private key. Store the 64-byte signature as lowercase hex in event.sig.
  5. Submit the signed event to the service (JSON {"event": ...} to the callback, or the shape the service specifies). Interpret {"status":"OK"} as accepted authentication and {"status":"ERROR"} as rejected; obtain a fresh challenge before retrying.

Identity and safety

  • The signing key stays local and is never shared with the service; only the public key and signature leave the machine.
  • Prefer per-service derived keys so unrelated services cannot correlate the same identity across domains.
  • Inspect the destination URL and the event being signed before submitting a signature.
  • Beware requests to publish notes, follow relays, or "verify" by paying — those are outside the NIP-07 sign-in scope.
  • A consumed challenge is one-time only; do not replay it after a timeout without checking whether the service already counted it.

Failure handling

  • A malformed challenge or event template is a client input error; request a fresh challenge from the service.
  • Signature verification errors mean the wrong key or a tampered event; keep the key stable per domain so the service recognizes the returning user.

Read the full file on GitHub · 50 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. 11d ago First seen · 50 lines · 35 tokens per session scan A 37b81678a5d1

Subscribe to this mod's changes

nostr-auth is a skill published in the GitHub repository dyegolara/nostr-auth-agents (0 stars, last pushed 7d ago), licensed MIT. It adds 35 tokens to every session and 557 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

panews

Entry point for reading PANews cryptocurrency / blockchain news, market narratives, and Polymarket smart money leaderboards. Triggers: today's headlines, breaking news, trending rankings, article search, reading specific articles, browsing columns / series / community topics, industry events & conferences, event…

panewslab/skills · 80 tokens

panews-web-viewer

Read public PANews website pages as Markdown. Use for homepage, article-page, and column-page reads.

panewslab/skills · 27 tokens

defi-protocol-templates

Implement DeFi protocols with production-ready templates for staking, AMMs, governance, and flash loans. Use when building decentralized finance applications or smart contract protocols.

wshobson/agents · 38 tokens

nft-standards

Implement NFT standards (ERC-721, ERC-1155) with proper metadata handling, minting strategies, and marketplace integration. Use when creating NFT contracts, building NFT marketplaces, or implementing digital asset systems.

wshobson/agents · 48 tokens

web3-testing

Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.

wshobson/agents · 46 tokens

solidity-security

Master smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.

wshobson/agents · 38 tokens