Skip to content
Skills Library
DevOps & cloud · Conversion & formats

it-runbook-builder

/it-runbook-builder

Converts raw terminal command histories (Bash, Zsh, PowerShell), ITSM ticket work notes (ServiceNow, Jira), and incident bridge chat logs into standardized, audit-ready IT Runbooks and Standard Operating Procedures (SOPs) with automated pre-flight checks, parameterized variables, verification steps, and client-side secret/PII sanitization. Use this skill when an engineer or team needs to eliminate tribal knowledge, document an incident resolution, create a change management runbook, or produce a clean SOP.

Licence
MIT
Last repository change
08.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
20
Scripts
7
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 08.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 7 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/runbook_builder.py, scripts/sanitize_session_history.py, tests/deep_stress_extended.py, tests/extreme_stress_test_suite.py, tests/extreme_test_runbook_builder.py, tests/stress_test_runbook_builder.py, tests/validate-skill.py

What it does and when to use it

Converts raw terminal command histories (Bash, Zsh, PowerShell), ITSM ticket work notes (ServiceNow, Jira), and incident bridge chat logs into standardized, audit-ready IT Runbooks and Standard Operating Procedures (SOPs) with automated pre-flight checks, parameterized variables, verification steps, and client-side secret/PII sanitization. Use this skill when an engineer or team needs to eliminate tribal knowledge, document an incident resolution, create a change management runbook, or produce a clean SOP.

Original author description

Converts raw terminal command histories (Bash, Zsh, PowerShell), ITSM ticket work notes (ServiceNow, Jira), and incident bridge chat logs into standardized, audit-ready IT Runbooks and Standard Operating Procedures (SOPs) with automated pre-flight checks, parameterized variables, verification steps, and client-side secret/PII sanitization. Use this skill when an engineer or team needs to eliminate tribal knowledge, document an incident resolution, create a change management runbook, or produce a clean SOP.

How it works

  1. Overview
  2. Operating Rules & Safety Guardrails
  3. Telemetry Ingestion & Usage
  4. Runbook Structural Lifecycle
  5. Bundled Tools & Resources
Original SKILL.md headings · 126 lines, 734 words
SKILL.md preview
---
name: it-runbook-builder
description: >
  Converts raw terminal command histories (Bash, Zsh, PowerShell), ITSM ticket work notes (ServiceNow, Jira), and incident bridge chat logs into standardized, audit-ready IT Runbooks and Standard Operating Procedures (SOPs) with automated pre-flight checks, parameterized variables, verification steps, and client-side secret/PII sanitization. Use this skill when an engineer or team needs to eliminate tribal knowledge, document an incident resolution, create a change management runbook, or produce a clean SOP.
---

# IT Infrastructure Runbook & SOP Builder (`it-runbook-builder`)

## Overview

Documentation debt and unrecorded tribal knowledge impact every IT operations team, MSP, and SRE organization. When senior engineers resolve critical production outages at 2:00 AM, the fix remains trapped in terminal scrollback, bash history files, or chaotic incident chat threads. When the incident recurs, junior staff spend hours reinventing the resolution or execute partial fixes that cause cascading outages.

This skill provides an automated, zero-dependency documentation synthesis engine (`scripts/runbook_builder.py`) that ingests raw operational telemetry, strips sensitive credentials and internal IPs client-side, filters out interactive noise commands (`cd`, `ls`, `clear`), and structures the workflow into the 8 mandatory ITIL/SOC 2 runbook sections:
1. **Document Metadata & Scope** (Owner, Runbook ID, Review Cadence, Estimated Time)
2. **Variable & Parameter Dictionary** (`<TARGET_FQDN>`, `<TARGET_IP>`, `<SERVICE_NAME>`)
3. **Prerequisites & RBAC Privileges** (Required administrative access and network paths)
4. **Pre-Flight Health Checks** (Read-only state assertions before making changes)
5. **Step-by-Step Procedure** (Numbered instructions with copy-paste commands and expected outputs)
6. **Post-Execution Verification** (Explicit validation commands to prove success)
7. **Mandatory Rollback & Backout Plan** (Reverse chronological recovery sequence)
8. **Troubleshooting & Common Failure Modes** (Symptom-cause-remediation matrix)

