🌐
Anthropic
anthropic.com › engineering › claude-code-best-practices
Claude Code: Best practices for agentic coding
Putting the above content into .claude/commands/fix-github-issue.md makes it available as the /project:fix-github-issue command in Claude Code. You could then for example use /project:fix-github-issue 1234 to have Claude fix issue #1234. Similarly, you can add your own personal commands to the ~/.claude/commands folder for commands you want available in all of your sessions.
🌐
Claude Code Commands
claudecodecommands.directory
Claude Code Commands
Browse, share, and discover powerful commands for Claude Code.
🌐
Builder.io
builder.io › blog › claude-code
How I use Claude Code (+ my best tips)
September 29, 2025 - You can also use the interactive /hooks command in Claude Code to configure hooks through a menu interface, which is often easier than editing JSON directly. You can also add custom slash commands pretty easily. To add commands, just create a .claude/commands folder, add the command name as a file with a .md extension.
🌐
Claude
claude.ai › public › artifacts › e2725e41-cca5-48e5-9c15-6eab92012e75
Complete Claude Code Commands Documentation
Create a .claude/commands folder in your project root directory, then save the following commands as corresponding .md files.
🌐
Reddit
reddit.com › r/claudeai › claude code commands directory
r/ClaudeAI on Reddit: Claude Code Commands Directory
June 26, 2025 -

I made a directory for all the slash command files that people are using with Claude Code!

Claude Code added the ability to have custom slash commands not too long ago. That makes it way easier to standardize all the commands and workflows that we want Claude Code to run. To help consolidate and distribute these, I wanted to build a directory where we could easily share and post the commands we're all using. Since Claude Code is all about operating from the terminal, I made it easy to fetch the file via curl. Eventually, I'll integrate this with my context-file-manager tool so you can fetch and save the files directly into your cfm list.

Please join and submit the Claude Code Commands you've been using or try some new ones out!
https://claudecodecommands.directory/

🌐
GitHub
github.com › hesreallyhim › awesome-claude-code
GitHub - hesreallyhim/awesome-claude-code: A curated list of awesome commands, files, and workflows for Claude Code
A curated list of awesome commands, files, and workflows for Claude Code - hesreallyhim/awesome-claude-code
Starred by 18.5K users
Forked by 1.1K users
Languages   Python 98.9% | Makefile 1.1%
🌐
Sid Bharath
siddharthbharath.com › home › blog › cooking with claude code: the complete guide
Cooking with Claude Code: The Complete Guide - Sid Bharath
July 8, 2025 - You first setup a folder to store the custom commands as markdown files. ... Now create markdown files in that folder for each custom command. For example, you might want one to review all code in your codebase which you might call every so often.
🌐
GitHub
github.com › qdhenry › Claude-Command-Suite
GitHub - qdhenry/Claude-Command-Suite: Professional slash commands for Claude Code that provide structured workflows for software development tasks including code review, feature creation, security auditing, and architectural analysis.
Slash Commands: Namespace-organized commands (/dev:code-review, /test:generate-test-cases, /deploy:prepare-release) for development workflows · AI Agents: Specialized agents for security auditing, test coverage analysis, and cross-platform synchronization · Claude Code Skills: Model-invoked capabilities for recurring workflows including Linear task management and Cloudflare infrastructure deployment
Starred by 870 users
Forked by 84 users
Languages   Shell 36.4% | TypeScript 33.8% | Python 26.7% | JavaScript 3.1%
🌐
Claude
code.claude.com › docs › en › cli-reference
CLI reference - Claude Code Docs
For most use cases, --append-system-prompt is recommended as it preserves Claude Code’s built-in capabilities while adding your custom requirements. Use --system-prompt or --system-prompt-file only when you need complete control over the system prompt.
Find elsewhere
🌐
Awesome Claude
awesomeclaude.ai › code-cheatsheet
Claude Code Developer Cheatsheet - Commands, Config & Workflows
January 1, 2025 - Personal commands: Store in ~/.claude/commands/ (available across all projects) Arguments: Use $ARGUMENTS placeholder for dynamic values · Bash execution: Use !`command` to run commands before processing · File references: Use @filename to include file contents ... Use --print (or -p) for automation, scripts, and CI/CD pipelines. Perfect for SRE bots, automated code reviews, and agent integrations.
🌐
Shipyard
shipyard.build › blog › claude-code-cheat-sheet
Shipyard | Claude Code CLI Cheatsheet: config, commands, prompts, + best practices
# Create a project-specific command mkdir -p .claude/commands echo "Analyze this code for performance issues and suggest optimizations:" > .claude/commands/optimize.md
🌐
ClaudeLog
claudelog.com › home › faqs › --add-dir guide
Claude Code --add-dir: Additional Working Directories Guide | ClaudeLog
Purpose - Extends Claude Code's workspace beyond your current working directory to include additional directories without changing your primary location. ... claude --model claude-sonnet-4-5-20250929 --add-dir ../backend-api claude --add-dir ~/shared/libraries -p "Compare authentication patterns between current and shared directory" Slash Command Usage - Add directories without restarting your session:
🌐
Steve Kinney
stevekinney.com › courses › ai-development › claude-code-commands
Claude Code Commands | Developing with AI Tools | Steve Kinney
Add instructions: Populate the Markdown file with the instructions you want Claude to execute. Example: To create a project-scoped command named optimize: echo "Analyze the performance of this code and suggest three specific optimizations:" > .claude/commands/optimize.md.
🌐
Claude
claude.com › blog › using-claude-md-files
Using CLAUDE.MD files: Customizing Claude Code for your codebase | Claude
1 month ago - Claude examines your codebase—reading package files, existing documentation, configuration files, and code structure—then generates a CLAUDE.md tailored to your project. The generated file typically includes build commands, test instructions, key directories, and coding conventions it detected.
🌐
Reddit
reddit.com › r/claudeai › share your claude code commands!
r/ClaudeAI on Reddit: Share Your Claude Code Commands!
June 29, 2025 -

