A collection of powerful tools for Claude Code including custom slash commands and hooks to streamline development workflows and enhance productivity.
Expert code review with comprehensive analysis covering:
- Security vulnerabilities and attack vectors
- Performance bottlenecks and optimization opportunities
- Logic errors and edge cases
- Code maintainability and technical debt
- Best practices and conventions
Automated Jira ticket resolution workflow:
- Fetches and analyzes Jira ticket details
- Understands the problem and locates affected code
- Generates technical solution design
- Implements fixes using best practices
Usage: /fix-jira TICKET-123
Git workflow automation specialist that:
- Reviews staged and unstaged changes
- Generates conventional commit messages
- Verifies changes before committing
- Handles push operations safely
Expert Go backend development assistance for:
- Google Cloud Spanner queries and transactions
- Pub/Sub message handling
- Redis caching strategies
- Elasticsearch operations
- Follows systematic analysis β planning β implementation workflow
GitHub Pull Request creation with:
- Automatic PR template population
- Jira ticket integration (AFD-* pattern)
- Smart upstream branch targeting
Usage: /pr [target-branch] (defaults to master)
AI-powered repository analysis using Gemini CLI + Claude collaboration:
- Architecture and design pattern analysis
- Code quality and maintainability assessment
- Security vulnerability scanning
- Performance bottleneck identification
- Automatic documentation generation
Analysis types: architecture, functions, quality, security, performance, documentation, full
Usage: /repo-analyze [analysis-type] [repo-path] [output-path]
Transforms PRDs and requirements into comprehensive technical solutions:
- Requirement analysis and system design
- Architecture diagrams (Mermaid)
- Interface and API specifications
- Integration planning
- Implementation roadmap
This repository includes a powerful hooks system that enables real-time Slack notifications for Claude Code events, helping you stay informed when:
- Claude Code needs your approval for an action
- Tasks are completed and ready for review
- Important events occur during development
- π Automatic Notifications: Get Slack alerts when Claude Code requires human intervention
- π¨ Rich Messages: Beautiful notifications using Slack Block Kit
- βοΈ Flexible Configuration: Support for multiple event types with custom triggers
- π Secure: Sensitive information managed through environment variables
- π¬ Dual Mode Support: Send via Webhook (to channels) or Direct Message (to yourself)
- π¦ Minimal Dependencies: Webhook mode uses only Python stdlib, DM mode requires
slack-sdk
Option 1: Direct Message Mode (Recommended)
Send notifications directly to your Slack DMs for better privacy.
-
Create Slack App & Get Credentials
- Visit https://api.slack.com/apps
- Create app, add
chat:writescope - Copy Bot Token (starts with
xoxb-) and your Member ID
-
Install Dependencies
pip install slack-sdk
-
Set Environment Variables
export SLACK_CLAUDE_CODE_BOT_TOKEN="xoxb-your-token" export SLACK_MEMBER_ID="U01234567" # Add to ~/.bashrc or ~/.zshrc to make it permanent
-
Install & Configure
cp hooks/claude_slack_notifier.py ~/bin/ chmod +x ~/bin/claude_slack_notifier.py
Add to
~/.claude/settings.json:{ "hooks": { "Notification": [{ "matcher": "", "hooks": [{ "type": "command", "command": "python3 ~/bin/claude_slack_notifier.py --event-type notification --mode dm" }] }], "Stop": [{ "matcher": "", "hooks": [{ "type": "command", "command": "python3 ~/bin/claude_slack_notifier.py --event-type stop --mode dm" }] }] } } -
Activate
/hooks
Option 2: Webhook Mode
Send notifications to a Slack channel.
- Get Webhook URL from https://api.slack.com/apps
- Set
export SLACK_WEBHOOK_URL="..." - Use
--mode webhookin commands (see hooks/README.md)
| Event | Trigger | Recommended |
|---|---|---|
Notification |
Claude Code requests approval | β |
Stop |
Task completion | β |
UserPromptSubmit |
New task submitted | Optional |
PreToolUse |
Before tool execution | Optional |
PostToolUse |
After tool execution | Optional |
PreCompaction |
Before context compression | Optional |
SessionStart |
Session begins | Optional |
For detailed setup instructions, configuration options, and troubleshooting, see:
- Hooks README - Complete documentation with both DM and Webhook setup
- Configuration Examples - Sample configuration files
- Clone this repository:
git clone https://github.com/virgoC0der/claude-code-slash-commands.git- Copy the command files to your Claude Code commands directory:
cp commands/*.md ~/.claude/commands/- Restart Claude Code or reload commands.
Simply type the slash command in Claude Code:
/code-reviewer
/fix-jira AFD-1234
/pr master
/repo-analyze full ./my-project
Each command is defined in a Markdown file in the commands/ directory. You can:
- Modify existing commands to fit your workflow
- Create new commands by adding
.mdfiles - Adjust prompts and behavior to match your team's standards
Some commands have external dependencies:
/repo-analyze: Requires Gemini CLI/fix-jira: Requires Atlassian MCP integration/pr: Requires GitHub CLI (gh)
- Python 3.6+
- DM Mode (recommended):
slack-sdklibrary + Slack Bot Token + Member ID - Webhook Mode: Slack Webhook URL (no additional dependencies)
Contributions are welcome! Feel free to:
- Submit bug reports or feature requests
- Create pull requests with improvements
- Share your custom commands
MIT License - feel free to use and modify these commands for your needs.