Thinking Mode Guidelines
- Standard: Routine coding tasks
- “Think”: Architecture decisions, complex debugging
- “Think hard/harder”: System design, performance optimization
- “Ultrathink”: Major architectural changes, complex analysis
Ta treść nie jest jeszcze dostępna w Twoim języku.
These advanced techniques represent the cutting edge of Claude Code usage. From extended thinking modes that unlock Claude’s deepest reasoning capabilities to sophisticated MCP integrations and custom automation, these tips will help you achieve expert-level proficiency.
Claude Code supports various thinking modes for different complexity levels:
# Standard thinking (default)"Implement user authentication"
# Extended thinking (~5,000 tokens)"Think about this problem: How should we architect a real-time collaborative editing system?"
# Deep thinking (~10,000 tokens)"Think hard about this: Design a distributed caching system with automatic invalidation and sharding"
# Ultra thinking (~128,000 tokens)"Ultrathink: Analyze our entire codebase and propose a microservices migration strategy"
Thinking Mode Guidelines
Real-world thinking examples:
"Think hard about how to design a multi-tenant SaaS architecture that supports: - Data isolation per tenant - Shared infrastructure - Custom domains - Flexible pricing tiers - Horizontal scaling"
# Claude spends ~10k tokens reasoning through:# - Database strategies# - Security implications# - Performance tradeoffs# - Implementation approaches
"Ultrathink: Our application is experiencing intermittent slowdowns under load. Analyze potential causes and solutions considering: - Current architecture - Database queries - Caching strategy - Network topology - Resource constraints"
# Deep analysis with concrete recommendations
Model Context Protocol (MCP) servers extend Claude Code’s capabilities:
Install MCP Servers
npm install -g @modelcontextprotocol/server-githubnpm install -g @modelcontextprotocol/server-postgresnpm install -g @modelcontextprotocol/server-puppeteer
Configure in .mcp.json
{ "servers": { "github": { "command": "npx", "args": ["@modelcontextprotocol/server-github"], "env": { "GITHUB_TOKEN": "${GITHUB_TOKEN}" } }, "database": { "command": "npx", "args": ["@modelcontextprotocol/server-postgres"], "env": { "DATABASE_URL": "${DATABASE_URL}" } }, "browser": { "command": "npx", "args": ["@modelcontextprotocol/server-puppeteer"] } }}
Use MCP Tools
# GitHub operations"Create an issue for the authentication bug""List all open PRs that need review"
# Database queries"Show me the user table schema""Find users who haven't logged in for 30 days"
# Browser automation"Test the login flow in the browser""Take screenshots of the dashboard"
Build custom MCP servers for your specific needs:
import { Server } from '@modelcontextprotocol/server';
const server = new Server({ name: 'project-tools', version: '1.0.0'});
// Custom tool for your projectserver.addTool({ name: 'deploy-staging', description: 'Deploy current branch to staging', inputSchema: { type: 'object', properties: { branch: { type: 'string' } } }, handler: async ({ branch }) => { // Implementation return { success: true, url: 'https://staging.example.com' }; }});
server.start();
Custom MCP Use Cases
Enable Vim mode for efficient text navigation:
# Enable Vim mode during a session/vim
# Toggle Vim mode on/off/vim
Vim mode features:
# Quick navigationgg # Go to startG # Go to end5j # Down 5 lines/pattern # Search forwardn # Next match
# Efficient editingciw # Change inner wordda" # Delete around quotesyi( # Yank inside parentheses. # Repeat last change
Set up automated PR reviews with custom focus:
Install GitHub App
/install-github-app# Follow OAuth flow
Configure Review Settings
review: enabled: true trigger: - on_pr_opened - on_pr_updated
direct_prompt: | Review this PR focusing on: 1. Security vulnerabilities 2. Performance issues 3. Logic errors 4. Missing error handling
Be concise. Only report actual issues.
ignore_patterns: - "*.test.js" - "*.md" - "package-lock.json"
Custom Review Commands
# In PR comments@claude-code review security@claude-code suggest improvements@claude-code check performance
Real-world results from teams:
“Claude catches actual bugs while humans focus on style. It found a race condition our senior engineers missed.” - Security Team
Run multiple Claude Code instances for complex projects:
# Terminal 1: Backend Developmentclaude --add-dir ./backend"Implement new authentication endpoints"
# Terminal 2: Frontend Developmentclaude --add-dir ./frontend"Create login UI components"
# Terminal 3: Database Migrationsclaude --add-dir ./database"Design schema for authentication"
# Terminal 4: Integration Testingclaude --add-dir ./tests"Write integration tests for auth flow"
Multi-Instance Benefits
Coordination strategies:
# Shared workspace for coordinationmkdir .claude/shared
# Instance 1 generates interface"Generate TypeScript interfaces for the API and save to .claude/shared/api.types.ts"
# Instance 2 uses interface"Implement frontend using types from .claude/shared/api.types.ts"
Pull in reference implementations and documentation:
# Create reference directorymkdir -p .claude/references
# Pull in examples"Download the Express.js authentication example into .claude/references/""Copy the OAuth2 flow diagram from the RFC into our docs"
# Use as reference"Implement OAuth2 similar to the reference in .claude/references/ but adapted for our architecture"
Teach Claude your coding style:
Collect Style Examples
mkdir .claude/style-guide# Add your best code examples
Analyze Your Style
"Analyze the code in .claude/style-guide/ and document my coding patterns, naming conventions, and architectural preferences"
Update CLAUDE.md
"Update CLAUDE.md with the coding style analysis"
Apply Consistently
"Refactor this module to match our style guide"
Style elements to capture:
Guide Claude through complex reasoning:
# Instead of direct request"Fix the performance issue"
# Use chain-of-thought"Let's debug this performance issue step by step:1. First, identify all database queries in the request path2. Then analyze each query for N+1 problems3. Check for missing indexes4. Look for unnecessary data fetching5. Propose optimizations for each issue found"
Chain-of-Thought Patterns
Effective patterns:- "Let's think through this step by step"- "First... Then... Finally..."- "Consider the following aspects"- "Analyze... then propose..."- "Break this down into..."
Have Claude help optimize your Claude Code usage:
# Analyze your usage patterns"Review my conversation history and identify:1. Repetitive tasks I could automate2. Inefficient prompting patterns3. Opportunities for custom commands4. Common mistakes to add to CLAUDE.md"
# Optimize your CLAUDE.md"Analyze our CLAUDE.md file and suggest improvements based on Claude Code best practices"
# Create custom workflows"Based on my usage patterns, create custom slash commands for my most common tasks"
# Improve prompting"Review my prompts and suggest more effective ways to communicate with Claude Code"
Meta-development insights:
Combining these advanced techniques creates powerful workflows:
# Morning: Architecture Designclaude --dangerously-skip-permissions"Ultrathink: Design our new microservices architecture considering our current monolith constraints"
# Parallel Implementation# Terminal 1claude --add-dir ./services/user"Implement the user service based on the architecture"
# Terminal 2claude --add-dir ./services/order"Implement the order service based on the architecture"
# Integration Testing"Use the browser MCP to test the full flow"
# Automated Review"Create PR with comprehensive description"# Claude reviews automatically via GitHub App
# Meta-optimization"Review today's work and suggest workflow improvements"
These advanced techniques represent a new paradigm in software development:
With advanced techniques mastered, learn how to scale these practices across your team. Continue to Team Collaboration for best practices in collaborative AI-assisted development.