Skip to content
Development
Skill

/sap-cutover-runbook

Turn a 200-step cutover Excel into a crash-safe, evidence-stamped tracker — the cutover lead stops doing 3am bookkeeping and answers "are we on the critical path?" instantly. `init` parses the runbook into a draft ledger behind a mandatory human-curation gate; `record` stamps

From plugin
sap-dev
8123 skills3 agents
Install
$ npx -y skills add sapdev-ai/sap-dev --skill sap-cutover-runbook --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/sap-cutover-runbook

Context preview

The summary Claude sees to decide when to auto-load this skill.

Turn a 200-step cutover Excel into a crash-safe, evidence-stamped tracker — the cutover lead stops doing 3am bookkeeping and answers "are we on the critical path?" instantly. `init` parses the runbook into a draft ledger behind a mandatory human-curation gate; `record` stamps

SKILL.md

sap-cutover-runbook.SKILL.md
name: sap-cutover-runbook
description: |
  Turn a 200-step cutover Excel into a crash-safe, evidence-stamped tracker — the cutover
  lead stops doing 3am bookkeeping and answers "are we on the critical path?" instantly.
  `init` parses the runbook into a draft ledger behind a mandatory human-curation gate;
  `record` stamps start/done/fail events with machine-read RFC evidence (transport import
  return code from TPALOG, job status from TBTCO, table row counts) — never a screenshot;
  `report` renders the live board with per-phase progress, blockers, and the critical path
  over the remaining dependency DAG; `checkpoint --health` composes an advisory go/no-go with
  a tri-state system-health snapshot (dumps, update backlog, qRFC/tRFC queues, locks, running
  imports). v1 is read-only toward SAP (reads only); `run` auto-execution is v2. Prerequisites:
  /sap-login profiles (one per system named in the plan); SAP NCo 3.1 (32-bit). No Z-object,
  no dev-init — safe to point at a PRD/QAS cutover target.
argument-hint: "init <runbook.xlsx|.docx|.tsv> [--commit --cutover <id>]  |  record <id> <step> <start|done|fail|skip|block|reopen> [--verify]  |  report <id> [--live]  |  checkpoint <id> <name> [--health]"

SAP Cutover Runbook — Tracker-First, Evidence-Stamped

Run the cutover off a crash-safe ledger instead of a hand-typed Excel: parse → curate → stamp events with machine-read RFC evidence → live board with critical path → advisory go/no-go at each checkpoint. **v1 never writes to SAP** (it only reads to verify); execution stays with the existing gated skills (v2 `run`).

Task: $ARGUMENTS

---

Shared Resources

| File | Token / call | Purpose | |---|---|---| | `<SAP_DEV_CORE_SHARED_DIR>/rules/skill_operating_rules.md` | *(rule)* | Mandatory operating rules — read-only here | | `<SKILL_DIR>/references/sap_cutover_ledger.ps1` | `-Action parse\|commit\|record\|state` | Local crash-safe ledger (draft, plan, append-only events, derived state) | | `<SKILL_DIR>/references/sap_cutover_verify.ps1` | `-StepType … [-System …]` | Read-only RFC step verifier (TPALOG / TBTCO / TABLE_CHECK) | | `<SKILL_DIR>/references/sap_cutover_health.ps1` | `-System … -OutDir` | Read-only RFC health snapshot (8 signals) | | `<SKILL_DIR>/references/sap_cutover_report.ps1` | `-OutDir` | Local board + critical path | | `<SKILL_DIR>/references/runbook_column_map.tsv` | map | Customer heading → canonical field synonyms; override `{custom_url}\runbook_column_map.tsv` | | `<SKILL_DIR>/references/cutover_health_defaults.json` | thresholds | Health warn/crit thresholds; override `{custom_url}\cutover_health.json` | | `/sap-login` (Skill tool) | profiles | One RFC profile per `system` named in the plan | | `<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_artifact_lib.ps1` | Step 7 | Artifact index for /sap-evidence-pack |

The **ledger directory `{artifact_dir}\cutover\<id>\` is a deliberate stable-path (Bucket-A) exception**: a different Claude session hours into the flight must find it by predictable path. That is the point — do not relocate it under `{RUN_TEMP}`.

Step 0 — Resolve Work Dir + Ledger Root

powershell -NoProfile -ExecutionPolicy Bypass -Command ". '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_settings_lib.ps1'; . '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_connection_lib.ps1'; . '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_artifact_lib.ps1'; Write-Output ('WORK_DIR=' + (Get-SapWorkDir)); Write-Output ('RUN_TEMP=' + (Get-SapRunTemp))"

Ledger dir `{LEDGER}` = `{artifact_dir}\cutover\<cutover-id>`. Set `{RUN_TEMP}` = the `RUN_TEMP=` value printed above (`Get-SapRunTemp` mints + creates the per-run scratch dir holding the log state file) — for scratch; mint it once here and reuse (re-minting breaks the `-Action end` state-file lookup).

Step 0.5 — Start Logging

powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action start -StateFile "{RUN_TEMP}\sap_cutover_runbook_run.json" -Skill sap-cutover-runbook -ParamsJson "{}"

Step 1 — Mode Dispatch

First token = `init` | `record` | `report` | `checkpoint` | `run`. Resolve `<cutover-id>` → `{LEDGER}`. Every mode except `init` hard-fails `CUTOVER_LEDGER_NOT_FOUND` if `cutover.json` is absent (curation not committed → `CUTOVER_CURATION_PENDING`). `run` → **v2**: say `NOT_YET_IMPLEMENTED — auto-execution ships in v2` and STOP.

Step 2 — init (parse → curate → commit)

**Parse.** Read the workbook/doc yourself (the /sap-docs-extract precedent: open the xlsx/docx, dump the raw grid to a TSV under `{RUN_TEMP}` preserving the header row). For a `.tsv` input, use it directly. Then:

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_cutover_ledger.ps1" -Action parse -Grid "{RUN_TEMP}\grid.tsv" -ColumnMap "<SKILL_DIR>\references\runbook_column_map.tsv" -OutDir "{LEDGER}"

Parse writes `runbook_draft.tsv` + `gaps.md`. Step type is a **PROPOSAL, MANUAL by default, never guessed upward** (a TR key → TRANSPORT_IMPORT, job/report/table tokens → the matching type). **Present the draft + gaps to the user and STOP for curation** — nothing is committed in the same run. The user reviews/corrects step types, owners, dependencies, checkpoints, and sets `auto_ok=YES` on any step they will let v2 auto-run.

**Commit** (only after the user confirms the curated draft):

… -Action commit -Draft "{LEDGER}\runbook_draft.tsv" -CutoverId "<id>" -OutDir "{LEDGER}"

Commit validates: unique ids, deps resolve, **no cycle** (`CUTOVER_DEP_CYCLE`), ≥1 checkpoint (`CUTOVER_PARSE_FAILED reason=no_checkpoint`), and downgrades any automatable step still missing its verify params to MANUAL with a WARN (never a silent automatable-without-params). Writes immutable `cutover.json` + empty `events.jsonl`. Register `cutover.json` (kind `cutover_plan`).

Step 3 — record

… -Action record -OutDir "{LEDGER}" -StepId "<step>" -Event "<start|done|fail|skip
Read more
Ships withsap-dev

SAP development automation skills for AI coding assistants. Windows-only — the skills drive SAP GUI for Windows via GUI Scripting (plus optional RFC via SAP NCo); there is no macOS/Linux path.

Get the whole plugin

Other skills on sap-dev.