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/read.sh
View on GitHub#!/bin/bash
# Read a specific dmail
# Usage: read.sh <dmail-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 1 ]; then
echo "Usage: $0 <dmail-did>"
exit 1
fi
DMAIL_DID="$1"
# Get full dmail list and filter for this one (list-dmail has full metadata)
DMAILS=$(npx @didcid/keymaster list-dmail 2>/dev/null)
DMAIL=$(echo "$DMAILS" | jq --arg did "$DMAIL_DID" '.[$did] // empty')
if [ -z "$DMAIL" ] || [ "$DMAIL" = "null" ]; then
# Try getting just the message content
MSG=$(npx @didcid/keymaster get-dmail "$DMAIL_DID" 2>/dev/null)
if [ -z "$MSG" ] || [ "$MSG" = "null" ]; then
echo "Error: Could not retrieve dmail $DMAIL_DID"
exit 1
fi
# Display minimal format (message only, no metadata)
echo "═══════════════════════════════════════════════════════════════"
echo "$MSG" | jq -r '
"To: \(.to | join(", "))",
(if .cc | length > 0 then "CC: \(.cc | join(", "))" else empty end),
"Subject: \(.subject)",
(if .reference != "" then "Re: \(.reference)" else empty end),
"═══════════════════════════════════════════════════════════════",
"",
.body
'
exit 0
fi
# Display formatted with full metadata
echo "$DMAIL" | jq -r '
"═══════════════════════════════════════════════════════════════",
"From: \(.sender // "Unknown")",
"To: \(.to | join(", "))",
(if .cc | length > 0 then "CC: \(.cc | join(", "))" else empty end),
"Date: \(.date // "Unknown")",
"Subject: \(.message.subject)",
(if .message.reference != "" then "Re: \(.message.reference)" else empty end),
"Tags: \(.tags | join(", "))",
"═══════════════════════════════════════════════════════════════",
"",
.message.body,
""
'
# Show attachments if any
ATTACHMENTS=$(echo "$DMAIL" | jq -r '.attachments | keys | length')
if [ "$ATTACHMENTS" -gt 0 ]; then
echo "Attachments:"
echo "$DMAIL" | jq -r '.attachments | to_entries[] | " - \(.key)"'
fi
# Mark as read (remove unread tag, keep others)
CURRENT_TAGS=$(echo "$DMAIL" | jq -r '.tags | map(select(. != "unread")) | join(",")')
if [ -n "$CURRENT_TAGS" ]; then
npx @didcid/keymaster file-dmail "$DMAIL_DID" "$CURRENT_TAGS" >/dev/null 2>&1 || true
fi
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 |