Learn about common workflows with Claude Code.
Navigate to the project root directory
Start Claude Code
Ask for a high-level overview
Dive deeper into specific components
Ask Claude to find relevant files
Get context on how components interact
Understand the execution flow
Share the error with Claude
Ask for fix recommendations
Apply the fix
Identify legacy code for refactoring
Get refactoring recommendations
Apply the changes safely
Verify the refactoring
View available subagents
Use subagents automatically
Explicitly request specific subagents
Create custom subagents for your workflow
api-designer
, performance-optimizer
).claude/agents/
for team sharingdescription
fields to enable automatic delegationIdentify untested code
Generate test scaffolding
Add meaningful test cases
Run and verify tests
Summarize your changes
Generate a PR with Claude
Review and refine
Add testing details
Identify undocumented code
Generate documentation
Review and enhance
Verify documentation
Add an image to the conversation
Ask Claude to analyze the image
Use images for context
Get code suggestions from visual content
Reference a single file
Reference a directory
Reference MCP resources
Provide context and ask Claude to think
Refine the thinking with follow-up prompts
--continue
to automatically continue the most recent conversation--resume
to display a conversation pickerContinue the most recent conversation
Continue in non-interactive mode
--print
with --continue
to resume the most recent conversation in non-interactive mode, perfect for scripts or automation.Show conversation picker
--continue
for quick access to your most recent conversation--resume
when you need to select a specific past conversationUnderstand Git worktrees
Create a new worktree
Run Claude Code in each worktree
Run Claude in another worktree
Manage your worktrees
npm install
, yarn
)Use text format (default)
Use JSON format
Use streaming JSON format
--output-format text
for simple integrations where you just need Claude’s response--output-format json
when you need the full conversation log--output-format stream-json
for real-time output of each conversation turnCreate a commands directory in your project
Create a Markdown file for each command
Use your custom command in Claude Code
optimize.md
becomes /optimize
).claude/commands/frontend/component.md
creates /component
with “(project:frontend)” shown in the description)Create a command file with the $ARGUMENTS placeholder
Use the command with an issue number
Create a commands directory in your home folder
Create a Markdown file for each command
Use your personal custom command
/help