LeoYeAI/agent-master-skills / skills/archon-keymaster
archon-keymaster
FlaggedCore Archon DID toolkit - identity management, verifiable credentials, encrypted messaging (dmail), Nostr integration, file encryption/signing, aliasing, authorization (challenge/response), groups, and cryptographic polls. Use for creating/managing DIDs, issuing/accepting verifiable credentials, sending encrypted messages between DIDs, deriving Nostr keypairs, encrypting/signing files, managing DID aliases, challenge/response authorization, managing DID groups, or running cryptographically verifiable polls. For vaults/backups see archon-vault; for ecash see archon-cashu.
scripts/messaging/send.sh
View on GitHub#!/bin/bash
# Send a dmail to one or more recipients
# Usage: send.sh <recipient-did> <subject> <body> [cc-did...]
set -e
# Load environment
if [ -f ~/.archon.env ]; then
source ~/.archon.env
fi
if [ -z "$ARCHON_WALLET_PATH" ]; then
echo "Error: ARCHON_WALLET_PATH not set in ~/.archon.env"
exit 1
fi
if [ $# -lt 3 ]; then
echo "Usage: $0 <recipient-did> <subject> <body> [cc-did...]"
echo "Example: $0 'did:cid:alice...' 'Hello' 'How are you?'"
exit 1
fi
RECIPIENT="$1"
SUBJECT="$2"
BODY="$3"
shift 3
# Build CC array from remaining arguments
CC_JSON="[]"
if [ $# -gt 0 ]; then
CC_JSON=$(printf '%s\n' "$@" | jq -R . | jq -s .)
fi
# Escape subject and body for JSON
SUBJECT_ESCAPED=$(echo "$SUBJECT" | jq -Rs . | sed 's/^"//;s/"$//')
BODY_ESCAPED=$(echo "$BODY" | jq -Rs .)
# Create temporary JSON file
TMPFILE=$(mktemp /tmp/dmail-XXXXXX.json)
trap "rm -f $TMPFILE" EXIT
cat > "$TMPFILE" << EOF
{
"to": ["$RECIPIENT"],
"cc": $CC_JSON,
"subject": "$SUBJECT_ESCAPED",
"body": $BODY_ESCAPED,
"reference": ""
}
EOF
# Create the dmail
echo "Creating dmail..." >&2
DMAIL_DID=$(npx @didcid/keymaster create-dmail "$TMPFILE")
echo "Created: $DMAIL_DID" >&2
# Send the dmail
echo "Sending..." >&2
NOTICE_DID=$(npx @didcid/keymaster send-dmail "$DMAIL_DID")
echo "Sent! Notice: $NOTICE_DID" >&2
# Tag as sent
npx @didcid/keymaster file-dmail "$DMAIL_DID" "sent" >/dev/null 2>&1
# Return the dmail DID
echo "$DMAIL_DID"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |