slo-optimize
SLO Optimizer
Analyze SLO timeline trends, compute statistics over the past 28 days, and generate advisory recommendations backed by real metric values. Never modify SLO definitions directly — route to slo-manage when the user wants to apply a recommendation.
Core Principles
- Use gcx commands exclusively — do not call Grafana APIs directly.
- Trust the user's expertise — skip explanations of what SLOs or burn rates are.
- Use
-o jsonfor agent processing of structured output; default format for user display. - Show graph output for timeline data so the user can see the trend visually.
- Every recommendation MUST include supporting data (current values, projected values, or historical comparisons). No generic advice without numbers.
- This skill is advisory only. Route to slo-manage for any changes the user wants to apply.
Prerequisites
gcx configured with a context pointing to the target Grafana instance.
More from grafana/gcx
gcx
>
5explore-datasources
Discover what datasources, metrics, labels, and log streams are available in a Grafana instance. Use when the user asks what data exists, what metrics are available, what services are being monitored, or needs to find a datasource UID.
4setup-gcx
>
3gcx-observability
>
3slo-check-status
Use when the user asks about SLO health, wants an overview of all SLOs, or needs status of a specific SLO. Trigger on phrases like "how are my SLOs doing", "SLO status", "check my SLOs", "is my SLO healthy", "SLO budget", "SLO burn rate". For investigating breaching SLOs use slo-investigate. For optimization suggestions use slo-optimize. For creating or modifying SLO definitions use slo-manage.
2slo-investigate
Use when a specific SLO is breaching or alerting and the user needs to understand why — root cause analysis, dimensional breakdown, alert rule correlation, runbook access. Trigger on phrases like "investigate SLO", "why is my SLO breaching", "SLO error budget burning", "SLO alerting". For SLO status overview use slo-check-status. For creating or modifying SLOs use slo-manage. For optimization suggestions use slo-optimize.
2