discord-command

Create modular Discord slash commands in src/app/commands folders for CharlyBot.

Updated Jan 27, 2026
One-click install
npx skills add https://github.com/dnieblesdev/charlybot --skill discord-command
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: discord-command
Source: https://github.com/dnieblesdev/charlybot/tree/main/skills/discord-command
Command: npx skills add https://github.com/dnieblesdev/charlybot --skill discord-command

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This skill standardizes how to create new Discord slash commands for CharlyBot, enforcing a scalable folder-based pattern and subcommand organization.

Core Features & Use Cases

  • Enforces folder-structured command design: each command under src/app/commands/<name>/ with index.ts and subcommands as separate files.
  • Prevents legacy single-file commands, guiding maintainable, scalable command code.
  • Provides a ready-to-use template and guidelines for new commands and subcommands usage scenarios.

Quick Start

Create a new slash command by adding a dedicated folder under src/app/commands with an index.ts and subcommand files, then deploy.

Frequently Asked Questions about discord-command

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure modular Discord slash commands in a TypeScript bot?▼

Modular Discord slash commands use a folder-based structure where each command resides in src/app/commands/<name>/ with an index.ts file and separate files for subcommands, ensuring scalable and maintainable TypeScript code.

What is the best way to organize Discord bot subcommands?▼

The best way to organize Discord bot subcommands is separating them into individual files within a dedicated command directory, rejecting legacy single-file patterns to enforce a consistent, maintainable command structure.

Why does my single-file Discord command structure not scale?▼

Single-file Discord command structures do not scale because they consolidate logic into one file, whereas a modular folder-based pattern with separate subcommand files enforces consistent patterns and prevents maintainability issues as the bot grows.

Can I use a folder-based pattern for new Discord slash commands?▼

Yes, you can use a folder-based pattern for new Discord slash commands by creating a dedicated directory under src/app/commands/<name>/ containing an index.ts and separate subcommand files, then deploying the bot.

Do I need to create separate files for each Discord subcommand?▼

Yes, you need to create separate files for each Discord subcommand to follow the enforced modular design pattern, which places an index.ts and subcommand files together inside a dedicated command folder.