homelab/.github/prompts/performance-tuning.prompt.md
nathan 016d38d5ab feat(prompts): add Docker service lifecycle and session management workflows
- Add service management prompts (review, standardize, troubleshoot, integration)
- Add Docker Swarm migration and tutoring workflows (swarm-migration, swarm-tutor)
- Add SSO onboarding guide for Authentik integration (sso-onboarding)
- Add session lifecycle prompts (start, end, status) for context continuity
- Add node bootstrap scripts for Debian Trixie (day0bootstrap.sh) and Ubuntu/Debian (pi_init.sh)

These prompts implement gated, step-by-step workflows with explicit confirmation
requirements to prevent accidental changes during service operations. Bootstrap
scripts standardize IP configuration (10.0.0.200) and install Docker + Ansible
on new nodes.
2026-04-12 16:30:53 -04:00

875 B

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