definir-slo

definir-slo is a command for Claude Code from luanpdd/kit-mcp. It costs 45 tokens per session (1,094 once invoked), scanned A, original, MIT.

An SLO design command that creates a service-level objective and an SQL view for measuring its service-level indicator. An SLO is a target for how reliably a service should behave.

In plain words
What is it for?
Use it to define a feature's target percentage, owner, and time window, then create the related planning and database files.
Why use it?
It turns a reliability target into a documented definition and a queryable measurement, so the team can check whether the service meets its target.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; positional $N argument.

Good fit Use it to define a feature's target percentage, owner, and time window, then create the related planning and database files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/luanpdd/kit-mcp/definir-slo
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/luanpdd/kit-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for definir-slo

README.md
[![agentmods](https://agentmods.dev/badge/commands/luanpdd/kit-mcp/definir-slo.svg)](https://agentmods.dev/commands/luanpdd/kit-mcp/definir-slo)
Your own site
<a href="https://agentmods.dev/commands/luanpdd/kit-mcp/definir-slo"><img src="https://agentmods.dev/badge/commands/luanpdd/kit-mcp/definir-slo.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,094 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.01094
Opus 5 $0.00023 $0.00547
Sonnet 5 $0.00009 $0.00219
Haiku 4.5 $0.00005 $0.00109

Measured 5d ago against content hash 2f891393b6b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

definir-slo scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

kit/commands/definir-slo.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cria/Atualiza:

  • .planning/slos/<slo_name>.md — definição canônica do SLO
  • supabase/migrations/<timestamp>_create_sli_<slo_name>.sql — view materializada SLI

Após: SLO está em draft status. Próximo passo: /burn-rate-status <slo_name> para validar baseline; após 1+ semana, promover de drafttest_channelprimary.

Flags:

  • --target <percent> — target % do SLO (default: agent sugere baseado em criticality, sempre ≤ 99.95%)
  • --owner <email> — owner do SLO (default: AskUserQuestion)
  • --window <duration> — sliding window (default: 30d)

Pré-requisito (Full mode): projeto Supabase configurado, schema observability com tabela de events (Phase 31 supabase-architect projeta isso).

1. Parsear argumentos

FEATURE=$(echo "$ARGUMENTS" | awk '{print $1}')
TARGET=$(echo "$ARGUMENTS" | grep -oE -- '--target [0-9.]+' | awk '{print $2}')
OWNER=$(echo "$ARGUMENTS" | grep -oE -- '--owner [^ ]+' | awk '{print $2}')
WINDOW=$(echo "$ARGUMENTS" | grep -oE -- '--window [^ ]+' | awk '{print $2}')

[ -z "$FEATURE" ] && {
  echo "Uso: /definir-slo <feature> [--target N] [--owner email]"
  exit 1
}

[ -z "$WINDOW" ] && WINDOW="30d"

2. Detectar supabase/config.toml

PROJECT_ID=""
if [ -f supabase/config.toml ]; then
  PROJECT_ID=$(grep -E '^project_id\s*=' supabase/config.toml | sed 's/.*= *"\(.*\)".*/\1/' | head -1)
fi

3. Dispatch para slo-engineer

Task(
  subagent_type="slo-engineer",
  prompt="
feature: ${FEATURE}
${TARGET:+target: ${TARGET}}
${OWNER:+owner: ${OWNER}}
window: ${WINDOW}
${PROJECT_ID:+project_id: ${PROJECT_ID}}

Aplicar skill event-based-slos. Gerar:
1. .planning/slos/<slo_name>.md (SLO definition canônico)
2. supabase/migrations/<timestamp>_create_sli_<slo_name>.sql (materialized view + pg_cron refresh)

Se target > 99.95%, recusar e explicar — métrica informativa, não SLO.
Se Full mode (mcp__supabase disponível), apply_migration; senão, output text.
"
)

Read the full file on GitHub · 109 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 109 lines · 45 tokens per session scan A 2f891393b6b4

Subscribe to this mod's changes

definir-slo is a command published in the GitHub repository luanpdd/kit-mcp (1 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 1,094 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.