Agent skill

Nostr Addressable Event D Tag Requirement

by divinevideo in divinevideo/divine-mobile

Fix duplicate Nostr events (Kind 30000+ parameterized replaceable events) caused by missing d-tag.

MPL-2.0Auto-check passed

Install Nostr Addressable Event D Tag Requirement

skills CLI
$ npx skills add divinevideo/divine-mobile --skill nostr-addressable-event-d-tag-requirement -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install divinevideo/divine-mobile nostr-addressable-event-d-tag-requirement --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/nostr-addressable-event-d-tag-requirement .claude/skills/nostr-addressable-event-d-tag-requirement && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
nostr-addressable-event-d-tag-requirement
GitHub stars
266
Token cost
~1.1k tokens
SKILL.md length
339 words
Files
1
Skills in repo
103
Repo updated
First seen
Licence
MPL-2.0

At a glance

Fix duplicate Nostr events (Kind 30000+ parameterized replaceable events) caused by missing d-tag.

  • Works in 4 steps: Fetch all events for the pubkey: {… → Identify events without d-tags (these… → Publish NIP-09 deletion events (Kind 5)… → …
  • Same content appears multiple times on relay for same pubkey
  • SKILL.md covers Problem, Context / Trigger Conditions, Solution and Verification, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Nostr Addressable Event D Tag Requirement is an agent skill from divinevideo/divine-mobile. Fix duplicate Nostr events (Kind 30000+ parameterized replaceable events) caused by missing d-tag. Use when: (1) Same content appears multiple times on relay for same pubkey, (2) Events aren't being replaced/updated as expected, (3) Publishing NIP-71 video events (Kind 34236) or other addressable events and seeing duplicates. The d-tag is REQUIRED for addressability - without it, each publish creates a new non-replaceable event.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The licence is MPL-2.0.

When your agent uses it

  • Same content appears multiple times on relay for same pubkey
  • Events arent being replaced/updated as expected
  • Publishing NIP-71 video events (Kind 3423
  • Other addressable events and seeing duplicates

Example prompts

  • “/nostr-addressable-event-d-tag-requirement”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Fetch all events for the pubkey: { kinds: [34236], authors: [pubkey] }
  2. Identify events without d-tags (these are the duplicates)
  3. Publish NIP-09 deletion events (Kind 5) referencing the bad event IDs
  4. Republish with proper d-tags

What it can do on your machine

Read from SKILL.md and the folder at commit c3d6f7e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript and javascript).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Nostr Addressable Event D Tag Requirement loads about 1.1k tokens when it runs. Until then it costs about 119 tokens; SKILL.md has 339 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~119
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from divinevideo/divine-mobile at commit c3d6f7e, republished under its MPL-2.0 licence (© divinevideo). 339 words, ~1,137 tokens.

Download SKILL.mdSave it as .claude/skills/nostr-addressable-event-d-tag-requirement/SKILL.md (or your agent's skills folder).
name
nostr-addressable-event-d-tag-requirement
description
Fix duplicate Nostr events (Kind 30000+ parameterized replaceable events) caused by missing d-tag. Use when: (1) Same content appears multiple times on relay for same pubkey, (2) Events aren't being replaced/updated as expected, (3) Publishing NIP-71 video events (Kind 34236) or other addressable events and seeing duplicates. The d-tag is REQUIRED for addressability - without it, each publish creates a new non-replaceable event.
author
Claude Code
version
1.0.0
date
2026-01-29

Nostr Addressable Event d-tag Requirement

Problem

When publishing parameterized replaceable events (Kind 30000-39999, including NIP-71 video events Kind 34236), events appear as duplicates on the relay instead of replacing each other. The same content shows up multiple times for the same user.

Context / Trigger Conditions

  • Publishing Kind 30000+ events (parameterized replaceable events)
  • Same video/content appears multiple times in user's feed
  • Events have identical pubkey, kind, and content but different event IDs
  • Relay returns multiple events when you expect one
  • Using NIP-71 (Kind 34236) for video events
  • Using NIP-23 (Kind 30023) for long-form content
  • Any addressable event type showing duplicates

Solution

Root Cause

Parameterized replaceable events (Kind 30000-39999) require a d tag to be addressable. The combination of pubkey + kind + d-tag value forms the unique address. Without a d tag, the relay treats each event as a separate non-replaceable event.

Fix

Always include a d tag with a unique identifier for the content:

typescript
// CORRECT - has d tag, will be replaceable
const event = {
  kind: 34236, // NIP-71 video
  pubkey: userPubkey,
  content: "Video description",
  tags: [
    ["d", videoId],  // REQUIRED for addressability
    ["title", "My Video"],
    ["url", "https://..."],
    // ... other tags
  ]
};

// WRONG - missing d tag, creates new event each time
const badEvent = {
  kind: 34236,
  pubkey: userPubkey,
  content: "Video description",
  tags: [
    ["title", "My Video"],  // No d tag!
    ["url", "https://..."],
  ]
};
For NIP-71 Video Events

Use the video's unique identifier (vine_id, video_id, etc.) as the d-tag value:

typescript
tags.push(["d", video.id]);
Cleaning Up Existing Duplicates
  1. Fetch all events for the pubkey: { kinds: [34236], authors: [pubkey] }
  2. Identify events without d-tags (these are the duplicates)
  3. Publish NIP-09 deletion events (Kind 5) referencing the bad event IDs
  4. Republish with proper d-tags

Verification

After adding the d-tag:

  1. Publish the same content twice
  2. Query the relay for events with that pubkey+kind
  3. Should return only ONE event (the latest)
  4. Event ID will change but d-tag address remains constant
javascript
// Verify no duplicates
const events = await ndk.fetchEvents({ kinds: [34236], authors: [pubkey] });
const byDTag = new Map();
for (const e of events) {
  const d = e.tags.find(t => t[0] === 'd')?.[1];
  if (!byDTag.has(d)) byDTag.set(d, []);
  byDTag.get(d).push(e);
}
// Each d-tag value should have exactly 1 event
for (const [d, evts] of byDTag) {
  if (evts.length > 1) console.log(`Duplicate: d=${d} has ${evts.length} events`);
}

Example

Before fix - events without d-tag create duplicates:

Event 1: id=abc123, kind=34236, tags=[["title", "My Video"]]
Event 2: id=def456, kind=34236, tags=[["title", "My Video"]]  // Duplicate!

After fix - events with d-tag replace each other:

Event 1: id=abc123, kind=34236, tags=[["d", "video-001"], ["title", "My Video"]]
// Republishing same content...
Event 2: id=xyz789, kind=34236, tags=[["d", "video-001"], ["title", "My Video Updated"]]
// Event 1 is replaced, only Event 2 exists

Notes

  • The d-tag value should be stable across republishes (use content ID, not random)
  • Empty string ["d", ""] is valid but means only one event of that kind per pubkey
  • Regular replaceable events (Kind 0, 3, 10000-19999) don't need d-tag
  • This applies to ALL parameterized replaceable events, not just videos
  • Frontend caching may show old duplicates even after relay is cleaned - hard refresh

References

© divinevideo, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/nostr-addressable-event-d-tag-requirement of divinevideo/divine-mobile.

Open the folder on GitHubat commit c3d6f7e

Compare with similar skills

Nostr Addressable Event D Tag Requirement next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Nostr Addressable Event D Tag Requirement compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nostr Addressable Event D Tag Requirement this skilldivinevideo/divine-mobile266—~1.1kAutomated safety check: PassMPL-2.0
Tag Duplicate PRs Issuesopenclaw/openclaw392k—~4kAutomated safety check: PassMIT
Requirementsrizsotto/Bear6.5k—~2kAutomated safety check: PassGPL-3.0
Duplicate JSthedaviddias/Front-End-Checklist74k—~423Automated safety check: PassMIT
Aria Required Attrthedaviddias/Front-End-Checklist74k—~459Automated safety check: PassMIT
Aria Required Parentthedaviddias/Front-End-Checklist74k—~498Automated safety check: PassMIT

Similar skills

  • Tag Duplicate PRs Issues

    openclaw/openclaw

    Use gitcrawl to search duplicate OpenClaw PRs/issues, group related work in prtags, and sync duplicate state to GitHub.

    392k GitHub stars~4k tokensUpdated today
    Research & ScienceAuto-check passed
  • Requirements

    rizsotto/Bear

    Write, modify, or review a requirement file under docs/requirements -- pick the single owning file, keep the text contract-only, name IDs so they need no explanation, and verify cross-references and…

    6.5k GitHub stars~2k tokensUpdated 3 days ago
    Testing & QAAuto-check passed
  • Duplicate JS

    thedaviddias/Front-End-Checklist

    A skill your agent uses when auditing slow page loads, heavy assets, or rendering delays related to Remove duplicate JavaScript libraries.

    74k GitHub stars~423 tokensUpdated 5 days ago
    Frontend & DesignAuto-check passed
  • Aria Required Attr

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Include required ARIA attributes for roles.

    74k GitHub stars~459 tokensUpdated 5 days ago
    Frontend & DesignAuto-check passed
  • Aria Required Parent

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Ensure ARIA roles are contained by required parent roles.

    74k GitHub stars~498 tokensUpdated 5 days ago
    Frontend & DesignAuto-check passed
  • Address Feedback

    pydantic/pydantic-ai

    Official

    Find and address unresolved PR review comments for the current branch, then continue the canonical push, reply, reaction, and resolution workflow.

    21k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed

More from divinevideo/divine-mobile

All 103 skills in this repo
  • Fix ArgoCD ExternalSecret deployment failing with "namespace X is not permitted in project Y".

    266 GitHub stars~931 tokensUpdated today
    Auto-check passed
  • Art Direct

    divinevideo/divine-mobile

    Art direction for any content — reads text, PDF, Word, HTML, PPT, then proposes 2-3 creative directions with photography style, mood, and visual language.

    266 GitHub stars~4.8k tokensUpdated today
    Auto-check passed
  • Async Await Null Race Condition

    divinevideo/divine-mobile

    Fix "Null check operator used on a null value" errors when an object is set to null during an async await.

    266 GitHub stars~881 tokensUpdated today
    Auto-check passed
  • AWS V4 Signing Custom Headers Gcs

    divinevideo/divine-mobile

    Add custom metadata headers (x-amz-meta-) to AWS v4 signed requests for GCS S3-compatible API.

    266 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Bash Herestring Newline Secrets

    divinevideo/divine-mobile

    Fix password/secret authentication failures caused by trailing newlines when creating Google Cloud secrets (or similar) with bash here-strings.

    266 GitHub stars~791 tokensUpdated today
    Auto-check passed
  • Fix silent video/media processing failures caused by URL extraction code that filters on file extensions (.mp4, .webm, .webp).

    266 GitHub stars~1.1k tokensUpdated today
    Auto-check passed

Questions about Nostr Addressable Event D Tag Requirement

What does Nostr Addressable Event D Tag Requirement do?

Fix duplicate Nostr events (Kind 30000+ parameterized replaceable events) caused by missing d-tag. Nostr Addressable Event D Tag Requirement is an agent skill from divinevideo/divine-mobile. Fix duplicate Nostr events (Kind 30000+ parameterized replaceable events) caused by missing d-tag.

When should I use Nostr Addressable Event D Tag Requirement?

Nostr Addressable Event D Tag Requirement fits situations like: same content appears multiple times on relay for same pubkey; events arent being replaced/updated as expected; publishing NIP-71 video events (Kind 3423; other addressable events and seeing duplicates.

How do I install Nostr Addressable Event D Tag Requirement in Claude Code?

Run `npx skills add divinevideo/divine-mobile --skill nostr-addressable-event-d-tag-requirement -a claude-code`. Or copy the skill folder (.agents/skills/nostr-addressable-event-d-tag-requirement in divinevideo/divine-mobile) into .claude/skills/nostr-addressable-event-d-tag-requirement in your project. Claude Code loads it when a task matches its description.

How do I install Nostr Addressable Event D Tag Requirement in Codex?

Run `npx skills add divinevideo/divine-mobile --skill nostr-addressable-event-d-tag-requirement -a codex`. Or copy the skill folder (.agents/skills/nostr-addressable-event-d-tag-requirement in divinevideo/divine-mobile) into .agents/skills/nostr-addressable-event-d-tag-requirement in your project. Codex loads it when a task matches its description.

Can I use Nostr Addressable Event D Tag Requirement in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add divinevideo/divine-mobile --skill nostr-addressable-event-d-tag-requirement -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nostr-addressable-event-d-tag-requirement, .gemini/skills/nostr-addressable-event-d-tag-requirement, .github/skills/nostr-addressable-event-d-tag-requirement and .opencode/skills/nostr-addressable-event-d-tag-requirement in your project.

What does Nostr Addressable Event D Tag Requirement need to run?

SKILL.md names no scripts, command-line tools or credentials: Nostr Addressable Event D Tag Requirement is instructions for the agent only.

Does Nostr Addressable Event D Tag Requirement access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Nostr Addressable Event D Tag Requirement safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Nostr Addressable Event D Tag Requirement use?

Nostr Addressable Event D Tag Requirement is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nostr Addressable Event D Tag Requirement use?

About 1.1k tokens (SKILL.md is roughly 4.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Nostr Addressable Event D Tag Requirement?

Skills that share tags, products or a category with Nostr Addressable Event D Tag Requirement: Tag Duplicate PRs Issues (openclaw/openclaw, 392k stars), Requirements (rizsotto/Bear, 6.5k stars), Duplicate JS (thedaviddias/Front-End-Checklist, 74k stars) and Aria Required Attr (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nostr Addressable Event D Tag Requirement?

divinevideo (a GitHub organization) maintains it in divinevideo/divine-mobile, which has 266 GitHub stars. The repository holds 103 skills in this directory. The repository was last updated on October 10, 2026.

Source: divinevideo/divine-mobile on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.