SlashCommand
Load and execute custom commands from markdown files.
Usage
Option 1: Import directly
main.py
Option 2: Copy and customize
code
main.py
Quick Start
main.py
Want to customize? Run co copy slash_command to get an editable copy.
Command File Format
Create .co/commands/today.md:
code
YAML Frontmatter
| Field | Required | Description |
|---|---|---|
| name | Yes | Command name |
| description | Yes | Short description |
| tools | No | Allowed tools (all if omitted) |
Tool Filtering
Limit which tools the command can use:
code
Locations
Commands are loaded from:
.co/commands/*.md(user commands - priority)commands/*.md(built-in commands)
API
main.py
Customizing
Need to modify SlashCommand's behavior? Copy the source to your project:
code
Then import from your local copy:
main.py
ConnectOnion