Stream Docs
adrianhajdin/react-native-lingua
Search live Stream SDK documentation for Chat, Video, Feeds, and Moderation.
Fix silent data loss when mutating Nostr replaceable events (Kind 0 profile, Kind 3 contact/follow list, Kind 10002 relay list, etc.) in client apps.
$ npx skills add divinevideo/divine-mobile --skill nostr-replaceable-event-mutation-overwrite -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install divinevideo/divine-mobile nostr-replaceable-event-mutation-overwrite --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/nostr-replaceable-event-mutation-overwrite .claude/skills/nostr-replaceable-event-mutation-overwrite && rm -rf skills-srcUse ~/.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/
Install the "nostr-replaceable-event-mutation-overwrite" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/nostr-replaceable-event-mutation-overwrite into .claude/skills/nostr-replaceable-event-mutation-overwrite/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nostr-replaceable-event-mutation-overwrite", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/nostr-replaceable-event-mutation-overwriteType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add divinevideo/divine-mobile --skill nostr-replaceable-event-mutation-overwrite -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install divinevideo/divine-mobile nostr-replaceable-event-mutation-overwrite --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/nostr-replaceable-event-mutation-overwrite .agents/skills/nostr-replaceable-event-mutation-overwrite && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "nostr-replaceable-event-mutation-overwrite" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/nostr-replaceable-event-mutation-overwrite into .agents/skills/nostr-replaceable-event-mutation-overwrite/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nostr-replaceable-event-mutation-overwrite", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divinevideo/divine-mobile --skill nostr-replaceable-event-mutation-overwrite -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install divinevideo/divine-mobile nostr-replaceable-event-mutation-overwrite --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/nostr-replaceable-event-mutation-overwrite .cursor/skills/nostr-replaceable-event-mutation-overwrite && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "nostr-replaceable-event-mutation-overwrite" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/nostr-replaceable-event-mutation-overwrite into .cursor/skills/nostr-replaceable-event-mutation-overwrite/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nostr-replaceable-event-mutation-overwrite", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/divinevideo/divine-mobile.git --path .agents/skills/nostr-replaceable-event-mutation-overwrite--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add divinevideo/divine-mobile --skill nostr-replaceable-event-mutation-overwrite -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install divinevideo/divine-mobile nostr-replaceable-event-mutation-overwrite --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/nostr-replaceable-event-mutation-overwrite .gemini/skills/nostr-replaceable-event-mutation-overwrite && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "nostr-replaceable-event-mutation-overwrite" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/nostr-replaceable-event-mutation-overwrite into .gemini/skills/nostr-replaceable-event-mutation-overwrite/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nostr-replaceable-event-mutation-overwrite", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install divinevideo/divine-mobile nostr-replaceable-event-mutation-overwriteInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add divinevideo/divine-mobile --skill nostr-replaceable-event-mutation-overwrite -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/nostr-replaceable-event-mutation-overwrite .github/skills/nostr-replaceable-event-mutation-overwrite && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "nostr-replaceable-event-mutation-overwrite" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/nostr-replaceable-event-mutation-overwrite into .github/skills/nostr-replaceable-event-mutation-overwrite/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nostr-replaceable-event-mutation-overwrite", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add divinevideo/divine-mobile --skill nostr-replaceable-event-mutation-overwrite -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install divinevideo/divine-mobile nostr-replaceable-event-mutation-overwrite --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/divinevideo/divine-mobile.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/nostr-replaceable-event-mutation-overwrite .opencode/skills/nostr-replaceable-event-mutation-overwrite && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "nostr-replaceable-event-mutation-overwrite" agent skill from https://github.com/divinevideo/divine-mobile/tree/main/.agents/skills/nostr-replaceable-event-mutation-overwrite into .opencode/skills/nostr-replaceable-event-mutation-overwrite/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nostr-replaceable-event-mutation-overwrite", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
nostr-replaceable-event-mutation-overwriteFix silent data loss when mutating Nostr replaceable events (Kind 0 profile, Kind 3 contact/follow list, Kind 10002 relay list, etc.) in client apps.
Nostr Replaceable Event Mutation Overwrite is an agent skill from divinevideo/divine-mobile. Fix silent data loss when mutating Nostr replaceable events (Kind 0 profile, Kind 3 contact/follow list, Kind 10002 relay list, etc.) in client apps. Use when: (1) Following someone wipes the user's entire follow list, (2) Updating profile metadata loses existing fields, (3) Fresh browser session or mobile login causes data loss on first action, (4) Replaceable event mutation uses stale or null cached state. Root cause: Nostr replaceable events are full-replace (no partial update), so publishing based on…
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Mobile, covering Cross-platform mobile apps and Root cause analysis. It works with Flutter and React. The licence is MPL-2.0.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 4c622be. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Nostr Replaceable Event Mutation Overwrite loads about 1.9k tokens when it runs. Until then it costs about 187 tokens; SKILL.md has 631 words of instructions outside code blocks.
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.
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.
The full file from divinevideo/divine-mobile at commit 4c622be, republished under its MPL-2.0 licence (© divinevideo). 631 words, ~1,926 tokens.
.claude/skills/nostr-replaceable-event-mutation-overwrite/SKILL.md (or your agent's skills folder).Nostr replaceable events (Kind 0, 3, 10002, etc.) use a full-replace model: publishing a new event completely replaces the previous one. If a client publishes a mutation based on stale, incomplete, or null cached state, it silently overwrites the canonical version on relays, causing data loss. The most common case is follow list (Kind 3) wipes when a user follows someone before the client has loaded their existing contact list.
data is undefined when mutation fires (query still loading)Never rely solely on the UI's cached/query state. Fetch the latest version of the replaceable event directly from the relay inside the mutation function, before publishing:
// BAD: Relies on UI cache which may be null/stale
mutationFn: async ({ targetPubkey, currentContactList }) => {
const currentTags = currentContactList?.tags || []; // null -> [] -> data loss!
// ... publish with only the new follow
}
// GOOD: Fetches fresh from relay before mutating
mutationFn: async ({ targetPubkey, currentContactList }) => {
let bestContactList = currentContactList;
try {
const relayEvents = await nostr.query([
{ kinds: [3], authors: [userPubkey], limit: 1 },
], { signal: AbortSignal.timeout(5000) });
const relayContactList = relayEvents
.sort((a, b) => b.created_at - a.created_at)[0] || null;
if (relayContactList) {
// NIP-01 already fixes which copy of a replaceable event wins:
// the higher created_at, and on an exact tie the lower event id.
// Never compare tag counts — a shorter list is what a legitimate
// unfollow produces.
const passed = currentContactList;
const isNewer =
!passed ||
relayContactList.created_at > passed.created_at ||
(relayContactList.created_at === passed.created_at &&
relayContactList.id < passed.id);
if (isNewer) {
bestContactList = relayContactList;
}
}
} catch {
// The read failed. It cannot be told apart from "the relay holds
// nothing", so refuse to publish rather than replacing from a guess.
throw new Error('Could not confirm the current list. Please try again.');
}
if (!bestContactList) {
throw new Error('Could not load existing data. Please try again.');
}
// Now mutate bestContactList...
}Order the relay's version against the cached one by created_at, and on an exact tie by
the lower event id. That is the rule relays themselves apply, so it is the only choice
that converges.
Do not compare tag counts. "Use whichever has MORE data" looks safe and is not: the newer, authoritative list is shorter whenever the user removed someone, so preferring the longer copy silently resurrects every unfollow, unmuted account, or deleted relay — and republishes it. The heuristic cannot tell "this copy is stale" from "the user removed something", because those two produce the identical shape.
A source that carries no timestamp at all — a bare cached array, a derived REST index —
has unknowable freshness, not old freshness. It may seed an empty state, but it must lose
to any copy that can name a created_at.
Worked example, including the persistence migration that gives the local cache a timestamp to be ordered by: divinevideo/divine-mobile#8266.
If neither the relay fetch nor the UI cache provides data, throw an error instead of publishing an empty/minimal replaceable event. A user-friendly error message is always better than silent data loss.
Apply this pattern to ALL mutation directions (follow AND unfollow, add AND remove relay, update AND clear profile fields). The unfollow path is just as dangerous as follow.
Cold-start overwrite:
Cross-device removal — the case a tag-count heuristic passes and still corrupts:
p tags// Real-world fix from divine-web useFollowUser hook
export function useFollowUser() {
const { nostr } = useNostr();
return useMutation({
mutationFn: async ({ targetPubkey, currentContactList }) => {
// Step 1: Fetch fresh from relay
let bestContactList = currentContactList;
try {
const events = await nostr.query([
{ kinds: [3], authors: [user.pubkey], limit: 1 }
], { signal: AbortSignal.timeout(5000) });
const relayList = events.sort((a, b) => b.created_at - a.created_at)[0];
if (relayList) {
const relayFollows = relayList.tags.filter(t => t[0] === 'p').length;
const cachedFollows = currentContactList?.tags.filter(t => t[0] === 'p').length ?? 0;
if (relayFollows >= cachedFollows) bestContactList = relayList;
}
} catch { /* fall back to cached */ }
// Step 2: Refuse if no data
if (!bestContactList) throw new Error('Could not load follow list');
// Step 3: Mutate safely
const tags = [...bestContactList.tags, ['p', targetPubkey]];
return publishEvent({ kind: 3, tags, content: bestContactList.content });
}
});
}© 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
Just SKILL.md in .agents/skills/nostr-replaceable-event-mutation-overwrite of divinevideo/divine-mobile.
Open the folder on GitHubat commit 4c622be
Nostr Replaceable Event Mutation Overwrite 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Nostr Replaceable Event Mutation Overwrite this skilldivinevideo/divine-mobile | 266 | — | ~1.9k | Automated safety check: Pass | MPL-2.0 | |
| Stream Docsadrianhajdin/react-native-lingua | 151 | — | ~6.6k | Automated safety check: Pass | None | |
| Streamadrianhajdin/react-native-lingua | 151 | — | ~1.9k | Automated safety check: Pass | None | |
| Cloudbase Sites RuntimeTencentCloudBase/CloudBase-AI-Toolkit | 1.1k | — | ~5k | Automated safety check: Notes | MIT | |
| Sentry SDK Setupgetsentry/sentry-for-ai | 268 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Cometchat Flutter V6 Eventscometchat/cometchat-skills | 130 | — | ~1.5k | Automated safety check: Pass | MIT |
adrianhajdin/react-native-lingua
Search live Stream SDK documentation for Chat, Video, Feeds, and Moderation.
adrianhajdin/react-native-lingua
Stream router for Chat, Video, Feeds, and Moderation. An agent skill from adrianhajdin/react-native-lingua.
TencentCloudBase/CloudBase-AI-Toolkit
A skill your agent uses when the user wants to develop, run, preview, save, deploy, or roll back a CloudBase Web app in this conversation as a Lovable/Codex-Sites-like vibe- coding session — i.e.
getsentry/sentry-for-ai
Set up Sentry in any language or framework. An agent skill from getsentry/sentry-for-ai.
cometchat/cometchat-skills
React to CometChat activity in a Flutter app — SDK listeners (messages, calls, users, groups, connection) versus UI Kit events (CometChatMessageEvents, CometChatGroupEvents, CometChatUserEvents…
ericrisco/rsc-harness
A skill your agent uses when shipping a React Native app with Expo — EAS Build/Submit/Update, eas.json profiles and channels, config plugins, prebuild/CNG, runtime-version policy, OTA updates that…
divinevideo/divine-mobile
Fix ArgoCD ExternalSecret deployment failing with "namespace X is not permitted in project Y".
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.
divinevideo/divine-mobile
Fix "Null check operator used on a null value" errors when an object is set to null during an async await.
divinevideo/divine-mobile
Add custom metadata headers (x-amz-meta-) to AWS v4 signed requests for GCS S3-compatible API.
divinevideo/divine-mobile
Fix password/secret authentication failures caused by trailing newlines when creating Google Cloud secrets (or similar) with bash here-strings.
divinevideo/divine-mobile
Fix silent video/media processing failures caused by URL extraction code that filters on file extensions (.mp4, .webm, .webp).
Categories
Fix silent data loss when mutating Nostr replaceable events (Kind 0 profile, Kind 3 contact/follow list, Kind 10002 relay list, etc.) in client apps. Nostr Replaceable Event Mutation Overwrite is an agent skill from divinevideo/divine-mobile.) in client apps.
Nostr Replaceable Event Mutation Overwrite fits situations like: following someone wipes the users entire follow list; updating profile metadata loses existing fields; fresh browser session; mobile login causes data loss on first action.
Run `npx skills add divinevideo/divine-mobile --skill nostr-replaceable-event-mutation-overwrite -a claude-code`. Or copy the skill folder (.agents/skills/nostr-replaceable-event-mutation-overwrite in divinevideo/divine-mobile) into .claude/skills/nostr-replaceable-event-mutation-overwrite in your project. Claude Code loads it when a task matches its description.
Run `npx skills add divinevideo/divine-mobile --skill nostr-replaceable-event-mutation-overwrite -a codex`. Or copy the skill folder (.agents/skills/nostr-replaceable-event-mutation-overwrite in divinevideo/divine-mobile) into .agents/skills/nostr-replaceable-event-mutation-overwrite in your project. Codex loads it when a task matches its description.
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-replaceable-event-mutation-overwrite -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-replaceable-event-mutation-overwrite, .gemini/skills/nostr-replaceable-event-mutation-overwrite, .github/skills/nostr-replaceable-event-mutation-overwrite and .opencode/skills/nostr-replaceable-event-mutation-overwrite in your project.
SKILL.md names no scripts, command-line tools or credentials: Nostr Replaceable Event Mutation Overwrite is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
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.
Nostr Replaceable Event Mutation Overwrite 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.
About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Nostr Replaceable Event Mutation Overwrite: Stream Docs (adrianhajdin/react-native-lingua, 151 stars), Stream (adrianhajdin/react-native-lingua, 151 stars), Cloudbase Sites Runtime (TencentCloudBase/CloudBase-AI-Toolkit, 1.1k stars) and Sentry SDK Setup (getsentry/sentry-for-ai, 268 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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 8, 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.