Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Discord Bot Builder: Slash Commands to Deploy

    3

    Discord Bot Builder makes your agent build them properly.

    Free

    12 uses5.0 (1 review)
    Discord Bot Builder: Slash Commands to Deploy

    Discord Bot Builder: Slash Commands to Deploy

    Example session with this skill installed

    Create a Discord bot for our customer community: /track <reference> shows shipment status, and new members get a welcome message with a menu to pick their country role. Node/TypeScript.

    • Read your context and instructions
    • Compiled the discord bot builder

    Plan

    Bot (not webhook) - needs slash commands, buttons and roles.

    • Intents: Guilds + GuildMembers (privileged, needed for the join event) -

    enable it in the Developer Portal. No MessageContent.

    • Invite permissions: View Channel, Send Messages, Embed Links, Manage Roles (no Administrator). Bot role must sit above the country roles.

    Built (discord.js v14, TypeScript)

    src/
      commands/track.ts        /track reference:<string> -> deferReply (ephemeral) -> your tracking API -> embed
      events/guildMemberAdd.ts welcome embed in #welcome + select menu "Pick your country"
      interactions/countrySelect.ts  assigns 1 country role, removes others, ephemeral confirmation
      deploy-commands.ts       dev guild now, global for release
      index.ts                 router + error handling
    .env.example              DISCORD_TOKEN, CLIENT_ID, GUILD_ID, TRACKING_API_URL
    Dockerfile                node:22-alpine, non-root user
    
    • /track validates the reference format, replies "Not found" ephemerally, never shows other customers' data (the API is called with the member's own Discord-linked account id)
    • Country roles are read from config (ES, FR, DE, IT, PT, Other) so admins can change them without code
    • Errors: ephemeral "Something went wrong" + logged stack

    Tested on a dev server

    CaseResult
    /track valid refembed in 1.2 s (deferred) ✔
    /track unknown refephemeral "Not found" ✔
    New member joinswelcome + select menu ✔
    Pick FR, then ESFR removed, ES added ✔
    Bot role below country rolesclear error message to admins ✔
    tsc --noEmitclean ✔

    Deploy

    Railway worker (always on), env vars in Railway secrets, auto-restart. Run npm run deploy:commands -- --global when ready.

    Not done: posting in your real server - waiting for your OK.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    A bot that responds, scales and doesn't ask for Administrator

    Discord bots built quickly tend to break the same way: "The application did not respond", commands that never show up, privileged intents and Administrator permission for no reason, tokens committed to git. Discord Bot Builder makes your agent build them properly.

    What it does

    • Webhook or bot? Uses a simple channel webhook when you only need to post (CI, monitoring, forms, RSS) and a real bot only when you need interaction.
    • Secure setup: token in .env, never printed or committed; invite URL with only the permissions each feature needs; minimal intents (privileged ones only when truly required).
    • Clean structure: one file per command, events folder, a command-registration script (dev guild for instant testing, global for release).
    • Interactions done right: typed options, choices and autocomplete; reply or defer within 3 seconds; ephemeral replies; buttons, selects and modals; embeds within Discord's limits.
    • Permissions & errors: default member permissions plus code checks for admin commands, friendly ephemeral errors, logging, respect for rate limits.
    • Test & deploy: dev-server checklist, then always-on hosting (Railway, Fly.io, VPS with systemd/Docker) or HTTP interactions for serverless.
    • Troubleshooting table for the most common problems.
    • Rules: no self-bots, spam, mass DMs or member scraping; asks before posting to real community channels.

    Includes

    • SKILL.md workflow
    • references/patterns.md - webhook + GitHub Actions, discord.js v14 TypeScript (command, router, registration - typechecked against v14.28), discord.py 2.x equivalent, permissions cheat-sheet, common problems

    Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI and any SKILL.md-compatible agent.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.

    No support for self-bots or mass DM tools. Serverless hosting is restricted to HTTP interactions. Privileged intents require manual activation in the Discord Portal.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    5.0
    1 review
    5
    1
    4
    0
    3
    0
    2
    0
    1
    0

    This skill has been used 12 times.

    Trust & safety

    Security scan

    Security scan passed 8 days ago

    • Free with an Agensi account

    Permissions

    Network Access
    Environment Variables
    Listed8 days ago
    Updated6 days ago

    What's inside

    Frequently Asked Questions

    This skill supports the latest stable versions of discord.js (v14+ for Node.js/TypeScript) and discord.py (2.x), ensuring your bot uses modern slash command patterns rather than deprecated prefix-based systems.

    No, this skill is designed to architect bots that follow Discord's best practices, specifically enforcing least-privilege intents and secure environment variable handling to protect your bot's token.

    The skill assists in generating Dockerfiles or systemd units for 24/7 VPS hosting, and it provides specific guidance for serverless HTTP endpoints if you prefer a platform like Railway or Fly.io.

    The skill provides the complete architecture, including modular project scaffolds, command registration scripts, and specific event handlers for buttons, modals, and select menus.

    This skill avoids common pitfalls like 'Interaction Failed' errors by implementing proper deferred response patterns and ensuring all commands are registered within Discord's mandatory 3-second window.

    It does not support the creation of self-bots or automated mass DM tools, as these violate Discord's Terms of Service and can lead to account or bot termination.

    New in APIs & Backend

    Free