Skip to content

danielrosehill/Claude-Slash-Commands

Repository files navigation

Claude Slash Commands

Claude Code Claude Code Projects Master Index

Python Shell Commands

A curated collection of custom slash commands for Claude Code CLI, designed to streamline common development workflows and enforce consistent patterns across projects.

Command Organization Visualization

Command Organization Graph

Visual representation of slash command organization across categories and subcategories.

Overview

This repository provides reusable slash commands that can be invoked within Claude Code sessions to automate repetitive tasks, enforce coding standards, and improve productivity. Commands are organized by category and can be easily integrated into any Claude Code workflow.

Repository Structure

Directory Purpose
commands 350+ slash commands organized by category
scripts Python automation scripts
ref Reference documentation
hooks Git hooks for repository automation
inspiration Ideas and inspiration for new commands

Command Categories

Category Description Example Commands
Code Editing Format and modify code format-code, remove-comments
Deployment Deploy to GitHub and Hugging Face make-private-gh-repo, make-public-gh-repo, hf-dataset, hf-space
Development Development workflow tools containerize, decontainerize, setup-ci-cd, setup-hot-reload, inspect-deployment
Documentation Generate and format documentation create-readme, update-readme, create-hf-readme, create-changelog, create-reference, document-stack, format-links
Educational Learning and code analysis analyze-commits, create-briefing, explain-code, find-learning
Filesystem Management Organize files and directories flatten, organise
GitHub Workflow GitHub repository management backup-repo, choose-license, contributor-guide, create-branch, fork-setup
Ideation Generate ideas and suggestions design-ideas, fresh-perspective, innovative-features, suggest-ideas
Media Management Process and organize media files process-stock, sort-media
Operations Project management and debugging collect-feedback, create-scope, debug-fix, document-blocker, manage-project, refactor-plan, session-summary
Recurrent Tasks Automated recurring tasks index-repo
Repository Organization Clean and organize repositories clean-repo, set-up-task-mgmt
Security Security scanning and configuration allow-env, scan-pii
SEO & Web SEO optimization and auditing ai-friendly-seo, seo-audit
Development Steers Guide development patterns use-uv
System Administration System configuration and management docker-help, organize-files, python-env-setup, review-boot, setup-conda
UX Design UI/UX improvements improve-css, optimize-dashboard, optimize-fonts, responsive-audit, standardize-icons, suggest-frameworks
Writing Content writing and editing add-headings, add-sources, fix-typos, improve-flow, proofread, seo-optimize, uk-english
Miscellaneous Utility commands wrong-number

Usage

Slash commands are invoked within Claude Code sessions using the / prefix followed by the command name. Commands are stored as markdown files containing prompts that Claude Code executes.

Setup

The repository includes a bash wrapper script for managing Python dependencies:

# Setup virtual environment
./run.sh setup

# Run repository info fetcher
./run.sh fetch

Command Structure

Each command is a markdown file containing instructions for Claude Code to execute. Commands can:

  • Automate documentation generation
  • Enforce coding standards
  • Perform repository maintenance
  • Guide development patterns

Dependencies

Package Version Purpose
requests >=2.31.0 HTTP requests for API interactions
python-dotenv >=1.0.0 Environment variable management

Dependencies are managed using uv for fast, reliable Python package installation.

Integration

To use these commands in your Claude Code workflow:

  1. Clone this repository
  2. Copy desired command files to your project's .claude/commands directory
  3. Invoke commands using /command-name within Claude Code sessions

Git Hooks

The repository includes a pre-push hook that automatically syncs slash commands and regenerates the command index before pushing changes. This ensures the repository stays consistent and the index is always up to date.

Installing the Pre-Push Hook

To install the pre-push hook in your local repository:

# Copy the hook from the hooks directory
cp hooks/pre-push .git/hooks/pre-push

# Make it executable (if not already)
chmod +x .git/hooks/pre-push

What the Hook Does

The pre-push hook:

  1. Runs sync-commands.sh to sync all slash commands
  2. Runs scripts/generate_index.py to regenerate the command index
  3. Checks if INDEX.md or README.md were updated
  4. If files were updated, stages them and prompts you to commit
  5. Aborts the push if sync or index generation fails
  6. Proceeds with push if everything is up to date

This helps maintain consistency by preventing pushes when command synchronization issues exist or when the index is outdated.

Command Development

Commands follow a consistent structure:

  • Clear, actionable instructions
  • Specific do/don't guidelines
  • Context-aware behavior
  • Minimal user intervention required

Browsing Available Commands

For a complete, searchable index of all 357 slash commands organized by category, see INDEX.md.

The index provides:

  • Commands grouped by category and subcategory
  • Descriptions and usage examples
  • File paths for easy navigation
  • Auto-generated from the repository structure

Command Index

This index is automatically generated. Do not edit manually.

Total Commands: 87

Ai Engineering

Path: commands/public/ai-engineering

Commands in this category: 1

Command Description
multiagent No description available

Conv Mgmt

Path: commands/public/conv-mgmt

Commands in this category: 1

Command Description
give-me-number-options No description available

Development

Path: commands/public/development

Commands in this category: 6

Command Description
containerize docker build -t project-name .
decontainerize No description available
dont-reinvent-the-wheel No description available
inspect-deployment No description available
setup-ci-cd No description available
setup-hot-reload No description available

Code Editing

Path: commands/public/development/code-editing

Commands in this category: 2

Command Description
format-code No description available
remove-comments No description available

Github

Path: commands/public/development/deployment/github

Commands in this category: 2

Command Description
make-private-gh-repo No description available
make-public-gh-repo No description available

Hf

Path: commands/public/development/deployment/hf

Commands in this category: 2

Command Description
hf-dataset No description available
hf-space No description available

Github Workflow

