Skip to content
davila7 avatar

Discord Bot Architect

Production-ready Discord bot scaffolding in Discord.js v14 and Pycord, with privileged-intent and command-sync guardrails.

CCM score
64 of 100
skills.sh installs
342
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers bot setup in Discord.js v14 (JavaScript) and Pycord (Python), including file-based command and event loading
  • Includes slash commands with options, interactive buttons, select menus, and modals, plus gateway intent configuration
  • Enforces minimal intents, avoids the privileged Message Content intent, and warns against syncing commands on every start
  • Designed for developers building production Discord bots who need rate limiting and sharding guidance

Install

$ npx -y skills add davila7/claude-code-templates --skill discord-bot-architect -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Discord Bot Architect

Patterns

Discord.js v14 Foundation

Modern Discord bot setup with Discord.js v14 and slash commands

When to use: ['Building Discord bots with JavaScript/TypeScript', 'Need full gateway connection with events', 'Building bots with complex interactions']

```javascript
// src/index.js
const { Client, Collection, GatewayIntentBits, Events } = require('discord.js');
const fs = require('node:fs');
const path = require('node:path');
require('dotenv').config();

// Create client with minimal required intents
const client = new Client({
  intents: [
    GatewayIntentBits.Guilds,
    // Add only what you need:
    // GatewayIntentBits.GuildMessages,
    // GatewayIntentBits.MessageContent,  // PRIVILEGED - avoid if possible
  ]
});

// Load commands
client.commands = new Collection();
const commandsPath = path.join(__dirname, 'commands');
const commandFiles = fs.readdirSync(commandsPath).filter(f => f.endsWith('.js'));

Details

Repository
github.com/davila7/claude-code-templates
Categories
Email & Messaging, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the discord-bot-architect skill do?

discord-bot-architect helps an agent build production-ready Discord bots. It covers Discord.js in JavaScript and Pycord in Python, including gateway intents, slash commands, interactive components, rate limiting, and sharding.

How do I install the discord-bot-architect skill?

Run npx -y skills add davila7/claude-code-templates --skill discord-bot-architect -y in your project. Once installed, discord-bot-architect gives the agent patterns for building Discord bots with slash commands and buttons.

Which Discord libraries does discord-bot-architect support?

discord-bot-architect covers Discord.js v14 for JavaScript and Pycord for Python. Its patterns include slash commands, buttons, select menus, and modals for both languages.

Does discord-bot-architect explain how to avoid rate limits and handle sharding?

Yes, discord-bot-architect covers rate limiting and sharding alongside gateway intents. Its anti-patterns also warn against syncing commands on every start, since command registration is rate limited.

More from davila7/claude-code-templates

All 398

Similar to Discord Bot Architect

More Email & Messaging