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
336
GitHub stars
33.9K
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
1secondsky avatarbun-workerssecondsky/claude-skillsUse for Web Workers in Bun, worker_threads, parallel processing, and background tasks.336skills.sh installs
2bladnman avatardo-workbladnman/do-workTask queue - add requests or process pending work335skills.sh installs
3secondsky avatarbun-react-ssrsecondsky/claude-skillsUse when building server-rendered React with Bun, including streaming SSR, hydration, renderToString, or custom SSR without a framework.334skills.sh installs
4patricio0312rev avatarload-test-builderpatricio0312rev/skillsCreates load and performance tests with k6, Artillery, or autocannon to validate system behavior under stress. Use when users request "load testing", "performan333skills.sh installs
5jdrhyne avatargoogle-adsjdrhyne/agent-skillsQuery, audit, and optimize Google Ads campaigns. Supports two modes: (1) API mode for bulk operations with the google-ads Python SDK, (2) attached-browser mode 332skills.sh installs
6slidespeak avatarslidespeakslidespeak/skillsGenerate, edit, and manage PowerPoint presentations via the SlideSpeak API. Use this skill when users want to create presentations from text or documents, edit 332skills.sh installs