Guardian Verify Setup 标志

Guardian Verify Setup

组织热门
vellum-ai
guardian-verify-setup

Set up channel verification for phone, Telegram, Slack, Discord, or email channels via outbound verification flow

概览

发布者vellum-ai
代码仓库vellum-assistant
技能名称guardian-verify-setup
星标数
1.3K
复刻数
186
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 vellum-ai 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Guardian Verify Setup AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/vellum-ai/vellum-assistant/tree/main/skills/guardian-verify-setup
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vellum-ai/vellum-assistant.git /tmp/vellum-assistant
mkdir -p .claude/skills
cp -r /tmp/vellum-assistant/skills/guardian-verify-setup .claude/skills/guardian-verify-setup
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Guardian Verify Setup,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Guardian Verify Setup。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Guardian Verify Setup 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

You are helping your user set up channel verification for a messaging channel (phone, Telegram, Slack, Discord, or email). This links their identity for verified message delivery on the chosen channel. Use the assistant channel-verification-sessions CLI for all verification operations.

When to Use

Load this skill when:

  • The user says "verify me", "verify my identity", "set up verification", "verify my [phone/telegram/slack/discord/email]", or any equivalent identity-handshake intent.
  • Another skill is wiring up a channel and needs to bind the guardian's identity to it (e.g., slack-app-setup invokes this skill at the end of Slack setup so the user can prove ownership of the configured workspace).

Do not load this skill for:

  • Generic "set up X" intents where X is not a guardian channel (use the channel-specific setup skill instead).
  • Phone-CALLS intent (use the phone-calls skill — those are outbound calls the assistant makes, not verification handshakes).

Prerequisites

  • Run shell commands for this skill with bash.
  • Keep narration minimal: execute required calls first, then provide a concise status update. Do not narrate internal install/check/load chatter unless something fails.

Step 1: Confirm Channel

Ask the user which channel they want to verify:

  • phone -- verify a phone number for voice calls
  • telegram -- verify a Telegram account
  • slack -- verify a Slack account
  • discord -- verify a Discord account
  • email -- verify an email address

Skip the prompt and proceed directly with the named channel when:

  • The user's intent already specifies a channel (e.g. "verify my phone number for voice calls", "verify me on Slack").
  • This skill is loaded from another skill that has already established the channel (e.g., slack-app-setup finishes configuring Slack then loads this skill — slack is already the channel; do not re-prompt the user for which channel after they just spent the prior steps configuring one).

⚠️ CRITICAL — point of action: Do not re-prompt for channel when it is already determined. Re-prompting after a parent skill has just configured a channel makes the user feel like the assistant forgot the previous five minutes of setup.

Step 2: Collect Destination