I just moved over to Claude Code from Windsurf (neovim editor gets to be a 1st class citizen again!) and am probably overly obsessed with development efficiency. Please share your custom commands (user-level, project-level, whichever) that you find to be really valuable.

commit-and-push.md

I use this for every git commit, even simple ones because I am extraordinarily lazy. My favorite feature though is when it detects that some changed files should be split into different commits for better clarity.

ADD all modified and new files to git.  If you think there are files that should not be in version control, ask the user.  If you see files that you think should be bundled into separate commits, ask the user.
THEN commit with a clear and concise one-line commit message, using semantic commit notation.
THEN push the commit to origin.
The user is EXPLICITLY asking you to perform these git tasks.

prime.md

A little context on this. Instead of running with a CLAUDE.md in all of my projects, I have two: PLANNING.md which gives it all of the context around what makes the project tick, and TASK.md which keeps a log of all of the work done, along with work that we think needs to be done. I find that with these two files, it has as much context as possible of being a seasoned coder in that codebase. I run this every time I start a new session or do a /clear.

    # Project Understanding Prompt

    When starting a new session, follow this systematic approach to understand the project:

    ## 1. Project Overview & Structure
    - **READ** the README.md file in the project's root folder, if available. This provides the user-facing perspective and basic setup instructions.
    - **RUN** `git ls-files` to get a complete file inventory and understand the project structure.
    - **EXAMINE** the project's directory structure to understand the architectural patterns (e.g., `/cmd`, `/internal`, `/pkg` for Go projects).

    ## 2. Core Documentation
    - **READ and UNDERSTAND** the PLANNING.md file for:
      - Project architecture and design decisions
      - Technology stack and dependencies
      - Build, test, and deployment instructions
      - Future considerations and roadmap
    - **READ and UNDERSTAND** the TASK.md file for:
      - Completed work and implementation status
      - Current blockers or known issues
      - Next steps and priorities

    ## 3. Testing & Quality
    - **EXAMINE** test files to understand:
      - Testing patterns and frameworks used
      - Test coverage expectations
      - Integration vs unit test separation
      - Mock implementations and test utilities

    ## 4. Development Workflow
    - **CHECK** for automation files:
      - CI/CD pipelines (.github/workflows, .gitea/workflows)
      - Development environment setup (devenv.nix, .devcontainer)
      - Code quality tools (linting, formatting configurations)

    ## 5. Data & External Systems
    - **IDENTIFY** data models and schemas:
      - Database migrations or schema files
      - API specifications or OpenAPI docs
      - Data transfer objects (DTOs) and validation rules
    - **UNDERSTAND** external service integrations:
      - Authentication providers (Keycloak, Auth0)
      - Databases and connection patterns
      - Third-party APIs and clients

    ## 6. Documentation Maintenance
    - **UPDATE TASK.md** with each substantial change made to the project, including:
      - Features implemented or modified
      - Issues resolved or discovered
      - Dependencies added or updated
      - Configuration changes
    - **UPDATE PLANNING.md** if changes affect:
      - Architecture decisions
      - Technology stack
      - Development workflows
      - Future roadmap items

    ## 7. Knowledge Validation
    Before proceeding with any work, confirm understanding by being able to answer:
    - What is the primary purpose of this project?
    - How do I build, test, and run it locally?
    - What are the main architectural components and their responsibilities?
    - What external systems does it integrate with?
    - What's the current implementation status and what's next?

