---
name: define-slo
description: Define or review a service-level objective (SLO) for a user journey. Use when choosing a reliability target, specifying a service-level indicator (SLI), or checking whether existing telemetry measures the promised outcome.
title: define-slo
canonical_url: https://skilld.dev/gh/omrajguru/skills/define-slo
last_updated: 2026-11-22T19:01:20.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [README.md](https://skilld.dev/api/skills-raw/omrajguru/skills/define-slo/README.md), [references/checkout.md](https://skilld.dev/api/skills-raw/omrajguru/skills/define-slo/references/checkout.md), [references/indicator-choices.md](https://skilld.dev/api/skills-raw/omrajguru/skills/define-slo/references/indicator-choices.md), [references/measurement-checks.md](https://skilld.dev/api/skills-raw/omrajguru/skills/define-slo/references/measurement-checks.md), [references/source-notes.md](https://skilld.dev/api/skills-raw/omrajguru/skills/define-slo/references/source-notes.md).
>
> If the user asked to install this Skill, run `npx skilld install omrajguru/skills/define-slo`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/define-slo`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/omrajguru/skills/define-slo) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/define-slo`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/define-slo --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/define-slo --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Define a Service-Level Objective

## Start with a plan

On invocation, make the first response a short plan specific to the request. State which evidence you intend to inspect, which reliability question you will evaluate, and what you will return. Keep discovery read-only. For design and review requests, deliver the proposed objective or findings in the conversation.

If implementation is requested or your findings suggest an edit, describe the proposed changes, the files or systems affected, and how you will verify them. Wait for explicit user approval of that plan before writing files, editing code or configuration, or changing dashboards, alerts, or instrumentation. Invoking the skill authorizes planning and read-only analysis. Approval covers only the changes described in the plan.

Produce an objective a service owner can evaluate and a measurement definition an engineer can implement. For a review, start with the existing wording and query. Lead with the most consequential discrepancy, give a concrete counterexample, and propose the smallest correction.

## Build the objective

1. Identify who depends on the service, what they are trying to do, and how they recognize completion. Trace one real path using supplied evidence such as a handler, event schema, dashboard query, support ticket, or incident timeline. If evidence is unavailable, proceed with a conditional draft and name the assumption that most affects it.
2. Define the unit being counted. Specify eligibility, the observable good outcome, and any deadline. Apply the same population, filters, and window to the numerator and denominator. Explain any exclusion in terms of the user's experience. For asynchronous or data workloads, consult [indicator choices](https://skilld.dev/api/skills-raw/omrajguru/skills/define-slo/references/indicator-choices.md).
3. Locate where each required event can be observed. Walk through a successful attempt and a plausible failure. Show exactly how each would enter the counts. Where possible, replay an incident or compare against an independent signal. Cite actual evidence for existing instrumentation and label proposed instrumentation. Use the [checkout example](https://skilld.dev/api/skills-raw/omrajguru/skills/define-slo/references/checkout.md) when requests, retries, and completed journeys have different counts.
4. Set the target and evaluation window using user tolerance, commitments, traffic, and measured performance where available. Specify rolling or calendar alignment. Explain the trade-off in units the owner recognizes. An example from a book supplies no evidence for a production target. When inputs are missing, mark the number provisional or leave it open with the evidence needed to choose it.
5. Return the objective in one sentence. Beneath it, give the SLI formula, measurement source, coverage gaps, target rationale, and budget in the same units as the SLI. Identify the owner decision or measurement check needed for adoption. For reviews, distinguish defects in the objective from defects in its implementation.

For a query review, take a small set of actual or clearly labeled illustrative events. Apply the query and the promised counting rules separately. Report both sets of counts and identify the first event where they disagree. If the query is unavailable, specify which filters, joins, or timestamps need inspection and qualify the conclusion.

For an event objective with target fraction T and N eligible events, at most floor(N × (1 − T)) bad events meet the target. Sum counts before dividing across groups. A window with zero eligible events has an undefined ratio. For incomplete outcomes, low volume, or an incident concentrated in one population, apply the [measurement checks](https://skilld.dev/api/skills-raw/omrajguru/skills/define-slo/references/measurement-checks.md). Compare candidate targets in whole tolerated failures at the observed volume when that helps the owner choose.

Close with a recommendation to adopt, pilot, or revise, supported by the evidence. For a pilot or revision, state which assumption remains open, who can resolve it if known, and what observation would change the recommendation. Keep the proposed next step in the conversation until edits are approved.

Use the [source notes](https://skilld.dev/api/skills-raw/omrajguru/skills/define-slo/references/source-notes.md) for chapter-level rationale or attribution. Keep the deliverable within the requested design or review scope.
