🌐
Claude
code.claude.com › docs › en › slash-commands
Slash commands - Claude Code Docs
Built-in commands like /compact and /init are not supported. Have the description frontmatter field populated. The description is used in the context. For Claude Code versions >= 1.0.124, you can see which custom slash commands SlashCommand tool can invoke by running claude --debug and triggering a query.
🌐
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 - Claude Code is a CLI (Command Line Interface) that uses Anthropic’s latest models, Sonnet 4.5 and Opus 4.5, to generate code for you. You give it instructions in your terminal, and the built-in coding agent with its tools executes those commands.
Discussions

Please let us auto-accept BASH commands from Claude Code CLI : ClaudeAI
🌐 r/ClaudeAI
Share Your Claude Code Commands!
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! More on reddit.com
🌐 r/ClaudeAI
39
203
June 29, 2025
Best Custom Slash Commands for Claude Code?
Check Awesome-Claude-Code: https://github.com/hesreallyhim/awesome-claude-code More on reddit.com
🌐 r/ClaudeAI
9
3
June 23, 2025
How to make Claude Code proceed these commands without asking every single time?
Stil have same issue to this day -- did you find a fix? More on reddit.com
🌐 r/ClaudeAI
9
4
June 18, 2025
🌐
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
🌐
Shipyard
shipyard.build › blog › claude-code-cheat-sheet
Shipyard | Claude Code CLI Cheatsheet: config, commands, prompts, + best practices
# Create a personal command for all projects mkdir -p ~/.claude/commands echo "Review this code for security vulnerabilities:" > ~/.claude/commands/security.md
🌐
YouTube
youtube.com › watch
Claude Code Tutorial #6 - Slash Commands - YouTube
In this course, you'll learn how to harness the power of Claude Code within your development workflow, including how to install, setup a new project, add con...
Published   August 28, 2025
🌐
Alexop
alexop.dev › posts › claude-code-customization-guide-claudemd-skills-subagents
Claude Code customization guide: CLAUDE.md, skills, subagents explained | alexop.dev
3 days ago - Every conversation starts with Claude knowing “fetch Dexie docs before writing database code.” · The catch is context drift: in long sessions, the model can gradually deprioritize earlier system-level instructions in favor of the most recent conversation history. A saved prompt you invoke by typing /command-name.
🌐
GitHub
github.com › wshobson › commands
GitHub - wshobson/commands: A collection of production-ready slash commands for Claude Code
This repository provides 57 production-ready slash commands (15 workflows, 42 tools) that extend Claude Code's capabilities through:
Starred by 1.5K users
Forked by 187 users
🌐
GitHub
github.com › Piebald-AI › claude-code-system-prompts
GitHub - Piebald-AI/claude-code-system-prompts: All parts of Claude Code's system prompt, 20 builtin tool descriptions, sub agent prompts (Plan/Explore/Task), utility prompts (CLAUDE.md, compact, statusline, magic docs, WebFetch, Bash cmd, security review, agent creation). Updated for each Claude Code version.
4 days ago - All parts of Claude Code's system prompt, 20 builtin tool descriptions, sub agent prompts (Plan/Explore/Task), utility prompts (CLAUDE.md, compact, statusline, magic docs, WebFetch, Bash cmd, security review, agent creation). Updated for each Claude Code version.
Starred by 2K users
Forked by 295 users
Languages   JavaScript
Find elsewhere
🌐
Claude Code Commands
claudecodecommands.directory
Claude Code Commands
Discover, share, and download powerful Claude Code commands. Browse the community collection of AI-powered coding commands for Claude Code, Anthropic's official CLI for Claude.
🌐
Builder.io
builder.io › blog › claude-code
How I use Claude Code (+ my best tips)
September 29, 2025 - Don't expect fireworks, it's basically just a launcher. But it makes opening Claude Code dead simple, and you can run multiple instances in parallel in different panes in your IDE as long as they're working on different parts of your codebase. I still use Cursor for quick Command+K completions ...
🌐
Anthropic
anthropic.com › engineering › claude-code-best-practices
Claude Code: Best practices for agentic coding
There’s no required format for CLAUDE.md files. We recommend keeping them concise and human-readable. For example: # Bash commands - npm run build: Build the project - npm run typecheck: Run the typechecker # Code style - Use ES modules (import/export) syntax, not CommonJS (require) - Destructure ...
🌐
Medium
alirezarezvani.medium.com › 10-claude-code-commands-that-cut-my-dev-time-60-a-practical-guide-60036faed17f
10 Claude Code Commands That Cut My Dev Time 60%: A Practical Guide
1 month ago - 10 Custom Claude Code slash commands, subagents, and automation workflows that transformes team's productivity—with copy-paste templates you can use today.
🌐
Sshh
blog.sshh.io › p › how-i-use-every-claude-code-feature
How I Use Every Claude Code Feature - by Shrivu Shankar
November 2, 2025 - Having stuck to Claude Code for the last few months, this post is my set of reflections on Claude Code’s entire ecosystem. We’ll cover nearly every feature I use (and, just as importantly, the ones I don’t), from the foundational CLAUDE.md file and custom slash commands to the powerful world of Subagents, Hooks, and GitHub Actions.
🌐
Claude
claude.ai › public › artifacts › e2725e41-cca5-48e5-9c15-6eab92012e75
Complete Claude Code Commands Documentation
@review.md - Code quality and security review · @optimize.md - Performance analysis and optimization · @deploy-check.md - Deployment readiness and validation · Create commands directory: bash · mkdir -p .claude/commands · Save each command as a separate .md file in the .claude/commands 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
Provides a well-structured set of commands for publishing and maintaining a blogging platform, including commands for creating posts, managing categories, and handling media files.
Starred by 18.5K users
Forked by 1.1K users
Languages   Python 98.9% | Makefile 1.1%
🌐
GitHub
github.com › Njengah › claude-code-cheat-sheet
GitHub - Njengah/claude-code-cheat-sheet: Ultimate collection of Claude Code tips, tricks, hacks, and workflows that you can use to master Claude Code in minutes
# Configure MCP servers claude --mcp # MCP server management (via slash commands) /mcp # Access MCP functionality · # Complex piping operations git log --oneline | claude -p "summarize these commits" cat error.log | claude -p "find the root cause" ls -la | claude -p "explain this directory structure" # JSON output for scripting claude -p "analyze code" --output-format json # Stream JSON for real-time processing claude -p "large task" --output-format stream-json # Batch processing claude -p --max-turns 1 "quick query"
Starred by 1.1K users
Forked by 127 users
🌐
Anthropic
docs.anthropic.com › en › docs › claude-code › overview
Claude Code overview - Claude Code Docs
Claude Code maintains awareness of your entire project structure, can find up-to-date information from the web, and with MCP can pull from external data sources like Google Drive, Figma, and Slack. Automate tedious tasks: Fix fiddly lint issues, resolve merge conflicts, and write release notes. Do all this in a single command from your developer machines, or automatically in CI.