From lastid-claude-guard
Register your LastID DID for identity-gated operations. Links your decentralized identity to Claude Code so sensitive operations require verifiable credential presentation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/lastid-claude-guard:registerThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Arguments: `$ARGUMENTS`
Arguments: $ARGUMENTS
The CLI is at ${CLAUDE_PLUGIN_ROOT}/bin/guard-cli.ts. All commands return JSON.
bun ${CLAUDE_PLUGIN_ROOT}/bin/guard-cli.ts status
If registeredDid is set, tell the user they're already registered and show the DID. Ask if they want to re-register.
If clientId is null, ask the user for their SDK client_id (from https://human.lastid.co — free tier: 1 key).
bun ${CLAUDE_PLUGIN_ROOT}/bin/guard-cli.ts save-config '{"clientId":"USER_KEY_HERE","enabled":true}'
bun ${CLAUDE_PLUGIN_ROOT}/bin/guard-cli.ts request
This creates the request, prints JSON with { requestId, deepLink, expiresIn }, AND renders a QR code in the terminal.
IMPORTANT: Show the FULL output to the user — the QR code IS the registration interface. Tell them to scan it with the LastID app.
If imessageChatId is configured, send the deep link via mcp__imessage__reply. If Telegram or Discord is available, use those instead. This is the tap-to-verify backup for when the user is on their phone:
LastID Registration — Tap to verify your identity:
<deepLink from step 3>
Request: <first 8 chars of requestId>
Expires in 5 minutes.
bun ${CLAUDE_PLUGIN_ROOT}/bin/guard-cli.ts complete <requestId from step 3>
This blocks until the user presents their credential, then automatically:
Tell the user to scan the QR or tap the link while this runs.
When complete returns, show the registered DID. Tell the user:
/lastid-claude-guard:statuscd ${CLAUDE_PLUGIN_ROOT} && bun installnpx claudepluginhub gettrustedapp/lastid-claude-guard --plugin lastid-claude-guardProvides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.