mirror of
https://github.com/luongnv89/claude-howto.git
synced 2026-05-27 22:22:36 +02:00
6238744478
Added three new major feature categories with complete documentation and examples: ## New Features ### 07-hooks/ - Event-driven automation with 6 example hook scripts - Pre/post tool hooks, session hooks, and git hooks - Auto-formatting, security scanning, test automation - Complete documentation with best practices ### 08-checkpoints/ - Conversation state snapshots and rewind capability - Safe experimentation and approach comparison - Real-world examples: DB migration, performance optimization, UI iteration - Checkpoint management commands and workflows ### 09-advanced-features/ - Planning Mode: detailed implementation plans before coding - Extended Thinking: deep reasoning for complex problems - Background Tasks: long-running operations without blocking - Permission Modes: unrestricted, confirm, read-only, custom - Headless Mode: CI/CD integration and automation - Session Management: multiple work sessions - Interactive Features: keyboard shortcuts, command history - 10+ configuration examples for different scenarios ## Documentation Updates - README.md: Added sections for all new features with examples - INDEX.md: Updated with new categories, file listings, and search keywords - QUICK_REFERENCE.md: Added quick reference for new features - claude_concepts_guide.md: Comprehensive guide sections for new concepts ## Statistics - Total files: 90+ (up from 71) - Categories: 9 (up from 6) - New hook scripts: 6 - New documentation files: 10+ - Configuration examples: 10+ scenarios All examples are production-ready and follow Claude Code best practices. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
254 lines
6.3 KiB
JSON
254 lines
6.3 KiB
JSON
{
|
|
"description": "Example Claude Code configurations for different use cases",
|
|
|
|
"examples": {
|
|
"development": {
|
|
"name": "Development Environment",
|
|
"description": "Configuration for active development work",
|
|
"config": {
|
|
"general": {
|
|
"model": "claude-sonnet-4-5",
|
|
"temperature": 0.7
|
|
},
|
|
"planning": {
|
|
"autoEnter": true,
|
|
"complexityThreshold": 3,
|
|
"requireApproval": true
|
|
},
|
|
"permissions": {
|
|
"mode": "unrestricted"
|
|
},
|
|
"backgroundTasks": {
|
|
"enabled": true,
|
|
"maxConcurrentTasks": 3
|
|
},
|
|
"hooks": {
|
|
"PreToolUse:Write": "prettier --write ${file_path}",
|
|
"PostToolUse:Write": "eslint ${file_path}",
|
|
"PreCommit": "npm test"
|
|
}
|
|
}
|
|
},
|
|
|
|
"code_review": {
|
|
"name": "Code Review Mode",
|
|
"description": "Configuration for reviewing code without modifications",
|
|
"config": {
|
|
"general": {
|
|
"model": "claude-sonnet-4-5",
|
|
"temperature": 0.3
|
|
},
|
|
"permissions": {
|
|
"mode": "readonly"
|
|
},
|
|
"extendedThinking": {
|
|
"enabled": true,
|
|
"showThinkingProcess": true
|
|
},
|
|
"planning": {
|
|
"autoEnter": false
|
|
}
|
|
}
|
|
},
|
|
|
|
"learning": {
|
|
"name": "Learning Mode",
|
|
"description": "Configuration for learning and experimentation",
|
|
"config": {
|
|
"general": {
|
|
"model": "claude-sonnet-4-5",
|
|
"temperature": 0.5
|
|
},
|
|
"permissions": {
|
|
"mode": "confirm"
|
|
},
|
|
"extendedThinking": {
|
|
"enabled": true,
|
|
"showThinkingProcess": true
|
|
},
|
|
"planning": {
|
|
"autoEnter": true,
|
|
"requireApproval": true,
|
|
"showTimeEstimates": true
|
|
},
|
|
"checkpoints": {
|
|
"autoCheckpoint": true,
|
|
"autoCheckpointInterval": 15
|
|
}
|
|
}
|
|
},
|
|
|
|
"production": {
|
|
"name": "Production Deployment",
|
|
"description": "Configuration for production operations with safety checks",
|
|
"config": {
|
|
"general": {
|
|
"model": "claude-opus-4",
|
|
"temperature": 0.1
|
|
},
|
|
"permissions": {
|
|
"mode": "confirm",
|
|
"requireConfirmationFor": ["Bash", "Git", "Write", "Edit"]
|
|
},
|
|
"hooks": {
|
|
"PreCommit": "npm test && npm run lint && npm run build",
|
|
"PrePush": "npm run test:e2e",
|
|
"PostPush": "~/.claude/hooks/notify-team.sh"
|
|
},
|
|
"checkpoints": {
|
|
"autoCheckpoint": true,
|
|
"autoCheckpointInterval": 10
|
|
},
|
|
"planning": {
|
|
"autoEnter": true,
|
|
"requireApproval": true
|
|
}
|
|
}
|
|
},
|
|
|
|
"ci_cd": {
|
|
"name": "CI/CD Pipeline",
|
|
"description": "Configuration for automated CI/CD operations",
|
|
"config": {
|
|
"general": {
|
|
"model": "claude-sonnet-4-5",
|
|
"temperature": 0
|
|
},
|
|
"permissions": {
|
|
"mode": "unrestricted"
|
|
},
|
|
"headless": {
|
|
"exitOnError": true,
|
|
"verbose": true,
|
|
"timeout": 3600
|
|
},
|
|
"logging": {
|
|
"level": "debug",
|
|
"file": "./ci-claude.log"
|
|
},
|
|
"planning": {
|
|
"autoEnter": false,
|
|
"requireApproval": false
|
|
}
|
|
}
|
|
},
|
|
|
|
"security_audit": {
|
|
"name": "Security Audit",
|
|
"description": "Configuration for security-focused code analysis",
|
|
"config": {
|
|
"general": {
|
|
"model": "claude-opus-4",
|
|
"temperature": 0.2
|
|
},
|
|
"permissions": {
|
|
"mode": "readonly"
|
|
},
|
|
"extendedThinking": {
|
|
"enabled": true,
|
|
"showThinkingProcess": true,
|
|
"minThinkingTime": 10
|
|
},
|
|
"hooks": {
|
|
"PostToolUse:Read": "~/.claude/hooks/security-scan.sh ${file_path}"
|
|
}
|
|
}
|
|
},
|
|
|
|
"performance_optimization": {
|
|
"name": "Performance Optimization",
|
|
"description": "Configuration for performance analysis and optimization",
|
|
"config": {
|
|
"general": {
|
|
"model": "claude-sonnet-4-5",
|
|
"temperature": 0.4
|
|
},
|
|
"planning": {
|
|
"autoEnter": true,
|
|
"requireApproval": true
|
|
},
|
|
"backgroundTasks": {
|
|
"enabled": true,
|
|
"maxConcurrentTasks": 5
|
|
},
|
|
"checkpoints": {
|
|
"autoCheckpoint": true,
|
|
"autoCheckpointInterval": 20
|
|
}
|
|
}
|
|
},
|
|
|
|
"pair_programming": {
|
|
"name": "Pair Programming",
|
|
"description": "Configuration for collaborative development",
|
|
"config": {
|
|
"general": {
|
|
"model": "claude-sonnet-4-5",
|
|
"temperature": 0.6
|
|
},
|
|
"permissions": {
|
|
"mode": "confirm"
|
|
},
|
|
"planning": {
|
|
"autoEnter": true,
|
|
"requireApproval": true,
|
|
"showTimeEstimates": true
|
|
},
|
|
"extendedThinking": {
|
|
"enabled": true,
|
|
"showThinkingProcess": true
|
|
},
|
|
"ui": {
|
|
"compactMode": false,
|
|
"showProgress": true
|
|
}
|
|
}
|
|
},
|
|
|
|
"refactoring": {
|
|
"name": "Large Refactoring",
|
|
"description": "Configuration for major refactoring work",
|
|
"config": {
|
|
"general": {
|
|
"model": "claude-opus-4",
|
|
"temperature": 0.3
|
|
},
|
|
"planning": {
|
|
"autoEnter": true,
|
|
"requireApproval": true,
|
|
"showTimeEstimates": true
|
|
},
|
|
"checkpoints": {
|
|
"autoCheckpoint": true,
|
|
"autoCheckpointInterval": 10,
|
|
"maxCheckpoints": 30
|
|
},
|
|
"hooks": {
|
|
"PreToolUse:Edit": "~/.claude/hooks/backup-file.sh ${file_path}",
|
|
"PostToolUse:Edit": "npm test -- --findRelatedTests ${file_path}"
|
|
},
|
|
"permissions": {
|
|
"mode": "confirm"
|
|
}
|
|
}
|
|
},
|
|
|
|
"documentation": {
|
|
"name": "Documentation Writing",
|
|
"description": "Configuration for writing documentation",
|
|
"config": {
|
|
"general": {
|
|
"model": "claude-sonnet-4-5",
|
|
"temperature": 0.7
|
|
},
|
|
"permissions": {
|
|
"mode": "unrestricted"
|
|
},
|
|
"hooks": {
|
|
"PostToolUse:Write": "markdownlint ${file_path}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|