AGENT SKILL

性能负载与 SLO 规划

performance-slo-planner

面向生产就绪的性能、负载和可靠性(SLO/SRE)规划。当定义服务级别目标、负载特征、容量、延迟预算、压力/浸泡/尖峰测试计划、误报基线以及可靠性目标时使用。适用于:SLO/SLA 定义、负载测试计划、性能预算、容量规划、可靠性/SRE 待办事项、延迟目标、错误预算策略。不适用于:执行负载测试(使用 Azure Load Testing 工具)、安全威胁建模、RAI 评估、隐私/合规规划,或编写/重述 PRD 需求(应引用 PRD 中现有的 NFR/FR id)。

适用职业SRE 工程师
License 许可
MIT
所属仓库
microsoft/hve-core
最近更新
2026-11-14
Stars
★ 1.6k
Forks
355

01 前言 Front Matter

name
performance-slo-planner
license
MIT
description
Performance, load, and reliability (SLO/SRE) planning for production readiness. Use when defining service level objectives, load characterization, capacity, latency budgets, stress/soak/spike test plans, false-positive baselines, and reliability targets. USE FOR: SLO/SLA definition, load testing plan, performance budget, capacity planning, reliability/SRE backlog, latency targets, error-budget policy. DO NOT USE FOR: executing load tests (use Azure Load Testing tooling), security threat modeling, RAI assessment, privacy/compliance planning, or authoring/restating PRD requirements (cite the PRD's existing NFR/FR ids instead).
argument-hint
[journeys=critical-user-flows] [traffic=assumptions]
user-invocable
true

03 SKILL.md 正文

Performance & SLO/SRE Planner

Turn vague "it should be fast and reliable" expectations into measurable SLIs, SLOs, a load model, a test matrix, and a reliability backlog for production readiness. Pairs with Azure Load Testing tooling for execution. This skill plans; it does not run the tests.

When to Use

  • Defining service level objectives and error budgets before launch.
  • Characterizing load behavior (steady, peak, spike, soak) for a system with "no characterized load."
  • Setting latency/throughput budgets and a false-positive/accuracy baseline.
  • Producing a reliability/SRE backlog for a production-readiness review.

When Not to Use

  • Running the load tests: hand the test matrix to the Azure Load Testing tools.
  • Security, RAI, or privacy concerns: use the respective specialist skill.
  • Authoring or restating requirements: cite the PRD's existing NFR ids rather than re-deriving targets.
  • Redefining user journeys: reference the PRD's existing FR ids rather than inventing flows.

Inputs

Gather what exists; flag what is missing as an assumption to validate.

  1. Business goals (BRD): the business objectives and risk tolerance behind the targets (for example revenue-critical flows, contractual SLAs) that justify each SLO and error budget.
  2. Critical user journeys: the flows that must stay fast (for example: incident ingest → display, dispatch action, alert acknowledge).
  3. Stated NFRs (PRD): latency/availability targets from the PRD's NFRs, Success Metrics, and Operational Readiness sections (for example stratified SLAs like "Critical ≤ 60s, Standard ≤ 3min").
  4. Traffic assumptions: expected and peak concurrency, request rates, and growth.
  5. Accuracy expectations: false-positive tolerance where relevant (for example alerting).

Procedure

  1. Identify SLIs. For each critical journey pick measurable indicators: latency (p50/p95/p99), availability, error rate, and accuracy/false-positive rate where relevant.
  2. Set SLOs and error budgets. For each SLI define a target, a measurement window, and the resulting error budget. Anchor each SLO to a specific PRD NFR id when present; otherwise propose a target and mark it [ASSUMPTION] for tuning.
  3. Define the load model. Specify steady-state, peak, spike, and soak profiles with concurrency/rate and duration for each.
  4. Build the test matrix. Map each load profile to the journeys it exercises, the pass/fail SLO thresholds, and the environment.
  5. Plan capacity and degradation. Note scaling assumptions, saturation points, and required graceful-degradation behavior (no silent fidelity drops).
  6. List observability hooks. Name the metrics/traces needed to measure each SLI in production; an SLO you cannot measure is not real.
  7. Write the backlog to .copilot-tracking/performance-plans/<date>-performance-slo-plan.md using the Output Format.

Output Format

# Performance & SLO Plan: <app>

## SLOs
| SLI         | Journey         | Target           | Window         | Error budget | Source                 |
|-------------|-----------------|------------------|----------------|--------------|------------------------|
| p95 latency | dispatch action | ≤ 60s end-to-end | 28-day rolling | 1%           | NFR-123 / [ASSUMPTION] |

## Load model
| Profile             | Concurrency / rate | Duration | Purpose  |
|---------------------|--------------------|----------|----------|
| Steady              | ...                | ...      | baseline |
| Peak / Spike / Soak | ...                | ...      | ...      |

## Test matrix
| Test | Profile | Journeys | Pass threshold | Env |
|------|---------|----------|----------------|-----|

## Observability hooks
- <metric/trace needed to measure each SLI>

## Backlog
1. <item>: priority, depends-on, SLO it protects

> [!CAUTION]
> This plan is an assistive artifact and does not replace professional performance, reliability, or SRE review. Validate SLO targets, error budgets, and rollback triggers with the owning team before acting on them.

Principles

  • Measurable or it's not an SLO. Every target needs a defined SLI and a way to measure it in production.
  • Anchor to the PRD, mark the rest. Use stated NFRs verbatim; flag proposed numbers [ASSUMPTION] for agency/environment tuning.
  • Plan, don't run. Output a test matrix the Azure Load Testing tools can execute; do not execute here.
  • Degradation is a requirement. Define what graceful degradation looks like, not just the happy path.
  • Review-required. This plan is assistive: carry the professional-review disclaimer and validate targets and budgets with the owning team before acting.

04 同仓库更多 Skills

microsoft
microsoft/hve-core

statistical-hypothesis-testing

Compare binary rates or average values across affected and unaffected cohorts during root cause analysis. Use when root-cause-analysis selects an applicable affected-versus-unaffected cohort comparison.

★ 1.6k
microsoft
microsoft/hve-core

root-cause-analysis

Investigate incidents, software defects, and data or process failures by forming falsifiable hypotheses, executing tests against available evidence, and iterating to a verified causal explanation or an explicit evidence blocker. Use when performing root cause analysis, incident investigation, or postmortem analysis, with cost and model choice confirmed before a full investigation.

★ 1.6k
microsoft
microsoft/hve-core

causal-evidence-likelihood

Assess how one evidence item changes an RCA hypothesis using an uncalibrated, model-elicited likelihood-ratio band. Use when root-cause-analysis selects an eligible hypothesis-evidence pair.

★ 1.6k
microsoft
microsoft/hve-core

untrusted-content-boundary

Untrusted-content boundary: treat ingested external content as data, not instructions, and refuse embedded authority changes. Preloaded by agents that read external, tracker, or user-supplied content.

★ 1.6k
microsoft
microsoft/hve-core

OpenTelemetry 遥测规范

telemetry-foundations

与 OpenTelemetry 对齐的声明式遥测词汇表和埋点约定,涵盖追踪(trace)、指标、日志以及 PII 处理。

SRE 工程师运维监控与告警
★ 1.6k
microsoft
microsoft/hve-core

PR 引用 XML 生成

pr-reference

生成 PR 引用 XML,包含提交历史和分支之间的统一差异(unified diff),并支持扩展名和路径过滤。适用于创建拉取请求描述、准备代码审查、分析分支变更、从差异中发现工作项,或生成结构化的差异摘要。

软件开发工程师代码仓库协作管理
★ 1.6k