ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

sync-discord-identity

Sync a Discord bot profile into an OpenClaw agent IDENTITY.md, save the avatar under workspace/avatars, and safely add Avatar and Discord metadata.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/0xli/sync-discord-identity
Or

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.

  2. 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.

  3. 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.

  4. Do not assume OpenClaw auto-imports the Discord avatar. If IDENTITY.md has no **Avatar:**, populate it explicitly.

  5. 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

  6. Also save a local copy under the workspace. Save the image as: workspace/avatars/discord-<discord-username-or-bot-id>.png

  7. If **Avatar:** is missing, set it. Default behavior: write the static Discord CDN URL into **Avatar:**.

  8. If **Avatar:** already exists and differs, do not silently overwrite it. Ask the user whether they want to replace the existing avatar value.

  9. Add **Discord:** if Discord metadata is available. Save only non-empty fields among:

    • username
    • locale
    • email
    • bio
  10. Do not write empty Discord fields. For example, omit email if it is null, and omit bio if it is empty.

  11. Preserve all unrelated identity fields. Only make local, minimal edits.

  12. 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

Metadata

Author@0xli
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-0xli-sync-discord-identity": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.