MR
Mayur Rathi
@mayurrathi
⭐ 40.7k GitHub stars

Discord Bot Architect

Discord Bot Architect is an code AI skill with a core value of Specialized skill for building production-ready Discord bots. It helps developers solve real-world problems in the code domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

Specialized skill for building production-ready Discord bots. Covers Discord.js (JavaScript) and Pycord (Python), gateway intents, slash commands, interactive components, rate limiting, and sharding.

Last verified on: 2026-07-07

Quick Facts

Category code
Works With Claude
Source sickn33/antigravity-awesome-skills
Stars ⭐ 40.7k
Last Verified 2026-07-07
Risk Level Low
mkdir -p ./skills/discord-bot-architect && curl -sfL https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/discord-bot-architect/SKILL.md -o ./skills/discord-bot-architect/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

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


for (const file of commandFiles) {

const filePath = path.join(commandsPath, file);

const command = require(filePath);

if ('data' in command && 'execute' in command) {

client.commands.set(command.data.name, command);

}

}


// Load events

const eventsPath = path.join(__dirname, 'events');

const eventFiles = fs.readdirSync(eventsPath).filter(f => f.endsWith('.js'));


for (const file of eventFiles) {

const filePath = path.join(eventsPath, file);

const event = require(filePath);

if (event.once) {

client.once(event.name, (...args) => event.execute(...args));

} else {

client.on(event.name, (...args) => event.execute(...args));

}

}


client.login(process.env.DISCORD_TOKEN);

text

// src/commands/ping.js

const { SlashCommandBuilder } = require('discord.js');


module.exports = {

data: new SlashCommandBuilder()

.setName('ping')

.setDescription('Replies with Pong!'),


async execute(interaction) {

const sent = await interaction.reply({

content: 'Pinging...',

fetchReply: true

});


const latency = sent.createdTimestamp - interaction.createdTimestamp;

await interaction.editReply(`Pong! Latency: ${latency}ms`);

}

};

text

// src/events/interactionCreate.js

const { Events } = require('discord.js');


module.exports = {

name: Event

text

### Pycord Bot Foundation

Discord bot with Pycord (Python) and application commands

**When to use**: ['Building Discord bots with Python', 'Prefer async/await patterns', 'Need good slash command support']
python
# main.py
import os
import discord
from discord.ext import commands
from dotenv import load_dotenv

load_dotenv()

# Configure intents - only enable what you need
intents = discord.Intents.default()
# intents.message_content = True  # PRIVILEGED - avoid if possible
# intents.members = True          # PRIVILEGED

bot = commands.Bot(
    command_prefix="!",  # Legacy, prefer slash commands
    intents=intents
)

@bot.event
async def on_ready():
    print(f"Logged in as {bot.user}")
    # Sync commands (do this carefully - see sharp edges)
    # await bot.sync_commands()

# Slash command
@bot.slash_command(name="ping", description="Check bot latency")
async def ping(ctx: discord.ApplicationContext):
    latency = round(bot.latency * 1000)
    await ctx.respond(f"Pong! Latency: {latency}ms")

# Slash command with options
@bot.slash_command(name="greet", description="Greet a user")
async def greet(
    ctx: discord.ApplicationContext,
    user: discord.Option(discord.Member, "User to greet"),
    message: discord.Option(str, "Custom message", required=False)
):
    msg = message or "Hello!"
    await ctx.respond(f"{user.mention}, {msg}")

# Load cogs
for filename in os.listdir("./cogs"):
    if filename.endswith(".py"):
        bot.load_extension(f"cogs.{filename[:-3]}")

bot.run(os.environ["DISCORD_TOKEN"])

python
# cogs/general.py
import discord
from discord.ext import commands

class General(commands.Cog):
    def __init__(self, b

🎯 Best For

  • UI designers
  • Product designers
  • Claude users
  • Software engineers
  • Development teams

💡 Use Cases

  • Generating component mockups
  • Creating design system tokens
  • Python code quality enforcement
  • Dependency management

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Discord Bot Architect to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does this work with Figma?

Some design skills integrate with Figma plugins. Check the Works With section for supported tools.

Is Discord Bot Architect compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Discord Bot Architect?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Discord Bot Architect?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/discord-bot-architect/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping usability testing

AI-generated designs should be validated with real users before development.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills