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/credentials/bind-credential.sh
View on GitHub#!/bin/bash
# Bind a credential to a subject DID (creates credential template)
set -e
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Usage: $0 <schema-did-or-alias> <subject-did-or-alias>"
echo ""
echo "Create a bound credential template for a subject"
echo "This creates a credential file that can be filled in and issued"
echo ""
echo "Examples:"
echo " $0 proof-of-human-schema alice"
echo " $0 did:cid:bagaaiera... did:cid:bagaaierb..."
echo ""
echo "Output: Saves bound credential JSON to <subject-did>.BOUND.json"
exit 1
fi
SCHEMA_DID=$1
SUBJECT_DID=$2
# Ensure environment is loaded
if [ -z "$ARCHON_PASSPHRASE" ]; then
if [ -f ~/.archon.env ]; then
source ~/.archon.env
else
echo "Error: ARCHON_PASSPHRASE not set. Run create-id.sh first."
exit 1
fi
fi
# Set wallet path
if [ -z "$ARCHON_WALLET_PATH" ]; then
echo "Error: ARCHON_WALLET_PATH not set in ~/.archon.env"
exit 1
fi
# Resolve subject DID to get actual DID (in case it's an alias)
SUBJECT_RESOLVED=$(npx @didcid/keymaster get-alias "$SUBJECT_DID" 2>/dev/null || echo "$SUBJECT_DID")
# Bind credential
echo "Binding credential for subject $SUBJECT_DID using schema $SCHEMA_DID..."
# Generate output filename based on subject DID
SUBJECT_SHORT=$(echo "$SUBJECT_RESOLVED" | sed 's/did:cid://')
OUTPUT_FILE="${SUBJECT_SHORT}.BOUND.json"
# Run bind command and save to file
npx @didcid/keymaster bind-credential "$SCHEMA_DID" "$SUBJECT_DID" | tee "$OUTPUT_FILE"
echo ""
echo "Saved bound credential to: $OUTPUT_FILE"
echo "Edit this file to fill in the credentialSubject data, then run:"
echo " ./scripts/credentials/issue-credential.sh $OUTPUT_FILE"
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 |