Quickstart guide for installing and using Claude Code for the first time. Use when user asks about installation, setup, getting started, or basic usage.
Provides installation, authentication, and setup instructions for Claude Code. Use when users ask about installation, first-time setup, or basic usage commands.
/plugin marketplace add reggiechan74/claude-plugins/plugin install claude-code-metaskill@claude-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Requirements: Node.js 18+
npm install -g @anthropic-ai/claude-code
Homebrew (macOS):
brew install --cask claude-code
macOS/Linux/WSL:
curl -fsSL https://claude.ai/install.sh | bash
Windows PowerShell:
irm https://claude.ai/install.ps1 | iex
claude --version
Start an interactive session and authenticate:
claude
/login
Claude.ai (Recommended):
Claude Console:
Note: Credentials are stored securely and you won't need to log in again unless you explicitly log out.
Navigate to your project directory:
cd /path/to/your/project
claude
Ask natural language questions:
"what does this project do?"
"where is the main entry point?"
"how does authentication work?"
"show me the API endpoints"
Request modifications:
"add a new function to validate email addresses"
"refactor the user controller for better error handling"
"add unit tests for the authentication module"
Approval process:
Use conversational prompts:
"what files have I changed?"
"commit my changes with a descriptive message"
"create a pull request for this feature"
| Command | Purpose |
|---|---|
claude | Start interactive mode |
claude "task" | Run single task then exit |
/help | Show available commands |
/clear | Clear conversation history |
/memory | Edit CLAUDE.md memory files |
/permissions | Configure tool permissions |
/model | Select AI model |
| Shortcut | Action |
|---|---|
Ctrl+C | Cancel current operation |
Ctrl+D | Exit Claude Code |
Ctrl+L | Clear screen (keeps history) |
Esc Esc | Rewind code/conversation |
↑/↓ | Navigate command history |
Tab | Toggle extended thinking |
? | Show help |
"Explain the project structure"
"What technologies are used here?"
"Where should I start if I want to add a new feature?"
"Find and fix any TypeScript errors"
"Resolve linting issues"
"Fix the failing tests"
"Add input validation to the signup form"
"Create a new API endpoint for user profile updates"
"Implement pagination for the product list"
"Refactor this component for better readability"
"Add error handling to all API calls"
"Improve test coverage"
❌ Vague:
"make this better"
"fix the code"
✅ Specific:
"refactor this function to reduce complexity"
"fix the null pointer exception in getUserProfile"
"add JSDoc comments to all exported functions"
Instead of:
"Build a complete user management system"
Try:
1. "Create a user model with validation"
2. "Add CRUD endpoints for users"
3. "Implement authentication middleware"
4. "Add unit tests for user operations"
Attach relevant files:
"Review @src/utils/validation.ts for security issues"
Reference specific code:
"Optimize the database query in getUsersByRole function"
Start cautious, then adjust:
/permissionsCreate .claude/CLAUDE.md:
# Project Guidelines
## Code Style
- Use TypeScript strict mode
- Prefer functional components
- Follow existing naming conventions
## Testing
- Write tests for all new features
- Maintain >80% coverage
## Git
- Use conventional commits
- Squash before merging
Set up permissions in .claude/settings.json:
{
"permissions": {
"allow": [
"Bash(npm run *)",
"Bash(git status:*)"
],
"deny": [
"Read(.env*)",
"Bash(rm:*)"
]
}
}
Headless mode for automation:
claude -p "run tests and fix failures" \
--allowedTools "Bash,Read,Edit,Write" \
--output-format json
Session management:
# Continue previous session
claude --continue "add more tests"
# Resume specific session
claude --resume <session-id> "finish the refactoring"
Custom models:
claude --model opus # For complex reasoning
claude --model haiku # For quick tasks
# Start your day
cd project
claude
# Review changes
"what did I change yesterday?"
# Continue work
"finish implementing the user profile feature"
# Commit
"commit my changes with a good message"
# Review PR
git diff main | claude -p "review these changes for issues"
# Address feedback
claude
"fix the security issue in the authentication handler"
# Start with error
claude "fix: TypeError: Cannot read property 'name' of undefined in dashboard"
# Debug
"show me where this error occurs"
"explain why this is happening"
"fix it and add tests to prevent regression"
# Verify installation
npm list -g @anthropic-ai/claude-code
# Check PATH
echo $PATH | grep npm
# Reinstall if needed
npm install -g @anthropic-ai/claude-code
# Log out and back in
claude
/logout
/login
# Or reset auth
rm -rf ~/.config/claude-code/auth.json
claude
/login
# Clear conversation
/clear
# Compact context
/compact
# Use more specific queries
Within Claude Code:
/help # Show all commands
/bug # Report an issue
/doctor # Check installation
External Resources:
Installation: ~30 seconds
npm install -g @anthropic-ai/claude-code
claude
/login
First task: Ask about your project
"what does this project do?"
Make changes: Be specific
"add input validation to the signup form"
Commit: Use natural language
"commit my changes"
That's it! You're ready to use Claude Code for development.