Based on the chosen channel, ask for the required destination:

  • Phone: Ask for their phone number. Accept any common format (e.g. +15551234567, (555) 123-4567, 555-123-4567). The API normalizes it to E.164.

  • Email: Ask for their email address. The bot will send a verification code to that address.

  • Telegram: Ask for their Telegram chat ID (numeric) or @handle. Explain:

    • If they know their numeric chat ID, provide it directly. The bot will send the code to that chat.
    • If they only know their @handle, the flow uses a bootstrap deep-link that they must click first.
  • Slack: Offer to look up the user's Slack member ID automatically to reduce friction:

    1. Auto-lookup (preferred): Ask the user for their Slack display name or @handle, then look up their member ID using the Slack API.

      Set USER_QUERY to whatever the user gave you (display name, @handle, or full name — the search matches against all of them). For example, if the user says "find me, I'm @alice", set USER_QUERY="alice". If they say "Alice Example", set USER_QUERY="Alice Example". Do not leave USER_QUERY as a literal <...> placeholder string.

      bash
      USER_QUERY="alice"  # ← replace with the actual value the user provided
      USER_QUERY="${USER_QUERY#@}"  # strip leading @ — Slack .name fields have no @ prefix
      
      # Search for matching users (paginate through all workspace members).
      # The request door sends the bot token from inside the assistant; never
      # reveal it into a variable or a curl line, where it would land in the
      # transcript and the tool log. The door exits non-zero when the bot is
      # not configured, when the call is refused, and when Slack answers with
      # ok:false, so one branch covers every failure.
      CURSOR=""
      MATCHES="[]"
      while true; do
        RESPONSE=$(assistant channels request slack "/users.list?limit=200${CURSOR:+&cursor=$CURSOR}") || {
          echo "ERROR: the Slack lookup failed; fall back to manual entry"
          exit 1
        }
        PAGE_MATCHES=$(echo "$RESPONSE" | jq --arg q "$USER_QUERY" '[.members[] | select(.deleted == false) | select(.profile.display_name == $q or .name == $q or .profile.display_name_normalized == $q or .real_name == $q) | {id: .id, name: .name, display_name: .profile.display_name, real_name: .real_name}]')
        MATCHES=$(echo "$MATCHES $PAGE_MATCHES" | jq -s 'add')
        CURSOR=$(echo "$RESPONSE" | jq -r '.response_metadata.next_cursor // empty')
        [ -z "$CURSOR" ] && break
      done
      echo "$MATCHES" | jq '.[]'

      ⚠️ CRITICAL — point of action: Substitute USER_QUERY with the actual user-provided value before running the bash block. A literal USER_QUERY="<query>" or USER_QUERY="<name>" matches nothing and burns a users.list cycle.

      Result handling:

      • Single match: Present it for confirmation: "I found @username (U01ABCDEF) — is that you?" If confirmed, use the id value as the destination for Step 3.
      • Multiple matches: Present the list (up to 5) and ask the user to pick: "I found a few matches — which one is you?" Use the confirmed id as the destination.
      • No matches: Tell the user no matches were found. Suggest they double-check the spelling, or fall back to manual entry (see below).
    2. Fallback to manual entry if any of the following occur:

      • The bash block above exits 1: the Slack bot is not configured, the request door refused the call, or Slack answered users.list with an error such as missing_scope (the door prints the reason)
      • Too many matches are returned (more than 5)
      • The user prefers to enter their ID directly

      For manual entry: ask for their Slack user ID. Explain that this is their Slack member ID (e.g. U01ABCDEF), not their display name or email. They can find it in their Slack profile under "More" > "Copy member ID".

    The bot will send a verification code via Slack DM once the member ID is resolved.

  • Discord: Ask for their Discord user ID, a numeric snowflake such as 900000000000000001. To find it: User Settings > Advanced > Developer Mode, then right-click their own name in any channel or the member list and choose Copy User ID. A username or @handle will not work.

    The bot DMs the code to that user. Discord only permits that DM when the bot and the user share a server, so complete the invite step of discord-app-setup first, and note that a user who has turned off direct messages from server members cannot receive it.

Step 3: Start Outbound Verification

Execute the outbound start request:

bash
assistant channel-verification-sessions create --channel <channel> --destination "<destination>" --json

Replace <channel> with phone, telegram, slack, discord, or email, and <destination> with the phone number, Telegram destination, Slack user ID, Discord user ID, or email address.

On success (success: true)

