Skip to main content
The technical-runbook skill produces a comprehensive operations manual for a named service, written to reduce Mean Time to Recovery (MTTR) rather than explain system design. When an engineer is paged at 3 AM they need exact commands and decision trees — not architecture rationale. This skill follows Google SRE Book principles: document what to do, link to the System Architecture Document for why it was designed that way, and keep every step executable by someone who has never seen the service before.
Type: Workflow · Estimated time: 2–4 hours · Standards: Google SRE Book runbook format · Output file: .engineering-docs/17-technical-runbook.md · Conditional skill — include once a service runs in production and especially before handing it to a new on-call rotation or a new team.

Best for

New service pre-launch

Documenting operations procedures for a new service before it goes to production.

Tribal knowledge capture

Capturing tacit knowledge from senior engineers about how a legacy service behaves under stress.

Team handoff

Preparing on-call documentation before a service is handed to a new team or on-call rotation.

Alert reference

Creating the reference document linked directly from monitoring alert annotations and runbook URLs.

What it produces

The generated runbook follows the Google SRE standard and covers every section an on-call engineer needs to resolve common incidents without calling the original developer:

How to invoke it

Pass the service name as the argument. The richer the context you provide — alert definitions, failure modes, diagnostic commands, escalation contacts — the more complete the first draft will be.

Example scenarios

Write a runbook for the PayFlow payment gateway applicationProduces alert response procedures for high 5xx rates, DB connection exhaustion, queue depth, and PHP-FPM pool saturation, with exact diagnostic commands for each failure mode.
Create an operations manual for our webhook delivery worker serviceDocuments worker health checks, queue depth alerts, failed-job triage commands, and the procedure to safely scale workers during traffic spikes.
Document how to operate and troubleshoot our Redis session cacheCovers memory pressure alerts, eviction policy diagnostics, keyspace inspection commands, and the procedure for safely flushing or migrating the cache.

Key concepts

MTTR reduction is the primary goal

Every section of the runbook asks: “Can an on-call engineer execute this step in under 5 minutes?” Vague instructions like “check the logs” are replaced with exact commands, expected outputs, and decision trees. A runbook that reduces MTTR from 2 hours to 15 minutes for common failures pays for its authorship cost in the first incident it handles.

Certificate and secret management

The skill includes dedicated sections for TLS certificate inventory (with expiry dates and auto-renewal status) and secret inventory (API keys, database passwords, encryption keys). Both include zero-downtime rotation procedures — because certificate expiry and leaked credentials are among the most common preventable outages.

Performance profiling procedures

When the service is slow but not failing, engineers need profiling guidance, not restart-and-hope. The runbook documents Xdebug, Blackfire, APM slow transaction traces, and MySQL slow query log analysis, along with safe sampling strategies for production use.

Runbook validation drills

A runbook that has never been tested is a hypothesis. The skill includes a quarterly review checklist — every diagnostic command verified, every escalation contact confirmed current, every alert checked against the live monitoring system — plus a drill log with pass/fail results.

Living document

Each procedure section carries a “Last Verified” date. The runbook update belongs in the deployment checklist: if the system changes, the runbook must change with it.

Interview process

The agent conducts a mandatory interview before drafting, loading prior .engineering-docs/ files to avoid re-asking known facts:
1

Context loading

Reads existing documents (system-architecture, deployment-plan, SLO document) to extract known tech stack, hosting, alert thresholds, and escalation contacts.
2

Critical alerts (≤ 2–3 questions)

Asks only about details not covered in prior documents — primarily: what are the most common alerts that trigger for this service?
3

Escalation contacts

Confirms the on-call rotation, secondary contact, and manager (if not already known from the architecture document).
4

Document generation

Drafts the full runbook with exact diagnostic commands for each alert, common failure modes, and all maintenance procedures.
5

Revision

Incorporates user feedback; checks cross-document consistency (alert names must match monitoring definitions in the architecture); updates the Change Log.

Output structure

The generated .engineering-docs/17-technical-runbook.md mirrors the template structure exactly:
17-technical-runbook.md (structure)

Handoff

Reads from

  • 7-system-architecture.md — components, dependencies, infrastructure
  • 16-deployment-plan.md — deployment and rollback steps
  • 19-slo-error-budget.md — alert thresholds defined by the SLO
  • 9-api-design.md — endpoints to monitor and diagnose

Feeds into

  • Incident postmortems — diagnostic procedures referenced during incidents
  • 18-disaster-recovery.md — operational procedures for recovery scenarios
  • On-call handoff documentation

Quality gate

Before marking the runbook final, verify every item in this checklist:
  • Every active alert in the monitoring system has a corresponding response procedure with exact diagnostic commands
  • All diagnostic commands have been tested against the current production environment and include expected output samples
  • The Quick Reference table covers the top 5–10 symptoms and links to the correct sections
  • Each alert response procedure includes a clear escalation trigger with a specific time threshold and condition
  • The runbook includes a “Last Verified” date and the Change Log reflects the current system state
  • Certificate inventory is complete with expiry dates and rotation procedures are documented
  • Secret inventory is complete and rotation procedures (with zero-downtime path) are documented for each secret type
  • Configuration change procedure is documented with rollback steps
  • Performance profiling procedures are documented for the relevant stack
  • Multi-region/multi-server considerations are addressed (if applicable)
Runbook validation drill: Simulate an alert (inject a test error or stage a slow query) and have an engineer resolve it using only the runbook. Time it. If it takes longer than the target MTTR, the runbook needs improvement — not the engineer.