Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

sync-discord-identitysync Discord identity 搜索

Agent Skill

用于处理 Discord 服务器、频道、消息、成员和机器人交互。它适合让 Agent 辅助查询社区对话、整理频道内容、发布通知或管理基础协作流程。使用时需要确认 bot 权限、频道可见范围和服务器规则;涉及删除消息、管理成员、批量通知或读取私密频道时,应先获得明确授权并控制操作范围。

总安装

4,137

周安装

169

GitHub Stars

公开资料未说明

下载量

1,325
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sync-discord-identity(sync Discord identity 搜索)
来源仓库:https://github.com/0xli/sync-discord-identity
安装命令:
openclaw skills install sync-discord-identity
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install sync-discord-identity

简介

将 Discord 机器人配置文件同步到 OpenClaw 代理 IDENTITY.md,将头像保存在工作区/头像下,并安全地添加头像和 Discord 元数据。

SKILL.md

name
sync-discord-identity
description
Sync a Discord bot profile into an OpenClaw agent IDENTITY.md, save the avatar under workspace/avatars, and safely add Avatar and Discord metadata.
version
0.1.0
metadata
openclaw
requires
bins
homepage
https://github.com/0xli/sync-discord-identity

OpenClaw Skill (Identity • Discord bot profile sync • Avatar bootstrap)

Use this skill when you need to inspect or update an OpenClaw agent identity for the current workspace, especially when that workspace is connected to a Discord bot and you want to synchronize Discord profile data into IDENTITY.md.

Scope

This skill is for:

  • reading or updating IDENTITY.md
  • reading the Discord channel config from the current workspace openclaw.json
  • bootstrapping **Avatar:** from the Discord bot profile
  • saving a local copy of the Discord avatar under workspace/avatars/
  • writing a **Discord:** metadata section into IDENTITY.md
  • preserving existing identity content unless a specific field should be added or changed

This skill is not for changing the Discord bot account itself. It only reads bot metadata from the Discord API and reflects it into OpenClaw identity files.

Behavior rules

When using this skill, follow these rules:

  1. Operate on the current workspace only.

Read openclaw.json from the workspace where the skill is installed or where the user explicitly points you.

  1. Use the correct Discord config for this workspace.

Read the Discord channel token from this workspace's openclaw.json, not from another agent or workspace.

  1. If multiple Discord channels exist in the same workspace, do not guess silently.

Prefer the single enabled Discord channel. If there are multiple candidates, ask the user which channel to use, or require an explicit channel name.

  1. Do not assume OpenClaw auto-imports the Discord avatar.

If IDENTITY.md has no **Avatar:**, populate it explicitly.

  1. Prefer a static CDN avatar URL for `Avatar:`.

Use the non-animated static Discord CDN URL: https://cdn.discordapp.com/avatars/<BOT_ID>/<AVATAR_HASH>.png

  1. Also save a local copy under the workspace.

Save the image as: workspace/avatars/discord-<discord-username-or-bot-id>.png

  1. If `Avatar:` is missing, set it.

Default behavior: write the static Discord CDN URL into **Avatar:**.

  1. If `Avatar:` already exists and differs, do not silently overwrite it.

Ask the user whether they want to replace the existing avatar value.

  1. Add `Discord:` if Discord metadata is available.

Save only non-empty fields among: - username - locale - email - bio

  1. Do not write empty Discord fields.

For example, omit email if it is null, and omit bio if it is empty.

  1. Preserve all unrelated identity fields.

Only make local, minimal edits.

  1. If a token appears in conversation or files, treat it as sensitive.

Do not echo it. Recommend rotation if it has been exposed.

Expected inputs

You may receive one or more of the following:

  • path to the current agent workspace
  • path to IDENTITY.md
  • path to openclaw.json
  • an optional Discord channel name when multiple Discord channels exist in one workspace
  • an explicit avatar URL

Example Discord bot profile payload returned by Discord /users/@me:

{
  "id": "1471414603580838030",
  "username": "Andrew",
  "avatar": "650ada97187f9be350f13bf25ae136d8",
  "discriminator": "9171",
  "public_flags": 0,
  "flags": 0,
  "bot": true,
  "banner": null,
  "accent_color": null,
  "global_name": null,
  "avatar_decoration_data": null,
  "collectibles": null,
  "display_name_styles": null,
  "banner_color": null,
  "clan": null,
  "primary_guild": null,
  "mfa_enabled": true,
  "locale": "en-US",
  "premium_type": 0,
  "email": null,
  "verified": true,
  "bio": ""
}

