Commandkit

From neplextech/commandkit · View interactive version

Commandkit is an AI agent skill from the GitHub repository neplextech/commandkit. Build and maintain Discord bots with CommandKit core conventions. Use when implementing command/event architecture (including hierarchical subcommands), middleware chains, JSX components, and commandkit.config setup for plugin-based features.

How to use this skill

Skill file

CommandKit Core

Activation guidance

Use this skill for framework-level architecture and implementation:

layouts

Required filesystem expectations

src/app/tasks, src/workflows) when those plugins are enabled

Configuration expectations

example task/driver init).

Execution workflow

  1. Validate structure and baseline config first.
  2. Place command/event files in convention paths.
  3. Implement command logic with typed context and metadata.
  4. Add middleware only for cross-cutting concerns.
  5. Verify runtime behavior with local dev command.

Guardrails

Reference index

| Name | Description |

| ------------------------------------------ | ------------------------------------------------------------------------------------------- |

| references/00-filesystem-structure.md | Canonical project layout, required paths, and structure validation guidance. |

| references/01-config-and-structure.md | Detailed config patterns, plugin wiring strategies, and config recipes by task. |

| references/02-chat-input-command.md | Baseline slash command pattern with metadata and response handling. |

| references/03-event-handler.md | Event listener conventions and lifecycle best practices. |

| references/04-jsx-components.md | Valid JSX component patterns (including interactive handlers) based on real project usage. |

| references/05-middlewares.md | Global, directory, and command-specific middleware patterns and ordering. |

| references/06-config-recipes.md | Task-oriented config recipes for common bot setups (core only, AI, cache, tasks, workflow). |

| references/07-sharding-your-bot.md | Sharding manager setup, entrypoint behavior, and scale-related shard planning. |

| references/08-file-naming-conventions.md | Special filenames/directories CommandKit auto-discovers and how they affect runtime. |

| references/09-manual-setup.md | Full manual setup flow for config, app entrypoint, commands, events, and run/build/start. |

| references/10-cli-api.md | Advanced programmatic CLI API usage patterns and constraints. |

Tool index

| Name | Description |

| --------------------------- | --------------------------------------------------------------------------- |

| tools/check-structure.mjs | Checks whether required core CommandKit paths exist in the current project. |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.