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.

How slash-commands works
Codeflow
Free to inspect

Slash-commands is a small JavaScript project (~2.8k lines across 87 code files). Setup is light: installs like a normal app. Reading the code is optional. Last commit 51 months ago, Other license, no tests found.

Size
Small codebase
~2.8k lines · 87 code files · 23 min skim
Setup
One-command install
Installs like a normal app. Reading the code is optional.
Runs on
Node.js
No API keys detected
JavaScript 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    index.js
    Where the program starts running
  3. 3
    package.json
    Dependencies and the commands it exposes
  4. 4
    commands/devs/eval.js
    Inside commands/ — an example of what the AI is told to do
What's in each folder
commands/Prompts, skills & agent definitions3 files
events/Folder41 files
slash/Folder38 files
handlers/Folder3 files
.github/CI / automation (GitHub Actions)15 files
READMENo tests foundDocumentedCI checksOther licenseLast update 51 mo ago
Quick Actions
Details
Creator
FnrDev
Language
JavaScript
Category
ai-agent
Published
8/6/2021

Are you the creator of this tool? and earn 85% of every sale.

Show it off in your README:

Featured on WorkflowStacks
[![Featured on WorkflowStacks](https://workflowstacks.com/api/badge/slash-commands.svg)](https://workflowstacks.com/skills/slash-commands?utm_source=github&utm_medium=badge)
🔥 Hot this week, in your inbox
Skills like this, every Monday.

The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.

Do this with a working workflow

Pages we wrote and tested that put a skill like this to work — importable n8n templates, outcome guides and Claude Desktop configs.