Report the exact next action based on the channel:

  • Phone: The response includes a secret field with the verification code. Tell the user the code BEFORE the call connects: "I'm calling [number] now. Your verification code is [secret]. When you answer the call, enter this code using your phone's keypad." The create command already initiates the voice call. Do NOT place a separate call_start call. After delivering the code, immediately begin the auto-check polling loop (see Auto-Check Polling below).
  • Telegram with chat ID (no telegramBootstrapUrl in response): The response includes a secret field. Show it in the current chat: "Your verification code is [secret]. I've also sent it to your Telegram. Open the Telegram bot chat and reply with that 6-digit code to complete verification." If the response does not contain a secret field, treat this as a control-plane error: tell the user something went wrong and ask them to retry from Step 3 or resend (Step 4).
  • Telegram with handle (telegramBootstrapUrl present in response): "Tap this deep-link first: [telegramBootstrapUrl]. After Telegram binds your identity, I'll send your verification code."
  • Slack: The response includes a secret field with the verification code. Show it in the current chat: "Your verification code is [secret]. I've also sent it to you as a Slack DM. Open the DM from the Vellum bot in Slack and reply with that 6-digit code to complete verification." The DM channel ID is captured automatically during this process for future message delivery. If the response does not contain a secret field, treat this as a control-plane error: tell the user something went wrong and ask them to retry from Step 3 or resend (Step 4). After delivering the code, immediately begin the auto-check polling loop (see Auto-Check Polling below).
  • Discord: The response includes a secret field with the verification code. Show it in the current chat: "Your verification code is [secret]. I've also sent it to you as a Discord DM. Open the DM from the bot and send that 6-digit code in this DM to complete verification. Any plain message containing the code works; Discord's reply feature is not required." If the response does not contain a secret field, treat this as a control-plane error: tell the user something went wrong and ask them to retry from Step 3 or resend (Step 4). After delivering the code, begin the auto-check polling loop (see Auto-Check Polling below). The DM send is fire-and-forget, so a closed-DM or not-in-a-shared-server failure shows up as the poll timing out rather than as an error here.
  • Email: The response includes a secret field with the verification code. Show it in the current chat: "Your verification code is [secret]. I've also sent it to your email. Reply to the verification email with only the 6-digit code to complete verification." If the response does not contain a secret field, treat this as a control-plane error: tell the user something went wrong and ask them to retry from Step 3 or resend (Step 4). After delivering the code, immediately begin the auto-check polling loop (see Auto-Check Polling below).

After reporting the bootstrap URL for Telegram handle flows, wait for the user to confirm they clicked the link. Then check verification status (Step 6) to see if the bootstrap completed and a code was sent.

On error (success: false)

Handle each error code:

Error codeAction
missing_destinationAsk the user to provide their phone number, Telegram destination, Slack user ID, or Discord user ID.
invalid_destinationTell the user the format is invalid. For phone: suggest E.164 format (+15551234567). For Telegram: explain that group chat IDs (negative numbers) are not supported. For Slack: explain that the value must be a Slack member ID (e.g. U01ABCDEF). For Discord: explain that the value must be a numeric user snowflake, not a username. For email: suggest a valid email address.
already_boundTell the user a verified identity is already bound for this channel. Ask if they want to replace it. If yes, re-run the create command with --rebind added.
rate_limitedTell the user they have sent too many verification attempts to this destination. Ask them to wait and try again later.
unsupported_channelTell the user the channel is not supported. Valid channels are phone, telegram, slack, discord, and email.
no_bot_usernameTelegram bot is not configured. Load and run the telegram-setup skill first.

Step 4: Handle Resend

If the user says they did not receive the code or asks to resend:

bash
assistant channel-verification-sessions resend --channel <channel> --json

On success, report the next action based on the channel:

  • Phone: The resend response includes a fresh secret field with a new verification code. Tell the user the new code BEFORE the call connects - just like the initial start flow: "I'm calling [number] again. Your new verification code is [secret]. When you answer the call, enter this code using your phone's keypad." The resend command already initiates the voice call. Do NOT place a separate call_start call. After delivering the code, immediately begin the auto-check polling loop (see Auto-Check Polling below).
  • Telegram: The resend response includes a fresh secret field. Show the new code in the current chat: "Your new verification code is [secret]. I've also sent it to your Telegram. Open the Telegram bot chat and reply with that 6-digit code to complete verification." If the response does not contain a secret field, treat this as a control-plane error: tell the user something went wrong and ask them to retry from Step 3.
  • Slack: The resend response includes a fresh secret field. Show the new code in the current chat: "Your new verification code is [secret]. I've also sent it to you as a Slack DM. Reply to the DM with that 6-digit code to complete verification. (resent)" If the response does not contain a secret field, treat this as a control-plane error: tell the user something went wrong and ask them to retry from Step 3. After delivering the code, immediately begin the auto-check polling loop (see Auto-Check Polling below).
  • Discord: The resend response includes a fresh secret field. Show the new code in the current chat: "Your new verification code is [secret]. I've also sent it to you as a Discord DM. Open the DM from the bot and send that 6-digit code in this DM to complete verification. Any plain message containing the code works. (resent)" If the response does not contain a secret field, treat this as a control-plane error: tell the user something went wrong and ask them to retry from Step 3. After delivering the code, begin the auto-check polling loop (see Auto-Check Polling below).
  • Email: The resend response includes a fresh secret field. Show the new code in the current chat: "Your new verification code is [secret]. I've also sent it to your email. Reply to the verification email with only the 6-digit code to complete verification. (resent)" If the response does not contain a secret field, treat this as a control-plane error: tell the user something went wrong and ask them to retry from Step 3. After delivering the code, immediately begin the auto-check polling loop (see Auto-Check Polling below).