---

## Operating Rules & Safety Guardrails

1. **Strictly Read-Only Offline Execution (Rule 3):**
   - The analysis and synthesis engine operates entirely offline on static text, transcripts, or JSON ticket dumps.
   - Never initiate live network connections or execute mutating commands against target systems.
2. **Client-Side Secret & PII Scrubbing (Rule 4):**
   - When `--sanitize` is active (default), the engine automatically redacts passwords (`-p <SECRET>`, `--password <SECRET>`), bearer tokens (`Bearer [REDACTED_BEARER_TOKEN]`), AWS access keys (`AKIA...`), SSH private keys, private IPv4 addresses (`10.x`, `172.16-31.x`, `192.168.x`), internal domains (`*.corp.internal`), and user emails.
   - Guarantees zero sensitive customer telemetry touches an external LLM or leaves the workstation.
3. **Deterministic Structure & Reversibility:**
   - Every procedure must pair state-changing commands with immediate verification assertions.
   - A backout/rollback plan is mandatory for every state change.
4. **Zero-Emoji Enterprise Tone (Rule 7):**
   - Generates authoritative, clean markdown, HTML, and Confluence wiki documentation without informal emojis or casual chat slang.

---

## Telemetry Ingestion & Usage

### Mode A: Automated CLI Engine (Recommended)

Run the zero-dependency Python script directly against your command history or ticket notes:

```bash
# Convert Bash / Linux command history to standard Markdown Runbook
python scripts/runbook_builder.py \
  --input ./history.txt \
  --title "Standard Operating Procedure: Production Nginx SSL Renewal" \
  --environment "Production Linux" \
  --format markdown \
  --sanitize \
  --output ./runbook-ssl-renewal.md

# Convert PowerShell transcript to Atlassian Confluence wiki markup
python scripts/runbook_builder.py \
  --input ./PowerShell_transcript.txt \
  --title "SOP: IIS Application Pool Remediation" \
  --environment "Windows Server 2022" \
  --format confluence \
  --sanitize \
  --output ./iis-runbook-confluence.txt

# Ingest Jira/ServiceNow ticket JSON and generate standalone responsive HTML
python scripts/runbook_builder.py \
  --input ./jira-ticket-notes.json \
  --format html \
  --sanitize \
  --output ./runbook-report.html

# Generate a sanitized SRE Portfolio Case Study (Proof-of-Work)
python scripts/runbook_builder.py \
  --input ./history.txt \
  --generate-proof-of-work \
  --sanitize \
  --output ./case-study.md
```

### Mode B: Direct Text / Snippet Paste

If executing inside an interactive LLM session, paste the raw terminal history, PowerShell commands, or ticket work notes directly into the conversation. The agent parses the commands, parameterizes environment variables, and generates the complete 8-section runbook.

---

## Runbook Structural Lifecycle

```
┌────────────────────────────────────────────────────────┐
│             1. Raw Input Ingestion                     │
│   (Bash History, PowerShell Transcripts, Ticket Notes) │
└───────────────────────────┬────────────────────────────┘
                            │
                            ▼
┌────────────────────────────────────────────────────────┐
│             2. Telemetry Cleaning & Scrubbing          │
│   - Redact passwords, bearer tokens, AWS keys, and IPs │
│   - Filter interactive noise commands (cd, ls, clear)  │
│   - Parameterize variables (<TARGET_HOST>, <PORT>)     │
└───────────────────────────┬────────────────────────────┘
                            │
                            ▼
┌────────────────────────────────────────────────────────┐
│             3. Structural Synthesis (ITIL / SOC 2)     │
│   - Derive prerequisites & RBAC permissions            │
│   - Identify pre-flight read-only checks               │
│   - Sequence numbered execution steps                  │
│   - Pair each step with verification command           │
│   - Synthesize reverse-order rollback procedure        │
│   - Compile troubleshooting & failure mode matrix      │
└───────────────────────────┬────────────────────────────┘
                            │
                            ▼
┌────────────────────────────────────────────────────────┐
│             4. Multi-Format Output Generation          │
│   (Markdown, Confluence Wiki, Standalone HTML, JSON)   │
└────────────────────────────────────────────────────────┘
```

