Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add rianvdm/product-ai-public --skill discord-botgit clone --depth 1 https://github.com/rianvdm/product-ai-publicWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/rianvdm/product-ai-public/discord-bot)<a href="https://agentmods.dev/skills/rianvdm/product-ai-public/discord-bot"><img src="https://agentmods.dev/badge/skills/rianvdm/product-ai-public/discord-bot/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/rianvdm/product-ai-public/discord-bot"><img src="https://agentmods.dev/badge/skills/rianvdm/product-ai-public/discord-bot.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.01875 |
| Opus 5.5 | $0.00016 | $0.00750 |
| Sonnet 5.5 | $0.00008 | $0.00375 |
| Haiku 4.5 | $0.00004 | $0.00187 |
Grade A, and why
discord-bot scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Discord Bot Development
Use this skill when working on Discord bots, Discord API integration, bot setup/configuration, or slash command registration. Triggered by mentions of Discord bots, Discord Developer Portal, Discord API, slash commands, Gateway, or Interactions Endpoint.
Search before giving portal instructions
The Discord Developer Portal UI changes often, so web-search current instructions before describing:
- Where settings are located in the Developer Portal
- OAuth2 flow steps
- Bot permission configuration
- Interactions Endpoint setup
- Install link generation
Useful queries:
Discord Developer Portal [specific task] <current year>Discord bot setup [specific feature] latest
If search results are older than 6 months, note this to the user and suggest they verify in the portal.
Discord Bot Architecture on Cloudflare Workers
Two models for receiving Discord events:
Interactions Endpoint (HTTP)
- Discord POSTs slash commands and component interactions to your Worker URL
- No persistent connection needed — pure request/response
- Set the URL in Developer Portal → General Information → Interactions Endpoint URL
- Requires Ed25519 signature verification on every request (
discord-interactionsnpm package) - Supports: slash commands, buttons, select menus, modals, autocomplete
Gateway (WebSocket)
- Persistent WebSocket connection to
wss://gateway.discord.gg - Required for: reaction events, message events, presence, voice state, typing indicators
- On Cloudflare Workers: use a Durable Object with
new WebSocket(url)for the outbound connection - NOT
fetch()withUpgrade: websocket— that doesn't work forwss://URLs - DO won't hibernate while outbound WS is open — use alarm-based keepalive (30s interval)
- Deploys evict the DO; alarm reconnects within ~30 seconds
Which Do You Need?
| Feature | Interactions Endpoint | Gateway |
|---|---|---|
| Slash commands | Yes | Not needed |
| Message reactions | No | Required |
| Message content | No | Required (with intent) |
| Typing indicators | No | Required |
| Presence updates | No | Required |
| Voice state | No | Required |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed · -1 lines 8b0737c1f6fb
- 3mo ago First seen · 169 lines · 40 tokens per session scan A 0a7d75dec795
discord-bot is a skill published in the GitHub repository rianvdm/product-ai-public (21 stars, last pushed 16d ago), licensed MIT. It adds 40 tokens to every session and 1,875 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
discord-bot compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| discord-botrianvdm/product-ai-public | Skill | 21 | 16d ago | MIT | A | 40 | OpenCode |
| alchemy-providerpingdotgg/t3code | Skill | 90k | today | MIT | A | 153 | Claude Code, Codex |
| stripe-projectsNousResearch/hermes-agent | Skill | 269k | today | MIT | A | 15 | Claude Code, Codex |
| django-storages-s3Jeffallan/claude-skills | Skill | 13k | yesterday | MIT | A | 138 | Claude Code |
| websocket-engineerJeffallan/claude-skills | Skill | 13k | yesterday | MIT | A | 36 | Claude Code |
| azure-eventhub-dotnetmicrosoft/skills | Skill | 3.3k | 2d ago | MIT | A | 94 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | 2d ago | MIT | A | 78 | Claude Code |