Resend errors

Handle each error code from the resend endpoint:

Error codeAction
rate_limitedTell the user to wait before trying again (the cooldown is 15 seconds between resends).
max_sends_exceededTell the user they have reached the maximum number of resends for this session (5 sends per session). Suggest canceling the current session (Step 5) and starting a new verification from Step 3.
no_destinationThis should not normally occur during resend. Tell the user to cancel (Step 5) and restart verification from scratch at Step 3.
pending_bootstrapRemind the user to click the Telegram deep-link first before a code can be sent.
no_active_sessionNo session is active. Start a new one from Step 3.

Step 5: Handle Cancel

If the user wants to cancel the verification:

bash
assistant channel-verification-sessions cancel --channel <channel> --json

Confirm cancellation to the user. On no_active_session, tell them there is nothing to cancel.

Auto-Check Polling

After delivering the code (in Step 3 or Step 4), do NOT wait for the user to report back. Poll for completion so they get confirmation without having to ask "did it work?"

Applies to phone, Slack, Discord, and email. Never Telegram -- Telegram confirms through its own bot-driven flow, so polling it reports nothing useful.

Each channel differs only in timing and in the sentence you send on success:

ChannelPoll everyGive up afterSuccess message
phone15s2 minutes (~8 polls)"Voice verification complete! Your phone number is now verified."
slack15s2 minutes (~8 polls)"Slack verification complete! Your Slack account is now verified. The DM channel has been captured for future message delivery."
discord15s2 minutes (~8 polls)"Discord verification complete! Your Discord account is now verified."
email20s3 minutes (~9 polls)"Email verification complete! Your email address is now verified."

Email is slower than chat, which is why it waits longer before giving up.

Polling procedure:

  1. Wait one interval after delivering the code, to give the user time to receive it and reply.
  2. Check the binding status. Each bash invocation starts fresh, so set CHANNEL in the same block as the command:
bash
CHANNEL=""  # ← MUST set to one of: phone, slack, discord, email
if [ -z "$CHANNEL" ]; then echo "ERROR: CHANNEL not set"; exit 1; fi
assistant channel-verification-sessions status --channel "$CHANNEL" --json
  1. If the response shows bound: true (subject to the rebind guard below): immediately send that channel's success message in the current chat and stop polling.
  2. If not yet bound: wait one more interval and poll again.
  3. Stop at the channel's timeout.
  4. On timeout, proactively tell the user: "I've been checking for a couple of minutes but verification hasn't completed yet. The code may have expired or wasn't entered. Would you like me to resend a new code (Step 4) or start a new session (Step 3)?"

A timeout is also how a silent delivery failure surfaces. Code delivery is fire-and-forget, so a Discord user with DMs closed, or a Slack DM that could not be opened, produces a clean create response and then no arrival. Offer resend rather than asserting the code was received.

Rebind guard: When in a rebind flow (the session creation request included "rebind": true because a binding already existed), do NOT treat bound: true alone as success. The pre-existing binding shows bound: true before the user has entered the new code, which would be a false positive. To guard against this:

  • Only report success when BOTH conditions are met: bound: true AND verificationSessionId is absent from the status response. The verificationSessionId field is present while a verification session is still active (pending). When the user enters the correct code, the session is consumed and verificationSessionId disappears from subsequent status responses. This proves the new outbound session was consumed and the binding is fresh.
  • If a poll shows bound: true but verificationSessionId is still present, the old binding is still active and the new code has not yet been consumed - continue polling.
  • Non-rebind flows (fresh verification with no prior binding) are unaffected - the first bound: true is trustworthy because there was no prior binding to confuse the result.

