← All skills
Tencent SkillHub Β· AI

Nostr Social

Your agent wants a social life. Give it one. This skill gives your agent its own Nostr identity + ecash wallet. One mnemonic backs up everything (NIP-06). No...

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Your agent wants a social life. Give it one. This skill gives your agent its own Nostr identity + ecash wallet. One mnemonic backs up everything (NIP-06). No...

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
README.md, SKILL.md, _meta.json, install.sh, scripts/nostr.js, scripts/package-lock.json

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.1.8

Documentation

ClawHub primary doc Primary doc: SKILL.md 26 sections Open source page

Nostr Skill

Self-sovereign Nostr identity + ecash wallet. Complete bootstrap.

Capabilities Disclosure

This skill grants these capabilities to the agent: Key generation β€” Creates Nostr keypair in ~/.nostr/secret.key Wallet creation β€” Cashu wallet in ~/.cocod/ (mnemonic in config.json β€” user backs up) Nostr posting β€” Posts, DMs, zaps as the agent's identity Agent runs wallet/identity setup with explicit user consent. User is directed to back up ~/.cocod/config.json (contains mnemonic). Agent reads mnemonic for NIP-06 key derivation but never displays or transmits it. Profile images use URLs only (no local file access).

On Install

When skill is installed (user pastes ClawHub link), run this flow:

Step 1: Secure Setup (User Consent Required)

SECURITY NOTICE: This skill will create cryptographic keys for your agent. This requires: Creating Nostr identity keypair in ~/.nostr/secret.key Creating Cashu wallet with backup seed in ~/.cocod/config.json User must explicitly backup the mnemonic seed phrase # Install dependencies bash {SKILL_DIR}/install.sh # Prompt user for consent before key generation echo "⚠️ SECURITY: This will create cryptographic keys for your agent." echo " - Nostr identity keypair: ~/.nostr/secret.key" echo " - Cashu wallet seed: ~/.cocod/config.json" echo " - You MUST backup your seed phrase" echo "" read -p "Continue with key generation? (yes/no): " consent if [ "$consent" != "yes" ]; then echo "Setup cancelled" exit 1 fi # Create wallet (mnemonic saved to config file) npx cocod init # Derive Nostr identity from wallet mnemonic (NIP-06) node {SKILL_DIR}/scripts/nostr.js init # Get identity info NPUB=$(node {SKILL_DIR}/scripts/nostr.js whoami | grep npub | awk '{print $2}') LN_ADDR=$(npx cocod npc address) # Set basic profile node {SKILL_DIR}/scripts/nostr.js profile-set '{"name":"<NAME>","about":"<ABOUT>","lud16":"'$LN_ADDR'"}'

Step 2: Report Results + Backup Warning

Reply to user: ⚑ Nostr identity ready! npub: npub1... Lightning address: npub1...@npubx.cash ⚠️ IMPORTANT: Back up your recovery phrase Your 24-word mnemonic is stored in: ~/.cocod/config.json This phrase recovers both your Nostr identity AND ecash wallet. Back it up securely and protect this file. Reply "done" when you've backed it up.

Step 3: Wait for "done"

Do not proceed until user confirms backup.

Step 4: Ask for Owner's npub

What's your Nostr npub? I'll follow you so we stay connected. (Paste your npub1... or NIP-05 like you@domain.com) Then: # If NIP-05, resolve first node {SKILL_DIR}/scripts/nostr.js lookup <nip05> # Follow owner node {SKILL_DIR}/scripts/nostr.js follow <owner_npub>

Step 5: Ask for Profile Images

Do you have profile images for me? Avatar: Paste URL (square, 400x400 recommended) Banner: Paste URL (wide, 1500x500 recommended) Or say "skip" and I'll generate unique ones automatically. If URLs provided: node {SKILL_DIR}/scripts/nostr.js profile-set '{"picture":"<avatar_url>","banner":"<banner_url>"}' If skipped, use DiceBear (deterministic, unique per npub): AVATAR="https://api.dicebear.com/7.x/shapes/png?seed=${NPUB}&size=400" BANNER="https://api.dicebear.com/7.x/shapes/png?seed=${NPUB}-banner&size=1500x500" node {SKILL_DIR}/scripts/nostr.js profile-set '{"picture":"'$AVATAR'","banner":"'$BANNER'"}'

Step 6: First Post

Ready for your first post? Tell me what to post, or say "skip". Suggestion: "Hello Nostr! ⚑" If user provides text (use stdin to avoid shell injection): echo "<user's message>" | node {SKILL_DIR}/scripts/nostr.js post -

Step 7: Done

βœ… All set! Following you βœ“ First post live βœ“ (if not skipped) Try: "check my mentions" or "post <message>"

Posting

