davila7 avatar

Discord Bot Architect

This skill gets you from zero to production Discord bot with both Discord.js v14 and Pycord foundations, slash commands, and interactive components like buttons and modals. The patterns are solid on modern best practices: minimal intents, proper command registration, and component collectors with timeouts. It explicitly steers you away from the Message Content intent trap and the classic mistake of syncing commands on every startup. The sharp edges table is genuinely helpful, covering privileged intents, token security, and invite URL generation. If you're building a Discord bot and don't want to piece together outdated tutorials, this gives you the current way to do it with real code you can run.

skills.sh installs
335
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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'));

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
Backend & APIs, Code Review & Quality, Python
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1bladnman avatardo-workbladnman/do-workTask queue - add requests or process pending work334skills.sh installs
2dchuk avatarunderstanding-tauri-architecturedchuk/claude-code-tauri-skillsTeaches Claude about Tauri's core architecture, including the Rust backend, webview integration, Core-Shell design pattern, IPC mechanisms, and security model f334skills.sh installs
3pedronauck avatarvercel-composition-patternspedronauck/skillsReact composition patterns that scale. Use when refactoring components with boolean prop proliferation, building flexible component libraries, or designing reus334skills.sh installs
4bobmatnyc avatarvercel-aibobmatnyc/claude-mpm-skillsVercel AI platform guidance covering AI SDK, AI Gateway, Vercel Agent, and MCP. Use when building AI-powered or agentic workloads on Vercel.333skills.sh installs
5patricio0312rev avatarrbac-permissions-builderpatricio0312rev/skillsImplements role-based access control with permission matrix, route guards, policy functions, and UI permission hints. Provides middleware/guards, helper utiliti333skills.sh installs
6secondsky avatarbun-workerssecondsky/claude-skillsUse for Web Workers in Bun, worker_threads, parallel processing, and background tasks.333skills.sh installs