Output policy

When editing identity data, the desired result is:

  • local avatar file saved under workspace/avatars/
  • **Avatar:** present in IDENTITY.md
  • **Discord:** present in IDENTITY.md if there is any non-empty Discord metadata to store

Preferred IDENTITY.md structure:

# IDENTITY

- **Name:** Andrew
- **Avatar:** https://cdn.discordapp.com/avatars/1471414603580838030/650ada97187f9be350f13bf25ae136d8.png
- **Discord:**
  - username: Andrew
  - locale: en-US

If email is not null and bio is not empty, include them too:

- **Discord:**
  - username: Andrew
  - locale: en-US
  - email: andrew@example.com
  - bio: Agent for the noodles workspace.

Recommended workflow

Case A: IDENTITY.md does not exist yet

  1. Determine the current workspace root.
  2. Read that workspace's openclaw.json.
  3. Choose the correct Discord channel for this workspace.
  4. Call Discord /users/@me using that channel token.
  5. Build the static Discord avatar URL.
  6. Download the image into workspace/avatars/.
  7. Create IDENTITY.md with at least **Avatar:** and **Discord:** entries.

Case B: IDENTITY.md exists but has no **Avatar:**

  1. Read the current workspace openclaw.json.
  2. Choose the correct Discord channel for this workspace.
  3. Call Discord /users/@me.
  4. Build the static Discord avatar URL.
  5. Download the image into workspace/avatars/.
  6. Insert **Avatar:** <static_url>.
  7. Add or extend **Discord:** with the non-empty metadata fields.

Case C: IDENTITY.md already has **Avatar:**

  1. Read the existing avatar value.
  2. Read the current workspace openclaw.json and fetch the Discord bot profile.
  3. If it already matches the desired static Discord URL, do nothing.
  4. If it differs, ask the user whether to replace it.
  5. Regardless of avatar replacement, you may still add missing **Discord:** metadata fields.

Minimal parsing rules for IDENTITY.md

Treat the file as Markdown with bold field labels such as:

  • - **Name:** value
  • - **Avatar:** value
  • - **Discord:** followed by nested bullet items

Accept small formatting variations, but preserve the user’s original style where possible.

Suggested CLI and filesystem assumptions

Common layouts:

  • workspace root: ~/.openclaw/workspace
  • identity file: ~/.openclaw/workspace/IDENTITY.md
  • config file: ~/.openclaw/workspace/openclaw.json
  • avatar folder: ~/.openclaw/workspace/avatars

If the user has multiple agents or workspaces, operate only on the explicitly targeted one.

Safe edit strategy

  • make a backup before writing when practical
  • do surgical edits
  • avoid reformatting the whole file
  • never drop unrelated sections

Reference implementation notes

If you need automation, see scripts/sync_discord_identity.py in this skill package. It:

  • reads the current workspace openclaw.json
  • finds the correct Discord channel token for that workspace
  • calls Discord /users/@me
  • downloads the static avatar to workspace/avatars/
  • updates IDENTITY.md
  • asks for confirmation before overwriting a different existing avatar unless --force-avatar is used
  • supports --channel when multiple Discord channels exist in one workspace

Example commands

python scripts/sync_discord_identity.py \
  --workspace ~/.openclaw/workspace
python scripts/sync_discord_identity.py \
  --workspace ~/.openclaw/workspace-beagle-profile
python scripts/sync_discord_identity.py \
  --workspace ~/.openclaw/workspace \
  --channel noodles
python scripts/sync_discord_identity.py \
  --workspace ~/.openclaw/workspace \
  --force-avatar

Install and publish notes

To publish this skill to ClawHub:

clawhub publish . --version 0.1.0 --changelog "Initial release" --tags latest

For users to install it:

openclaw skills install sync-discord-identity

Start a new OpenClaw session after installing so the skill is loaded.

Success criteria

This skill is complete only when all applicable conditions are satisfied:

  • avatar file exists under workspace/avatars/
  • IDENTITY.md contains **Avatar:** if missing before
  • existing conflicting avatar is not overwritten silently
  • **Discord:** includes non-empty username/locale/email/bio fields only
  • the token comes from the correct Discord config for the current workspace
  • unrelated identity content remains intact

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

75.42%
按下载量换算999

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills