# Performance Tuning Prompt (Draft) ## Purpose Provide a structured workflow for identifying and resolving performance bottlenecks in a service or stack. ## Instructions 1. Define performance goals and baseline metrics (CPU, RAM, latency, throughput). 2. Collect current performance data using monitoring tools. 3. Identify bottlenecks (CPU, memory, I/O, network, application logic). 4. Review and optimize service configuration and resource limits. 5. Tune application code or queries as needed. 6. Test changes in a staging environment. 7. Monitor post-tuning metrics and compare to baseline. 8. Document changes and lessons learned. ## Checklist - [ ] Baseline metrics defined - [ ] Bottlenecks identified - [ ] Config/resource limits reviewed - [ ] Code/queries optimized - [ ] Changes tested in staging - [ ] Post-tuning metrics collected - [ ] Documentation updated