Path: commands/public/development/github-workflow

Commands in this category: 5

Command Description
backup-repo No description available
choose-license No description available
contributor-guide No description available
create-branch No description available
fork-setup git clone [your-fork-url] git remote add upstream [original-repo-url] git remote -v git fetch upstream

Language Refactor

Path: commands/public/development/language-refactor

Commands in this category: 2

Command Description
js-to-python No description available
python-to-js No description available

Python

Path: commands/public/development/python

Commands in this category: 4

Command Description
add-repo-index No description available
add-uv-venv No description available
migrate-to-uv No description available
use-conda No description available

Repo Org

Path: commands/public/development/repo-org

Commands in this category: 2

Command Description
clean-repo No description available
set-up-task-mgmt No description available

Security

Path: commands/public/development/security

Commands in this category: 2

Command Description
allow-env No description available
scan-pii - File: src/config.js:45 Type: Email address Content: [REDACTED]@company.com Context: Developer email in comment

Ux Design

Path: commands/public/development/ux-design

Commands in this category: 7

Command Description
improve-css No description available
make-it-pretty No description available
optimize-dashboard No description available
optimize-fonts No description available
responsive-audit No description available
standardize-icons No description available
suggest-frameworks No description available

Docs

Path: commands/public/docs

Commands in this category: 4

Command Description
create-changelog All notable changes to this project will be documented in this file.
create-reference No description available
format-links No description available
document-stack - Framework: [Name] (version) - UI Library: [Name] (version) - State Management: [Name] (version) - Runtime: [Name] (version)

Readme

Path: commands/public/docs/readme

Commands in this category: 4

Command Description
add-readme No description available
create-readme Brief description of what this project does.
update-readme No description available
create-hf-readme tags: - tag1 - tag2 license: mit datasets: - dataset-name language: - en --- Description of the model, dataset, or space.

Educational

Path: commands/public/educational

Commands in this category: 4

Command Description
analyze-commits Period: Last 30 days Total Commits: 45 - Feature: User authentication system (15 commits) - Refactor: Database layer optimization (8 commits)
create-briefing No description available
explain-code No description available
find-learning No description available

Filesystem Mgmt

Path: commands/public/filesystem-mgmt

Commands in this category: 2

Command Description
flatten No description available
organise No description available

General Purpose

Path: commands/public/general-purpose

Commands in this category: 1

Command Description
recursive-spellcheck No description available

Ideation

Path: commands/public/ideation

Commands in this category: 4

Command Description
design-ideas Visual Style: - Frosted glass effect cards - Soft shadows and blurs - Vibrant gradient backgrounds
fresh-perspective [What was tried and why it failed] Instead of [X], what if we [opposite of X]? - Rationale: [Why this could work]
innovative-features Problem Solved: Users struggle to find relevant content quickly Implementation Approach: - Integrate vector embeddings for semantic search
suggest-ideas 1. Add user profile customization 2. Implement dark mode toggle 3. Create export to PDF functionality

Media Mgmt

Path: commands/public/media-mgmt

Commands in this category: 2

Command Description
process-stock No description available
sort-media No description available

Misc

Path: commands/public/misc

Commands in this category: 1

Command Description
wrong-number No description available

Operations

Path: commands/public/operations

Commands in this category: 7

Command Description
collect-feedback - Duration: - Tasks completed: - Overall satisfaction: [1-5 stars] - [Bullet points] - [Bullet points]
create-scope Description: [Clear, concise description] Goals: - Goal 1 - Goal 2 - [ ] Feature 1: [Description]
debug-fix No description available
document-blocker Date: [YYYY-MM-DD] Priority: [High/Medium/Low] Status: [Blocked/Investigating/Resolved] [Detailed description]
manage-project - [ ] Task currently being worked on - [ ] High priority task - [ ] Medium priority task - [x] Completed task 1
refactor-plan - Improve code organization - Reduce technical debt - Enhance maintainability 1. Restructure folders:
session-summary - ✅ Implemented user authentication - ✅ Fixed navbar responsive issues - ✅ Updated API documentation - ⚠️ Database migration (90% complete)

Recurrent Tasks

Path: commands/public/recurrent-tasks

Commands in this category: 1

Command Description
index-repo Created Description shields.io badge (END TEMPLATE) The shields.io badge should be a Github badge that says View Repo and links to the repository.

Seo Web

Path: commands/public/seo-web

Commands in this category: 2

Command Description
ai-friendly-seo No description available
seo-audit No description available

Steers

Path: commands/public/steers

Commands in this category: 1

Command Description
use-uv No description available

Sysadmin

Path: commands/public/sysadmin

Commands in this category: 5

Command Description
docker-help docker logs container_name docker inspect container_name docker stats docker ps -a ``` 3. Address specific issues:
organize-files No description available
python-env-setup python3 -m venv venv source venv/bin/activate # Linux/Mac venv\Scripts\activate # Windows conda create -n myenv python=3.11
review-boot No description available
setup-conda conda create -n myenv python=3.11 conda activate myenv conda install numpy pandas scikit-learn conda install pytorch torchvision torchaudio...

Shared

Path: commands/public/sysadmin/shared

Commands in this category: 6

Command Description
btrfs-snapper-health No description available
check-boot-logs No description available
diagnose-slowdown No description available
review-startup-services No description available
system-health-checkup No description available
system-upgrade No description available

Writing

Path: commands/public/writing

Commands in this category: 7

Command Description
add-headings No description available
add-sources No description available
fix-typos No description available
improve-flow No description available
proofread No description available
seo-optimize No description available
uk-english No description available

License

This project is licensed under the MIT License - see the LICENSE file for details.

Related Repositories

This repository is part of a collection of Claude Code resources:

About

My Claude Code slash commands

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •