Gaëtan Wittebolle.
UmamiContactFR
FR
← guides
Claude Code, the guide
Chapter 8 / 19
  • 07Specialized agents
  • 08The shortcuts that speed everything up
  • 09Permissions

Part 3 · Advanced tools

The shortcuts that speed everything up

Chapter 8 · 8 min reading

This chapter lists Claude Code's slash commands (2026 edition) by category. One row = one command, with what it does and when to use it. Reading time: 8 minutes.

What is a slash command?

A shortcut that triggers a specific behavior. You type /name, Claude runs it without you writing a long prompt.

Three families:

  1. Native: built into Claude Code (session, plan, usage, etc.)
  2. Skills and plugins: one-click install (code, review, commit, etc.)
  3. Your own: drop a markdown file in ~/.claude/skills/ and you're done

Workflow, drive your session

The fuel gauge of your agent. Skip this category and you're flying blind.

CommandWhat it doesWhen to use it
/clearWipes the entire conversationYou fully switch topic (bug fix to new feature)
/compactSummarizes the session and frees contextAs soon as you hit 50-60% context. Don't wait for 80%
/contextShows context size and what's filling itYou want to see where your tokens go
/resumePicks up a previous session with full contextYou come back to a task you paused yesterday
/rewind (or Esc Esc)Undoes recent changes AND rolls back the convoClaude heads the wrong way. Rewind early, not late
/plan (or Shift+Tab)Switches to plan mode (read-only, plan before acting)Non-trivial task, 3+ steps, architecture call
/loopReruns a command on an interval (up to 3 days)Watch a deploy, poll a build, babysit a PR
/usageShows token usage and remaining budgetCheck where you stand on your plan
/fastToggles fast mode (shorter reasoning, same model)Small tweaks, simple questions. Flip back for complex work

Tasks, daily execution

The trio that covers 80% of a dev session.

CommandWhat it doesWhen to use it
/commitReads the diff, writes a clean message, creates the commitAfter every completed feature or fix. Never on WIP
/reviewRe-reads the diff, flags bugs, security issues, inconsistencies, dead codeBefore every meaningful commit. Your safety net
/debugReproduce, isolate, diagnose, fix, verifyUnexpected behavior and you can't pinpoint the cause

Code generation

The commands that replace 20 minutes of manual setup.

CommandWhat it doesWhen to use it
/componentGenerates a typed React component (props, state, styles)New UI block from a description
/form-builderFull form (Zod + react-hook-form + shadcn/ui)Creation, edit, onboarding forms
/test-genUnit tests for existing codeYou just wrote a critical action and want coverage
/migration-sqlSupabase migration with table, RLS and indexesNew table, schema change
/prGitHub Pull Request (title, description, test checklist)Feature ready, you want it reviewed

System, configure your agent

The infrastructure of your Claude Code. Learn it once, forget it after.

CommandWhat it doesWhen to use it
/initScans the repo and writes a starter CLAUDE.mdFirst launch inside a project with no Claude setup
/agentsLists and manages available subagentsBuild a specialized agent (e.g. /front, /api)
/skillsLists and manages installed skillsInstall a skill from the registry
/pluginManages plugins (MCP servers, external integrations)Hook up Notion, Supabase, Linear, Figma
/memoryEdits memory files (user, feedback, project, reference)Save an architecture decision for the next session
/output-styleChanges response tone (concise, verbose, teaching)Match Claude to context (pair programming vs docs)
/statuslineConfigures the status line (model, tokens, context, git)Customize what stays in your terminal view

Build your own command in 30 seconds

Want a /my-workflow command that does exactly what you need? Drop a markdown file in ~/.claude/skills/my-workflow.md with this frontmatter:

---
name: my-workflow
description: What the command does
---

The full prompt Claude should execute.
You can reference files, conventions, steps.

That's it. Claude picks it up on next launch and /my-workflow is available. The Skills chapter covers the advanced patterns (arguments, subagents, allowed tools).

Takeaway, top 5 to learn first:

  1. /review before every commit, catches bugs before prod
  2. /commit to save, clean messages with no effort
  3. /debug when things break, structured diagnosis instead of guessing
  4. /compact at 50% context, keeps answer quality high
  5. /rewind when Claude drifts, faster than fixing by hand

The rest comes once you're comfortable with the workflow.

← Chapter 7

Specialized agents

Chapter 9 →

Permissions