ai-agent

Slash Commands

Slash commands handler to make your bot support slash commands.
56 stars27 forksJavaScriptUpdated 8/26/2022100% free · open source
What it does

This tool allows your bot to handle and respond to slash commands, enabling users to interact with your bot using a specific syntax like '/command' in chat platforms.

When to use it
  • When building a Discord bot that requires users to invoke commands with a slash prefix
  • When creating a Slack bot that needs to handle slash commands for various tasks
  • When developing a chatbot that must support a wide range of commands and subcommands
Ready-to-paste prompt
module.exports = { name: 'greeting', description: 'Sends a greeting message', run: (interaction) => interaction.reply('Hello, how are you?') };
Heads up: Make sure to replace 'client' with your actual bot client instance, and adjust the file paths according to your project's structure, as the tool assumes a specific directory layout for commands
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/slash-commands && curl -fsSL https://workflowstacks.com/api/skills/slash-commands/claude-skill -o ~/.claude/skills/slash-commands/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

Quick Actions
Details
Creator
FnrDev
Language
JavaScript
Category
ai-agent
Published
8/6/2021

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.