nostr-addressable-event-dual-tag-query

nostr-addressable-event-dual-tag-query is a skill for Claude Code, Codex from divinevideo/divine-mobile. It costs 175 tokens per session (1,675 once invoked), scanned A, original, MPL-2.0.

A guide to querying activity related to Nostr addressable events, which are replaceable posts identified by an author, type, and label. It checks both event-ID references and address references so comments, reactions, reposts, or tips are found consistently.

In plain words
What is it for?
Use it when building comment, reaction, repost, or tip views for Nostr addressable posts or videos. It helps form queries that support both reference styles.
Why use it?
It removes the mismatch where an API reports engagement but the app's live query shows no related items. Different clients may reference the same addressable event in different ways.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents).

Good fit Use it when building comment, reaction, repost, or tip views for Nostr addressable posts or videos. It helps form queries that support both reference styles.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/divinevideo/divine-mobile/nostr-addressable-event-dual-tag-query
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 divinevideo/divine-mobile --skill nostr-addressable-event-dual-tag-query
Clone the repo
git clone --depth 1 https://github.com/divinevideo/divine-mobile

Made for: Claude Code, Codex.

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-addressable-event-dual-tag-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/divinevideo/divine-mobile/nostr-addressable-event-dual-tag-query/github.svg)](https://agentmods.dev/skills/divinevideo/divine-mobile/nostr-addressable-event-dual-tag-query)
Your own site
<a href="https://agentmods.dev/skills/divinevideo/divine-mobile/nostr-addressable-event-dual-tag-query"><img src="https://agentmods.dev/badge/skills/divinevideo/divine-mobile/nostr-addressable-event-dual-tag-query/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-addressable-event-dual-tag-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/divinevideo/divine-mobile/nostr-addressable-event-dual-tag-query"><img src="https://agentmods.dev/badge/skills/divinevideo/divine-mobile/nostr-addressable-event-dual-tag-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 175 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,675 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.00175 $0.01675
Opus 5 $0.00088 $0.00838
Sonnet 5 $0.00035 $0.00335
Haiku 4.5 $0.00017 $0.00168

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

Security

Grade A, and why

nostr-addressable-event-dual-tag-query 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.

.agents/skills/nostr-addressable-event-dual-tag-query/SKILL.md · 197 lines

How it starts

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

Nostr Addressable Event Dual-Tag Query

Problem

When querying related events (comments, reactions, reposts, zaps) for Nostr addressable events (Kind 30000-39999), the query returns fewer or zero results even though an indexing service shows the correct count. This happens because addressable events can be referenced two ways, and different clients use different methods.

Context / Trigger Conditions

Use this skill when:

  • Video/post shows comment count of 5, but comments modal says "No comments yet"
  • REST API (like Funnelcake) returns correct engagement counts, but WebSocket queries return empty
  • Working with NIP-22 comments (Kind 1111) on addressable events
  • Working with NIP-25 reactions (Kind 7) on addressable events
  • Working with NIP-18 reposts (Kind 6/16) on addressable events
  • Any feature querying events that reference Kind 30000-39999 events

Root Cause

For addressable events (Kind 30000-39999, like Kind 34236 videos), related events can reference the target using either:

  1. E tag: References by event ID (64-character hex)

    ["E", "abc123...def456", "", "author-pubkey"]
    
  2. A tag: References by addressable identifier (kind:pubkey:d-tag)

    ["A", "34236:abc123...def456:my-video-id", "", "author-pubkey"]
    

Different Nostr clients and indexers use different conventions:

  • Some always use E tags (event ID-based)
  • Some prefer A tags for addressable events (following NIP-22 strictly)
  • Some use both tags

If your app only queries by one tag type, you'll miss events tagged with the other.

Solution

1. Update Filter Class (if needed)

Ensure your Filter class supports uppercase A tag queries:

// In Filter class
List<String>? uppercaseA;  // Add this field

// In toJson()
if (uppercaseA != null) {
  data['#A'] = uppercaseA;
}

2. Query by BOTH Tags

When loading related events, run two parallel queries and merge results:

Future<List<Event>> loadRelatedEvents({
  required String eventId,
  required String? addressableId,  // Format: "kind:pubkey:d-tag"
}) async {
  // Query by E tag (event ID)
  final filterByE = Filter(
    kinds: [targetKind],
    uppercaseE: [eventId],
  );

  // If addressable ID available, also query by A tag
  if (addressableId != null && addressableId.isNotEmpty) {
    final filterByA = Filter(
      kinds: [targetKind],
      uppercaseA: [addressableId],
    );

    // Run both queries in parallel
    final results = await Future.wait([
      nostrClient.queryEvents([filterByE]),
      nostrClient.queryEvents([filterByA]),
    ]);

    // Merge and deduplicate by event ID
    final eventMap = <String, Event>{};
    for (final event in results[0]) {
      eventMap[event.id] = event;
    }
    for (final event in results[1]) {
      eventMap[event.id] = event;
    }

    return eventMap.values.toList();
  }

  return nostrClient.queryEvents([filterByE]);
}

Read the full file on GitHub · 197 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 · 197 lines · 175 tokens per session scan A 95c206a9f32b

Subscribe to this mod's changes

nostr-addressable-event-dual-tag-query is a skill published in the GitHub repository divinevideo/divine-mobile (264 stars, last pushed today), licensed MPL-2.0. It adds 175 tokens to every session and 1,675 once invoked, about $0.0009 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-09-03.

Related

Other skills, from other repositories

code-changes

Orchestration workflow for any task that ends in code changes: issue analysis, pull request review, feature implementation, bug fixes, refactors, or fleshing out an idea. MUST be invoked at the start of such a task, before reading or writing any code. Defines how to analyze first, gate on user approval, plan, pick the…

JanDeDobbeleer/oh-my-posh · 88 tokens

cross-environment-semantic-drift

L1 trigger - audits L1/L2 boundary bugs, precompile context assumptions, integer width mismatches at environment boundaries, and EVM-on-non-EVM drift.

PlamenTSV/plamen · 43 tokens

consensus-math-correctness

L1 trigger - audits consensus arithmetic for truncation, unused bounds, EMA direction, and threshold edge errors.

PlamenTSV/plamen · 30 tokens

alchemy-cli

Use the Alchemy CLI (@alchemy/cli) for live blockchain data, transaction lookups, NFT/token/portfolio queries, simulation, tracing/debugging, contract reads/writes, wallet-signed sends, swaps and cross-chain bridges, Solana RPC/DAS plus wallet sends, webhook management, and Alchemy app administration. Preferred…

alchemyplatform/skills · 166 tokens

finish-it

Get a stalled or sprawling game project to ship: diagnose the death loop, cut to the core, set a binary finish line.

kyh/vibedgames · 29 tokens

skmtc-debug

Diagnose failures in SKMTC sessions — no output, wrong output, error messages, bundle freshness, parseIssues, "Registered definition mismatch", ref cycles, "Module not found" in generated code, or any other broken behavior. Applies across both CLI usage and generator authoring contexts. Use this skill when the user…

skmtc/skmtc · 213 tokens