discord
Skill167 starsChanged 16 days agoMITView on GitHub
Build and automate Discord integrations (bots, webhooks, slash commands, and REST API workflows). Use when the user mentions Discord, a Discord server/guild, channels, webhooks, bot tokens, slash commands/application commands, discord.js, or discord.py.
- Sends data out
We split this skill into the rules it gives an agent
11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 30 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Use this skill when implementing or automating Discord integrations.
- Distinctive: line 21
No bot user needed.
- Distinctive: line 25
Use when you need to post as a bot, manage channels, read history, moderate, etc.
- Distinctive: line 30
Use application commands and interaction webhooks.
- Distinctive: line 35
Never hard-code tokens: Use environment variables:
- Distinctive: line 38
Treat webhook URLs as secrets (they include a token).
- Distinctive: line 39
Do not automate normal user accounts (“self-bots”).
- Very specific: line 44
Mentions are dangerous by default: always set allowed_mentions to something strict (these examples use {"parse": []}) to avoid accidentally …
- Distinctive: line 46
If you build your own scripts, avoid including full webhook URLs in exception messages.
- Distinctive: line 103
Use guild commands for fast iteration (instant updates).
- Distinctive: line 104
Use global commands when ready.
“Common” is measured: kept by at least 6 in 10 of the 30 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Discord
Use this skill when implementing or automating Discord integrations.
Pick the right approach
- Incoming webhooks (best for one-way posting)
- Good for CI notifications, alerts, build status, etc.
- No bot user needed.
- See: https://discord.com/developers/docs/resources/webhook#execute-webhook
- Bot token + REST API (two-way / richer automation)
- Use when you need to post as a bot, manage channels, read history, moderate, etc.
- REST API base:
https://discord.com/api/v10 - Most REST calls use
Authorization: Bot <token>.
- Interactions / slash commands (user-invoked commands)
- Use application commands and interaction webhooks.
- Typically requires running a web server to receive interactions and respond quickly.
Secrets & safety
- Never hard-code tokens. Use environment variables:
DISCORD_WEBHOOK_URLfor incoming webhooksDISCORD_BOT_TOKENfor bot REST API calls
- Treat webhook URLs as secrets (they include a token).
- Do not automate normal user accounts (“self-bots”). Use official bot/OAuth flows.
Footguns / safety notes (read this)
- Webhook URLs are secrets (the token is embedded in the URL). Don’t paste them into issues, logs, CI output, or chat.
- Mentions are dangerous by default: always set
allowed_mentionsto something strict (these examples use{"parse": []}) to avoid accidentally pinging@everyone/ roles. - Watch for accidental secret logging:
- If you build your own scripts, avoid including full webhook URLs in exception messages.
- The bundled scripts sanitize webhook URLs in error output, but you should still avoid printing the URL yourself.
- Rate limits: handle HTTP 429 with
retry_after/Retry-After, and don’t retry forever.
Quick recipes
The shell snippets below use POSIX-style environment variables and line continuations. On Windows PowerShell, use curl.exe for the shown flags and $env:DISCORD_WEBHOOK_URL / $env:DISCORD_BOT_TOKEN for environment variables, or translate the request to Invoke-RestMethod.
Post a message via an incoming webhook (recommended)
Discord requires at least one of content, embeds, components, file, or poll.
curl -sS -X POST \
-H 'Content-Type: application/json' \
-d '{"content":"Hello from OpenHands","allowed_mentions":{"parse":[]}}' \
"$DISCORD_WEBHOOK_URL"Post a message to a channel with a bot token
Endpoint: POST /channels/{channel_id}/messages (Create Message)
CHANNEL_ID="..."
curl -sS -X POST "https://discord.com/api/v10/channels/${CHANNEL_ID}/messages" \
-H "Authorization: Bot $DISCORD_BOT_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"content":"Hello from my bot","allowed_mentions":{"parse":[]}}'Docs: https://discord.com/developers/docs/resources/channel#create-message
Automation scripts (bundled)
These scripts are self-contained and only use the Python standard library.
- Post to a webhook:
python3 -m skills.discord.scripts.post_webhook --content "Build finished" --wait - Post to a channel using a bot token:
python3 -m skills.discord.scripts.send_message --channel-id "$CHANNEL_ID" --content "Hello"
Rate limits
- Don’t hard-code limits. Use Discord’s
Retry-After/retry_afterand rate-limit headers when present. - On HTTP 429, wait for the provided delay (clamp to a sane maximum, add small jitter), then retry.
Docs: https://discord.com/developers/docs/topics/rate-limits
Slash commands / application commands
- Use guild commands for fast iteration (instant updates).
- Use global commands when ready; propagation can take longer.
Docs: https://discord.com/developers/docs/interactions/application-commands
Reference
For more details (OAuth2 flows, command registration endpoints, troubleshooting), see:
- references/REFERENCE.md
Other versions33 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 33
- spinabot/brigade★ 11ksame name
- civitai/civitai★ 7.3ksame name
- casibase/casibase★ 5.7ksame name
- the-open-agent/openagent★ 5.7ksame name
- linuxhsj/openclaw-zero-token★ 5.2ksame name
- jiulingyun/openclaw-cn★ 4.7ksame name
- Bitterbot-AI/bitterbot-desktop★ 2.5ksame name
- OpenBMB/EdgeClaw★ 1.2ksame name
- understudy-ai/understudy★ 461same name
- AtomicBot-ai/atomicbot★ 325same name
23 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Used alongsideProjects with it also use taskflow-inbox-triage, voice-call and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AtomicBot-aiSkilltaskflow-inbox-triage
Also in 5 projects that use this
seedprodSkillvoice-call
Start voice calls via the OpenClaw voice-call plugin.
Also in 16 projects that use this
seedprodSkillsession-logs
Search and analyze your own session logs (older/parent conversations) using jq.
Also in 16 projects that use this
AtomicBot-aiSkilltaskflow
Also in 5 projects that use this
hkyutongSkillopenclaw-release-maintainer
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
Also in 3 projects that use this
- +7 more from seedprod
In this repository68 other files it gives its agents.
- AGENTS.mdAGENTS.md
- add-javadocSkill
- add-skillSkill
- agent-canvas-environmentSkill
- agent-creatorSkill
- agent-memorySkill
- agent-sdk-builderSkill
- azure-devopsSkill
- bitbucket-cloudSkill
- bitbucket-data-centerSkill
- bitbucketSkill
- canvas-extension-apiSkill
- code-reviewSkill
- code-simplifierSkill
- datadogSkill
- denoSkill
- dockerSkill
- evidence-based-citationsSkill
- flarglebargleSkill
- frontend-designSkill
- github-actionsSkill
- github-agents-md-maintainerSkill
- github-delivery-watchdogSkill
- github-issue-to-prSkill
- github-issue-triageSkill
- github-pr-reviewerSkill
- github-pr-reviewSkill
- github-repo-monitorSkill
- githubSkill
- github-stale-ci-pr-closerSkill
- gitlab-issue-to-mrSkill
- gitlabSkill
- incident-retrospectiveSkill
- iterateSkill
- jira-issue-to-prSkill
- jupyterSkill
- kubernetesSkill
- learn-from-code-reviewSkill
- linearSkill
- linear-triageSkill
- news-digestSkill
- notionSkill
- npmSkill
- openhands-apiSkill
- openhands-automationSkill
- openhands-enterprise-troubleshootingSkill
- openhands-sdkSkill
- pdflatexSkill
- plain-english-contentSkill
- prdSkill
- qa-changesSkill
- release-notesSkill
- research-briefSkill
- securitySkill
- simplified-technical-englishSkill
- skill-creatorSkill
- slack-channel-monitorSkill
- slack-standup-digestSkill
- spark-version-upgradeSkill
- sshSkill
- The first 60 shown.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

