discord-bot-architect
Production-Ready Discord-Bots erstellen
Das Erstellen von Discord-Bots von Grund auf ist komplex mit vielen Fallstricken rund um Intents, Befehlsregistrierung und Rate-Limiting. Diese Skill bietet gebrauchsfertige Muster für Discord.js und Pycord, die Best Practices für die Produktionsbereitstellung folgen.
Télécharger le ZIP du skill
Importer dans Claude
Allez dans Paramètres → Capacités → Skills → Importer un skill
Activez et commencez à utiliser
Tester
Utilisation de "discord-bot-architect". Create a basic Discord.js bot with a ping command
Résultat attendu:
Die Skill bietet eine vollständige Code-Struktur einschließlich Client-Setup mit minimalen Intents, einem Commands-Ordner und einer Ping-Befehlsdatei mit korrekter Slash-Command-Builder-Syntax.
Utilisation de "discord-bot-architect". Add a confirm button to a command
Résultat attendu:
Die Skill zeigt, wie man einen ActionRowBuilder mit ButtonBuilder-Komponenten erstellt, Button-Interaktionen durch Collectoren handhabt und die Nachrichtenantwort aktualisiert.
Utilisation de "discord-bot-architect". Set up a Python bot with slash commands
Résultat attendu:
Die Skill bietet ein main.py-Template mit Pycord-Setup, Intent-Konfiguration, Slash-Command-Decorators und Cog-Loading-Logik.
Audit de sécurité
SûrAll 45 static findings are false positives. The skill contains standard Discord bot patterns (dynamic require for command loading, fs.readdirSync for directory scanning, environment variable access for bot tokens, and Discord gateway connections). These are required for legitimate Discord bot functionality and do not pose security risks.
Score de qualité
Ce que vous pouvez construire
Neues Discord-Bot-Projekt erstellen
Schnell ein neues Discord-Bot-Projekt mit korrekter Struktur für Befehle und Events aufbauen
Interaktive UI zu bestehendem Bot hinzufügen
Einen Bot mit Buttons, Select-Menüs und Modals für reichhaltige Benutzerinteraktionen erweitern
Migration von Legacy-Befehlen zu Slash-Befehlen
Vorhandenen Bot refaktorieren, um moderne Slash-Befehle mit korrekten Optionen zu verwenden
Essayez ces prompts
Use the discord-bot-architect skill to create a basic ping command with Discord.js that replies with the bot latency.
Use the discord-bot-architect skill to create a slash command with button and select menu components that collect user input.
Use the discord-bot-architect skill to create a Pycord bot structure using cogs for command organization.
Use the discord-bot-architect skill to show me how to properly configure gateway intents for a bot that needs message content but wants to minimize privileged intents.
Bonnes pratiques
- Verwende immer Slash-Befehle statt Nachrichteninhalt für Bot-Befehle
- Konfiguriere nur die mindestens erforderlichen Gateway-Intents, um Privileg-Anforderungen zu reduzieren
- Trenne Befehle und Events in verschiedene Verzeichnisse mit dynamischem Loading
- Synchronisiere Befehle niemals bei jedem Bot-Start, um Rate-Limits zu vermeiden
Éviter
- Message Content Intent für Befehlsparsing verwenden - veraltet und erfordert privilegierten Intent
- Slash-Befehle bei jedem Bot-Startup synchronisieren - verursacht Rate-Limiting-Probleme
- Die Event-Loop mit synchronen Operationen blockieren - verursacht Gateway-Disconnects
- Bot-Tokens im Quellcode hardcodieren - sollte Umgebungsvariablen verwenden