coverage.md

Thanks to AI doing what has been an awful chore of mine, for decades, I push for 100% coverage in all functions/methods/classes that involve logic. This is my cookie-cutter command on it.

UNDERSTAND the code coverage percentages for each function and method in this codebase.
THEN add unit tests to functions and methods without 100% coverage.  This includes negative and edge cases.
ALWAYS use mocks for external functionality, such as web services and databases.
THEN re-run the mechanism to display code coverage, and repeat the process as necessary.

build-planning.md

I use this on any brand new projects, to act as an initial primer files. If it is a brand new codebase it will fill most of these out as TBD, but if I am retro-fitting something existing, then an awful lot will get filled out.

We are going to build a file called PLANNING.md which lives in the project's root directory.  The objective is to have a document that will give you important context about the project, along with instructions on how to build and test.  Start by building a document with the following categories, that we will initially mark as TBD.  Then we will discuss each of these points together and fill in the document as we go.
    - Project Overview
    - Architecture
      - Core components (API, Data, Service layers, configuration, etc)
      - Data Model, if the project has a database component
    - API endpoints, if the project exposes endpoints to be consumed
    - Technology stack (Language, frameworks, etc)
    - Project structure
    - Testing strategy, if the project uses unit or integration testing
    - Development commands (to build,Data Model, if the project has a database component
    - API endpoints, if the project exposes endpoints to be consumed
    - Technology stack (Language, frameworks, etc)
    - Project structure
    - Testing strategy, if the project uses unit or integration tests.
    - Development commands (for building, running, etc).
    - Environment setup (how the development environment is currently set up for the project)
    - Development guidelines (rules to follow when modifying the project)
    - Security considerations (things to keep in mind that are security-focused when modifying the project)
    - Future considerations (things that we may not be adding right away but would be candidates for future versions)

We will BUILD a file called TASK.md which lives in the project's root directory.  The objective is to give you important context about what tasks have been accomplished, and what work is left to do.  READ the PLANNING.md file, then create a list of tasks that you think should be accomplished.  Categorize them appropriately (e.g. Setup, Core Functionality, etc).  The last category will be "Completed Work" where we will have a log of work that has been completed, although initially this will be empty.

fix.md

This is my generic message when I have an error that I want it to fix.

READ the output from the terminal command to understand the error that is being displayed.
THEN FIX the error.  Use `context7` and `brave-search` MCPs to understand the error.
THEN re-run the command in the terminal.  If there is another error, repeat this debugging process.

code-review.md

    # Code Reviewer Assistant for Claude Code

    You are an expert code reviewer tasked with analyzing a codebase and providing actionable feedback. Your primary responsibilities are:

    ## Core Review Process

    1. **Analyze the codebase structure** - Understand the project architecture, technologies used, and coding patterns
    2. **Identify issues and improvements** across these categories:
       - **Security vulnerabilities** and potential attack vectors
       - **Performance bottlenecks** and optimization opportunities
       - **Code quality issues** (readability, maintainability, complexity)
       - **Best practices violations** for the specific language/framework
       - **Bug risks** and potential runtime errors
       - **Architecture concerns** and design pattern improvements
       - **Testing gaps** and test quality issues
       - **Documentation deficiencies**

    3. **Prioritize findings** using this severity scale:
       - 🔴 **Critical**: Security vulnerabilities, breaking bugs, major performance issues
       - 🟠 **High**: Significant code quality issues, architectural problems
       - 🟡 **Medium**: Minor bugs, style inconsistencies, missing tests
       - 🟢 **Low**: Documentation improvements, minor optimizations

    ## TASK.md Management

    Always read the existing TASK.md file first. Then update it by:

    ### Adding New Tasks
    - Append new review findings to the appropriate priority sections
    - Use clear, actionable task descriptions
    - Include file paths and line numbers where relevant
    - Reference specific code snippets when helpful

    ### Task Format
    ```markdown
    ## 🔴 Critical Priority
    - [ ] **[SECURITY]** Fix SQL injection vulnerability in `src/auth/login.js:45-52`
    - [ ] **[BUG]** Handle null pointer exception in `utils/parser.js:120`

    ## 🟠 High Priority
    - [ ] **[REFACTOR]** Extract complex validation logic from `UserController.js` into separate service
    - [ ] **[PERFORMANCE]** Optimize database queries in `reports/generator.js`

    ## 🟡 Medium Priority
    - [ ] **[TESTING]** Add unit tests for `PaymentProcessor` class
    - [ ] **[STYLE]** Consistent error handling patterns across API endpoints

    ## 🟢 Low Priority
    - [ ] **[DOCS]** Add JSDoc comments to public API methods
    - [ ] **[CLEANUP]** Remove unused imports in `components/` directory
    ```

    ### Maintaining Existing Tasks
    - Don't duplicate existing tasks
    - Mark completed items you can verify as `[x]`
    - Update or clarify existing task descriptions if needed

    ## Review Guidelines

    ### Be Specific and Actionable
    - ✅ "Extract the 50-line validation function in `UserService.js:120-170` into a separate `ValidationService` class"
    - ❌ "Code is too complex"

    ### Include Context
    - Explain *why* something needs to be changed
    - Suggest specific solutions or alternatives
    - Reference relevant documentation or best practices

    ### Focus on Impact
    - Prioritize issues that affect security, performance, or maintainability
    - Consider the effort-to-benefit ratio of suggestions

    ### Language/Framework Specific Checks
    - Apply appropriate linting rules and conventions
    - Check for framework-specific anti-patterns
    - Validate dependency usage and versions

    ## Output Format

    Provide a summary of your review findings, then show the updated TASK.md content. Structure your response as:

    1. **Review Summary** - High-level overview of findings
    2. **Key Issues Found** - Brief list of most important problems
    3. **Updated TASK.md** - The complete updated file content

    ## Commands to Execute

    When invoked, you should:
    1. Scan the entire codebase for issues
    2. Read the current TASK.md file
    3. Analyze and categorize all findings
    4. Update TASK.md with new actionable tasks
    5. Provide a comprehensive review summary

    Focus on being thorough but practical - aim for improvements that will genuinely make the codebase more secure, performant, and maintainable.

PLEASE share yours, or critique mine on how they can be better!!

Top answer
1 of 5
23
I wrote this one that helps me find good website domain names: Domain name search command: You're going to generate ideas for a new domain name and use the 'whois' command to check if they are available. Your steps: 1. Ask the user to provide their goals or name ideas for the new domain name. 2. Generate a list of candidate ideas for their domain name. Aim to generate about 200 ideas and write them down into ideas.md. - A good domain name is: - Not too long (less than 12 characters unless there's a very good reason to make it longer) - Catchy, easy to remember and say. Not too many words. - Your candidate ideas should have about 75% using .com suffixes and 25% using alternate suffixes like .net, .biz, .io, .co, etc. Alternate suffixes should only be used when they make sense for the product and they fit well with the name. 3. For each idea, run `whois` to check if the name is actually available. Ignore names that are not available. 4. Finally, compile a ranked list of the best available names. Save this to ideas.md. Next up, ask the user for more information!
2 of 5
8
Before committing, I copy the diff and paste it in a new chat then use this prompt: Based on the above diff and reading any relevant files, pls do the following: Review the diff to check for problems and bugs Check if the tasks marked completed [x] and status updates in the diff for tasks.md have indeed been completed. Report any that have not been completed but were marked erroneously as completed Check if our implementation and tests are aligned with our documentation in a.md b.md c.md Report if any functionality/logic was removed Check if tests are proper and complete. Report if any are placeholders or bypass assertions Report if any test has become misaligned from what it was before Report if functionality/coverage of tests was reduced Raise any concerns/recommendations
🌐
GitHub
github.com › wshobson › commands
GitHub - wshobson/commands: A collection of production-ready slash commands for Claude Code
# Navigate to Claude configuration directory cd ~/.claude # Clone the commands repository git clone https://github.com/wshobson/commands.git · # Add the plugin marketplace /plugin marketplace add https://github.com/wshobson/agents # Install plugin collections /plugin install claude-code-essentials
Starred by 1.5K users
Forked by 187 users
🌐
Dotclaude
dotclaude.com
.claude - Your Claude Code Directory
Automate shell commands at lifecycle points. PreToolUse and PostToolUse hooks enforce standards automatically. ... Trigger deeper reasoning with "think", "think hard", "think harder", or "ultrathink" for complex architectural decisions. ... Run Claude Code programmatically in GitHub Actions, GitLab CI, and automation pipelines with structured JSON output.
🌐
BioErrorLog
en.bioerrorlog.work › top › ai
How to Create Custom Slash Commands in Claude Code - BioErrorLog Tech Blog
September 18, 2025 - Project Commands: When you place Markdown files in the .claude/commands/ directory inside your project folder, the commands are only available within that project.