https://github.com/data-goblin/claude-code-useful-slash-commands
https://github.com/data-goblin/claude-code-useful-slash-commands
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/data-goblin/claude-code-useful-slash-commands
- Owner: data-goblin
- Created: 2025-07-10T15:31:58.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-07-10T15:32:00.000Z (12 months ago)
- Last Synced: 2025-10-09T21:29:24.596Z (9 months ago)
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Claude Code Useful Slash Commands
A collection of useful slash commands I use with [Claude Code](https://docs.anthropic.com/en/docs/claude-code), Anthropic's AI-powered CLI tool.
## What are Slash Commands?
Slash commands are custom prompts defined as Markdown files that Claude Code can execute. They help automate common tasks and workflows by providing reusable command templates.
## Quick Setup
1. Clone this repository or copy individual command files
2. Place commands in your project's `.claude/commands/` directory for project-specific use
3. Or place in `~/.claude/commands/` for personal commands available across all projects
4. Start a new Claude Code session to see the commands (they appear when you type `/`)
**Important:** Slash commands only appear when you start a new Claude terminal/instance.
## Available Commands
- **[/add-mcp-server](add-mcp-server.md)** - Add MCP servers (local or remote) to Claude Code with authentication support
- **[/analyze-git-history](analyze-git-history.md)** - Analyze repository history and development patterns
- **[/create-pull-request](create-pull-request.md)** - Create GitHub pull requests with proper formatting
- **[/explain-code](explain-code.md)** - Explain code from a file in simple terms (uses `@` prefix)
- **[/review-recent-changes](review-recent-changes.md)** - Review and summarize recent git changes (uses `!` prefix)
- **[/setup-github-repo](setup-github-repo.md)** - Initialize a GitHub repository for MCP server development with standard structure
- **[/update-readme](update-readme.md)** - Update README with recent changes using beginner-friendly language
- **[/visualize-code-flow](visualize-code-flow.md)** - Create Mermaid diagrams showing code structure and flow
- **[/work-on-issue](work-on-issue.md)** - Analyze and work on GitHub issues systematically
## Usage
Commands support special features:
- `$ARGUMENTS` - Pass parameters to commands (e.g., `/add-mcp-server "microsoft-docs"`)
- `!` prefix - Execute bash commands and include output
- `@` prefix - Reference and include file contents
- Namespacing - Organize commands in subdirectories
Example:
```bash
/add-mcp-server "microsoft-docs"
/work-on-issue "#123"
/create-pull-request
/analyze-git-history
/explain-code "src/main.py"
/visualize-code-flow "src/auth.py"
/review-recent-changes
/update-readme
/setup-github-repo
```
## Documentation
For more information about Claude Code and slash commands:
- [Claude Code Overview](https://docs.anthropic.com/en/docs/claude-code/overview)
- [Slash Commands Documentation](https://docs.anthropic.com/en/docs/claude-code/slash-commands)
- [CLI Reference](https://docs.anthropic.com/en/docs/claude-code/cli-reference)
## Community Resources
Find more slash commands and examples:
- [awesome-claude-code](https://github.com/hesreallyhim/awesome-claude-code) - Curated list of 88+ community commands
- [Claude-Command-Suite](https://github.com/qdhenry/Claude-Command-Suite) - Professional workflows for development tasks
- [claude-sessions](https://github.com/iannuttall/claude-sessions) - Session tracking commands
- [slashcommands.cc](https://slashcommands.cc/) - Searchable database of community commands
- [claudecode.io](https://www.claudecode.io/commands) - 60+ slash commands and workflows
## Contributing
Feel free to submit PRs with additional useful slash commands. Commands should be:
- Well-documented with clear usage instructions
- General-purpose and reusable
- Follow the existing format with frontmatter metadata
## License
This repository is a public resource for convenience. Commands are provided as-is for community use.