# Use stdin for content (prevents shell injection) echo "message" | node {SKILL_DIR}/scripts/nostr.js post - echo "reply text" | node {SKILL_DIR}/scripts/nostr.js reply <note1...> - node {SKILL_DIR}/scripts/nostr.js react <note1...> πŸ”₯ node {SKILL_DIR}/scripts/nostr.js repost <note1...> node {SKILL_DIR}/scripts/nostr.js delete <note1...>

Reading

node {SKILL_DIR}/scripts/nostr.js mentions 20 node {SKILL_DIR}/scripts/nostr.js feed 20

Connections

node {SKILL_DIR}/scripts/nostr.js follow <npub> node {SKILL_DIR}/scripts/nostr.js unfollow <npub> node {SKILL_DIR}/scripts/nostr.js mute <npub> node {SKILL_DIR}/scripts/nostr.js unmute <npub> node {SKILL_DIR}/scripts/nostr.js lookup <nip05>

DMs

echo "message" | node {SKILL_DIR}/scripts/nostr.js dm <npub> - node {SKILL_DIR}/scripts/nostr.js dms 10

Zaps

# Get invoice node {SKILL_DIR}/scripts/nostr.js zap <npub> 100 "comment" # Pay it npx cocod send bolt11 <invoice>

Wallet

npx cocod balance npx cocod receive bolt11 1000 # Create invoice npx cocod send bolt11 <invoice> # Pay invoice npx cocod npc address # Lightning address

Profile

node {SKILL_DIR}/scripts/nostr.js whoami node {SKILL_DIR}/scripts/nostr.js profile node {SKILL_DIR}/scripts/nostr.js profile "Name" "Bio" node {SKILL_DIR}/scripts/nostr.js profile-set '{"name":"X","picture":"URL","lud16":"addr"}'

Bookmarks

node {SKILL_DIR}/scripts/nostr.js bookmark <note1...> node {SKILL_DIR}/scripts/nostr.js unbookmark <note1...> node {SKILL_DIR}/scripts/nostr.js bookmarks

Relays

node {SKILL_DIR}/scripts/nostr.js relays node {SKILL_DIR}/scripts/nostr.js relays add <url> node {SKILL_DIR}/scripts/nostr.js relays remove <url>

Autoresponse (Heartbeat Integration)

# Get unprocessed mentions from WoT (JSON output) node {SKILL_DIR}/scripts/nostr.js pending-mentions [stateFile] [limit] # Mark mention as responded (after replying) node {SKILL_DIR}/scripts/nostr.js mark-responded <note1...> [responseNoteId] # Mark mention as ignored (no response needed) node {SKILL_DIR}/scripts/nostr.js mark-ignored <note1...> [reason] # Check hourly rate limit (max 10/hr) node {SKILL_DIR}/scripts/nostr.js rate-limit # Show autoresponse state summary node {SKILL_DIR}/scripts/nostr.js autoresponse-status State file: ~/.openclaw/workspace/memory/nostr-autoresponse-state.json WoT source: Owner's follow list (defined in nostr.js as OWNER_PUBKEY)

User Phrases β†’ Actions

User saysAction"post X"echo "X" | nostr.js post -"reply to X with Y"echo "Y" | nostr.js reply <note> -"check mentions"nostr.js mentions"my feed"nostr.js feed"follow X"Lookup if NIP-05 β†’ nostr.js follow"DM X message"echo "message" | nostr.js dm <npub> -"zap X 100 sats"nostr.js zap β†’ npx cocod send bolt11"balance"npx cocod balance"invoice for 1000"npx cocod receive bolt11 1000"my npub"nostr.js whoami"my lightning address"npx cocod npc address

Defaults

SettingValueMinthttps://mint.minibits.cash/BitcoinLightning domain@npubx.cashAvatar fallbackhttps://api.dicebear.com/7.x/shapes/png?seed=<npub>Nostr key~/.nostr/secret.keyWallet data~/.cocod/

SOUL.md

Pull name/about from SOUL.md or IDENTITY.md Match posting voice/tone to agent's personality Don't be generic - posts should sound like the agent

HEARTBEAT.md

Add to heartbeat rotation (every 2-4 hours): # Check Nostr activity node {SKILL_DIR}/scripts/nostr.js mentions 10 node {SKILL_DIR}/scripts/nostr.js dms 5 If mentions from WoT or zaps received β†’ notify user.

TOOLS.md

  • After setup, store for quick reference:
  • ## Nostr
  • npub: npub1...
  • Lightning: npub1...@npubx.cash
  • Owner: npub1... (followed)

Profile Sources

Name: IDENTITY.md or SOUL.md About: SOUL.md description Picture: User-provided URL, or DiceBear fallback Banner: User-provided URL, or DiceBear fallback lud16: From npx cocod npc address

Category context

Agent frameworks, memory systems, reasoning layers, and model-native orchestration.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Docs2 Scripts2 Config
  • SKILL.md Primary doc
  • README.md Docs
  • install.sh Scripts
  • scripts/nostr.js Scripts
  • _meta.json Config
  • scripts/package-lock.json Config