mirror of
https://github.com/davila7/claude-code-templates.git
synced 2026-09-19 01:30:23 +08:00
054c0e56e9
Removed the deprecated 'model: sonnet' field from command frontmatter to fix compatibility issues with Claude Code. Commands will now inherit the model from the active conversation instead of using a hardcoded deprecated model identifier. Changes: - Removed 'model: sonnet' from 142 command files across all categories - Commands now use default model inheritance behavior - Preserved 'model: claude-sonnet-4-5-20250929' in gemini-review.md (valid model) - 67 commands without model field remain unchanged This resolves the "model: sonnet not found" error reported in GitHub issues and aligns with Claude Code's recommended practice of letting commands inherit the conversation model. Affected categories: - Database/Supabase commands (8 files) - Documentation commands (8 files) - Deployment commands (11 files) - Setup commands (14 files) - Performance commands (8 files) - Team commands (14 files) - Security commands (6 files) - NextJS/Vercel commands (10 files) - Sync commands (14 files) - And more across other categories 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
3.0 KiB
3.0 KiB
allowed-tools: Read, Write, Edit, Bash
argument-hint: [profile-type] | --fps | --memory | --rendering | --comprehensive
description: Use PROACTIVELY to analyze game performance bottlenecks and generate optimization recommendations across multiple platforms
Game Performance Analysis & Optimization
Analyze game performance and generate optimization recommendations: $ARGUMENTS
Current Performance Context
- Game engine: @package.json or detect Unity/Unreal/Godot project files
- Platform targets: !
find . -name "*.pbxproj" -o -name "*.gradle" -o -name "*.vcxproj" | head -3 - Asset pipeline: !
find . -name "*.meta" -o -name "*.asset" | wc -lgame assets - Build configs: !
grep -r "BuildTarget\|Platform" . 2>/dev/null | wc -lplatform configurations - Performance logs: !
find . -name "*profile*" -o -name "*perf*" | head -5
Task
Create comprehensive performance analysis with automated bottleneck detection, optimization suggestions, and platform-specific recommendations for game development projects.
Performance Analysis Areas
1. Frame Rate & Rendering Performance
- Analyze draw calls and batching efficiency
- Identify overdraw and fillrate bottlenecks
- Review shader complexity and optimization opportunities
- Evaluate mesh and texture optimization potential
- Check lighting and shadow rendering performance
2. Memory Usage Analysis
- Memory allocation patterns and potential leaks
- Texture memory usage and compression opportunities
- Audio memory optimization suggestions
- Object pooling and garbage collection analysis
- Platform-specific memory constraints evaluation
3. CPU Performance Profiling
- Script execution bottlenecks identification
- Physics simulation optimization opportunities
- AI and pathfinding performance analysis
- Animation system efficiency review
- Threading and parallelization recommendations
4. Platform-Specific Optimization
- Mobile performance considerations (battery, thermal throttling)
- Console-specific optimization guidelines
- PC hardware scaling recommendations
- VR performance requirements and optimizations
- Web/WebGL specific performance considerations
Deliverables
-
Performance Audit Report
- Current performance metrics and benchmarks
- Identified bottlenecks with severity ratings
- Platform-specific performance analysis
-
Optimization Recommendations
- Prioritized optimization suggestions
- Implementation difficulty and impact assessment
- Code and asset optimization guidelines
-
Monitoring Setup
- Performance monitoring implementation
- Key metrics tracking configuration
- Automated performance regression detection
-
Testing Strategy
- Performance testing procedures
- Target device testing recommendations
- Continuous performance monitoring setup
Implementation Guidelines
Follow game engine best practices and target platform requirements. Generate actionable recommendations with clear implementation steps and expected performance improvements.