framework.md | ||
LICENSE | ||
README.md |
💻 Claude Code Commands
Slash commands for Claude Code and similar CLI coding assistants.
A collection of shortcuts and custom workflows accessible via /
commands.
⚡ What are Slash Commands?
Slash commands are shortcuts that trigger specific behaviours in your CLI coding assistant. Type /
followed by a command name to execute pre-configured instructions.
When you invoke a command, it:
- Loads custom instructions from the corresponding
.md
file - Configures the assistant's behaviour for that specific task
- Applies any specialised prompts or constraints
- Executes the workflow you've defined
🔧 Compatibility
Designed for Claude Code and CLI coding assistants that support Markdown-based slash commands.
Note: As of the time of writing, the Gemini CLI does not have a similar slash command feature.
📦 Setup
-
Fork this repository to your own Git account
-
Clone to
~/.claude/commands
:git clone ssh://git@git.tomfos.tr/tom/claude-code-commands.git ~/.claude/commands
This gives you:
- Your own command collection to customise
- Version control for your modifications
- Easy syncing across machines
🚀 Usage
Each .md
file defines an available command. The filename determines the command name.
Example: write-docs.md
→ /write-docs
Usage in Claude Code:
- Type
/
followed by the command name - Press enter to load those instructions
- The assistant adopts the command's behaviour
Creating Custom Commands
Add a Markdown file with your instructions:
# my-command.md
You are an expert at [specific task]. When invoked:
1. [First action]
2. [Second action]
3. [Report results]
Best Practices for Command Design
- Single Purpose: Each command should do one thing well
- Clear Instructions: Be specific about what the command does
- Include Examples: Show typical usage scenarios
- Handle Edge Cases: Anticipate what might go wrong
📄 License
This project is licensed under the Apache License 2.0.