Important polling rules:

  • Do NOT require the user to ask "did it work?" - the whole point is proactive confirmation.
  • If the user sends a message while polling is in progress, handle their message normally. If their message is about verification status, the next poll iteration will provide the answer.

Step 6: Check Verification Status

After the user reports entering the code, verify the binding was created. Set CHANNEL to the channel currently being verified before running:

bash
CHANNEL=""  # ← MUST set to one of: phone, telegram, slack, discord, email
if [ -z "$CHANNEL" ]; then echo "ERROR: CHANNEL not set"; exit 1; fi
assistant channel-verification-sessions status --channel "$CHANNEL" --json

⚠️ CRITICAL — point of action: CHANNEL must be set to the channel currently being verified (phone, telegram, slack, discord, or email) before running. The empty-string guard ensures a missed substitution fails safely rather than operating on the wrong channel.

If the response shows the channel is bound, confirm success: "Verification complete! Your [channel] identity is now verified."

If not yet bound, offer to resend (Step 4) or generate a new session (Step 3).

Step 7: Revoke Verification

If the user wants to remove themselves (or the current verified identity) from a channel, use the revoke endpoint. Set CHANNEL to the channel to unbind from before running:

bash
CHANNEL=""  # ← MUST set to one of: phone, telegram, slack, discord, email
if [ -z "$CHANNEL" ]; then echo "ERROR: CHANNEL not set"; exit 1; fi
assistant channel-verification-sessions revoke --channel "$CHANNEL" --json

⚠️ CRITICAL — point of action: CHANNEL must be set to the channel to unbind (phone, telegram, slack, discord, or email) before running. The empty-string guard ensures a missed substitution fails safely rather than accidentally revoking the wrong channel.

On success (success: true)

The response includes bound: false after the operation completes. Check the previous binding state to tailor the message:

  • If a binding was previously active (i.e., the user explicitly asked to revoke their verified identity): "Verification revoked for [channel]. The previous verified identity no longer has access to this channel."
  • If no binding existed (bound: false and there was nothing to revoke): "There is no active verification for [channel] - nothing to revoke. Any pending verification challenges have been cleared."

Important Notes

  • Verification codes expire after 10 minutes. If the session expires, start a new one.
  • The resend cooldown is 15 seconds between sends, with a maximum of 5 sends per session.
  • Per-destination rate limiting allows up to 10 sends within a 1-hour rolling window.
  • Channel verification is identity-bound: the code can only be consumed by the identity matching the destination provided at start time.
  • Missing secret guardrail: Every flow returns a secret except Telegram's handle bootstrap, which returns a deep link first and sends the code once the user taps it. If secret is unexpectedly absent from a start or resend response that otherwise indicates success, treat this as a control-plane error. Do NOT fabricate a code or tell the user to proceed without one. Instead, tell the user something went wrong and ask them to retry the start (Step 3) or resend (Step 4).
  • Revoking verification: To remove the current verified identity from a channel, use the revoke API (Step 7). This revokes the binding AND revokes the verified identity's contact record, so they lose access to the channel. A new identity can then be verified for that channel.

常见问题

Guardian Verify Setup AI 技能有什么作用?

Set up channel verification for phone, Telegram, Slack, Discord, or email channels via outbound verification flow

为什么在 TypingMind 中使用 Guardian Verify Setup?

因为您只需安装一次,就能搭配任何模型使用。Guardian Verify Setup 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Guardian Verify Setup?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/vellum-ai/vellum-assistant/tree/main/skills/guardian-verify-setup。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Guardian Verify Setup?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Guardian Verify Setup 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Guardian Verify Setup 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Guardian Verify Setup AI 技能免费吗?

是的。vellum-ai 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