---

## Bundled Tools & Resources

- **Core Synthesis Engine:** [`scripts/runbook_builder.py`](scripts/runbook_builder.py) — Zero-dependency Python CLI tool that parses, scrubs, and renders runbooks.
- **ITIL & SOC 2 Standards Guide:** [`references/itil-runbook-standards.md`](references/itil-runbook-standards.md) — Comprehensive technical reference on governance requirements, command parameterization, and rollback engineering.
- **Automated Test Suites:**
  - Standard Test Harness: [`tests/validate-skill.py`](tests/validate-skill.py)
  - High-Volume Throughput Benchmark: [`tests/stress_test_runbook_builder.py`](tests/stress_test_runbook_builder.py)
  - Extreme Edge Cases & Malformed Payloads: [`tests/extreme_test_runbook_builder.py`](tests/extreme_test_runbook_builder.py)
Files in this package (20)
  • .gitignore 1 KB
  • LICENSE 1 KB
  • README.md 9 KB
  • SKILL.md 8 KB
  • assets/demo.gif 106 KB
  • assets/demo.mp4 190 KB
  • assets/enterprise-runbook-template.md 1 KB
  • assets/proof-of-work-case-study-template.md 1 KB
  • references/itil-runbook-standards.md 4 KB
  • scripts/runbook_builder.py 40 KB
  • scripts/sanitize_session_history.py 2 KB
  • tests/deep_stress_extended.py 7 KB
  • tests/extreme_stress_test_suite.py 13 KB
  • tests/extreme_test_runbook_builder.py 5 KB
  • tests/stress_test_runbook_builder.py 4 KB
  • tests/validate-skill.py 8 KB
  • tests/fixtures/fixture-bash-ssl-renewal.txt 1 KB
  • tests/fixtures/fixture-jira-ticket-dns-cutover.json 1 KB
  • tests/fixtures/fixture-messy-incident-chat.txt 1 KB
  • tests/fixtures/fixture-powershell-iis-recycle.txt 1 KB

Versions

The database has no other skills named it-runbook-builder.

Database snapshot: 13.11.2026 · package version 0d14553af7cb (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100incident-runbook-templates
    Create structured incident response runbooks with step-by-step procedures, escalation paths, and recovery actions. Use when building runbooks, responding to incidents, or establishing incident response procedures.
  • 100runbook
    Create or load an operational runbook for a given topic. Searches `runbooks/` for an existing match; if none, scaffolds a new one from the standard template (Purpose / Prerequisites / Steps / Verification / Troubleshooting / Last Tested). Use when asked to "create a runbook",…
  • 100incident-runbook-templates
    Create structured incident response runbooks with step-by-step procedures, escalation paths, and recovery actions. Use when building runbooks, responding to incidents, or establishing incident response procedures.
  • 100runbook-playbook-production-sop-authoring
    Use this skill when write unambiguous, step-by-step production runbooks and Standard Operating Procedures (SOPs).
  • 100incident-runbook-templates
    Create structured incident response runbooks with step-by-step procedures, escalation paths, and recovery actions. Use when building runbooks, responding to incidents, or establishing incident resp...
  • 100runbook-generator
    Use when a service has no runbook, existing runbooks are inconsistent across teams, or on-call onboarding requires standardised operations docs. Triggers on "write a runbook", "document on-call procedures", "operational playbook", "incident playbook", or "runbook for <service>".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.