/sap-project:sap-cutover-runbook 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]from sap-project
Parses SAP cutover Excel into a crash-safe ledger, stamps steps with machine-read RFC evidence, and renders a live board with critical path and advisory go/no-go health checks.
Ships in sap-project. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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
| 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}.
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).
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 "{}"
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.
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).
… -Action record -OutDir "{LEDGER}" -StepId "<step>" -Event "<start|done|fail|skip|block|reopen>" -Actor "<who>" [-Note "…"] [-EvidenceRef "<path>"] [-Verify "<VERIFY:..>"]
Unknown step id → CUTOVER_STEP_UNKNOWN. With --verify, first run the verifier and pass its
result into -Verify:
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_cutover_verify.ps1" -StepType <T> -System <profile> [-Trkorr <tr> -Target <sid>] [-Jobname <j>] [-Table <t> -Where <w>]
Parse VERIFY: PASS|FAIL|RUNNING|COULD_NOT_CHECK. A failed/unreachable verify is
COULD_NOT_CHECK and NEVER auto-marks the step done — record the operator's stated event,
attach the verify result as evidence, and let the human decide. Copy any --evidence file
under {LEDGER}\evidence\<step>\.
Optional --live: sweep in-flight automatable steps through the verifier first. Then:
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_cutover_report.ps1" -OutDir "{LEDGER}"
Parse CUTOVER: id=… done=n/total blocked=b critical="…" critical_min=…. The engine writes
cutover_board.md (phase table, critical path with per-step minutes, blockers, checkpoint
rollups). Present the headline and the critical path; register cutover_board.md (kind
cutover_board).
Roll up steps marked for <name> + open blockers/failures. With --health, per system
profile named in the plan:
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_cutover_health.ps1" -System <profile> -StartDate <YYYYMMDD> -Defaults "<SKILL_DIR>\references\cutover_health_defaults.json" -OutDir "{LEDGER}"
Parse HEALTH: probe=… count=… severity=… coverage=…. Compose the advisory verdict (this
is the AI layer): any HIGH probe or open blocker → NO_GO input; any COULD_NOT_CHECK
caps at GO_WITH_WARNINGS (an unreachable system is never a silent healthy); otherwise
GO. The verdict is advisory — the human decides; name every unverified critical step
explicitly. Write + register checkpoint_<name>.md + health_<ts>.tsv (kind
cutover_checkpoint / cutover_health).
Register artifacts under scope CUTOVER_<id> with Coverage/Verdict from the finding model.
Echo the mode headline. Then:
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action end -StateFile "{RUN_TEMP}\sap_cutover_runbook_run.json" -Status SUCCESS -ExitCode 0
init (parse + mandatory curation gate + crash-safe
commit), record (+ --verify RFC evidence), report (board + critical path), checkpoint
(+ --health snapshot). The only writes are local ledger files.CUTOVER_CURATION_PENDING until commit); a torn last event line is
quarantined on replay, never parsed as state; reopen supersedes done (history never
rewritten); a failed/unreachable verify is COULD_NOT_CHECK and never auto-marks done; an
unreachable health probe caps the verdict at GO_WITH_WARNINGS.cutover.json + append-only events.jsonl + derived
state.tsv) lives at the stable path {artifact_dir}\cutover\<id>\, so a fresh Claude
session hours later reconstructs identical state.run auto-execution of the 4 whitelisted step types (TRANSPORT_IMPORT →
/sap-stms, JOB_SCHEDULE → /sap-job, REPORT_RUN → /sap-run-report, TABLE_CHECK → /sap-se16n)
is v2 — whitelist + auto_ok=YES gate + liveness/identity re-verification + the
delegates' own confirm gates, never bypassed. v1 is a tracker: no verb mutates SAP.README.md (opens in a new tab)references/cutover_health_defaults.json (opens in a new tab)references/runbook_column_map.tsv (opens in a new tab)references/sap_cutover_health.ps1 (opens in a new tab)references/sap_cutover_ledger.ps1 (opens in a new tab)references/sap_cutover_report.ps1 (opens in a new tab)references/sap_cutover_verify.ps1 (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sapdev-ai/sap-dev --plugin sap-project40 skills in this plugin
/sap-auth-diagnoseDiagnoses "no authorization" failures deterministically over RFC and proposes the
exact PFCG fix — no more pasting an SU53 screenshot and hand-searching SUIM. Given
the failed authorization object (+ optional field values, read off SU53 / an ST22
dump / an application-log message), it evaluates the target user against the
AUTHORITATIVE runtime user buffer (`SUSR_USER_AUTH_FOR_OBJ_GET`, remote-enabled on
S/4HANA 1909 + ECC 6) with faithful AUTHORITY-CHECK semantics — one authorization
instance must satisfy every field, '*' matches anything, VON..BIS ranges honoured —
so the verdict can never disagree with the real kernel check the way a hand-rolled
AGR_1251/UST12 join can. It then classifies each failure (`MISSING_OBJECT` /
`MISSING_VALUE` / `BUFFER_STALE`) plus user-level `USER_LOCKED` / `USER_EXPIRED` /
`ROLE_EXPIRED`, names the closest role the user already has (with what it currently
grants), and writes a diagnosis TSV + fix-proposal + ready-to-send security request.
Read-only toward roles and users — the fix is always a proposal, never a write.
Prerequisites: SAP profile via /sap-login (RFC); SAP NCo 3.1 (32-bit). su53 (GUI
auto-scrape of the failed objects) and trace (STAUTHTRACE) modes are the documented
next phase — until then the operator supplies the failed object (Claude decodes a
pasted SU53 into the check input).
/sap-auth-requirementsDerives the SAP authorization requirements a custom development actually needs — the
deliverable Z-transactions never hand the security team. derive reads a program/FM source over
RFC, extracts the EXPLICIT AUTHORITY-CHECK surface plus the IMPLICIT one (CALL TRANSACTION ->
S_TCODE, SUBMIT -> S_PROGRAM, OPEN/DELETE DATASET/TRANSFER -> S_DATASET, CALL FUNCTION
DESTINATION -> S_RFC, DDIC table writes -> S_TABU_DIS incl. dynamic MODIFY (var)), traces each
value to its nearest literal, and validates every object/field/activity against the live
catalog (TOBJ / TACTZ) — emitting a required-auth matrix with per-row CONFIRMED / INFERRED
honesty plus an SU24 proposal draft. su24-audit lists Z/Y tcodes against USOBX_C / USOBT_C and
flags the real gap: NO_PROPOSAL / CHECK_DISABLED / ONLY_S_TCODE / PROPOSAL_PRESENT with a
staleness date. Pure RFC + offline extraction (no wrapper FM, no dev-init, runs on a bare
security profile); a static value that cannot be resolved is INFERRED, never silently
CONFIRMED. Class/interface source needs an SE24 GUI download (pass --source-files) or degrades
to COULD_NOT_CHECK. Owns the AUTHREQ_* finding namespace so it never double-reports with
/sap-review-abap's security dimension. v2: su24-maintain / su21-create (confirm-gated GUI).
Prerequisites: pinned /sap-login RFC profile; NCo 3.1 (32-bit).
/sap-bpManages SAP Business Partners via the BP transaction using SAP GUI Scripting.
Creates new partners (Organization type) or updates existing ones.
Existence check, partner creation with role/grouping selection, and
partner update with field values from a definition file.
Prerequisites: Active SAP GUI session (use /sap-login first).
/sap-change-historyAnswers "who changed this object / this data, and when" headlessly over RFC — no more
hand-joining CDHDR/CDPOS in SE16N and decoding cluster rows by eye. Resolves a business
token (PO, customer, vendor, material, sales order, G/L account, cost center …) to its
change-document class, scans CDHDR for the change headers, then pulls the fully DECODED
field-level rows (table · field · old → new, with DDIC field labels) via CHANGEDOCUMENT_READ
through the dev-init RFC wrapper — which sidesteps both the CDPOS 512-byte RFC_READ_TABLE
limit and ECC-6's CDPOS cluster storage in one call. Renders an auditable timeline + an
evidence-grade TSV, and (`--correlate`) time-orders the changes against transport imports
and /sap-diagnose evidence so "TR imported → field changed 5 min later" reads as one story.
Read-only; no writes, no SQL, no GUI. Also does `user <U>` / `window --from/--to` scans and
a `classes` map dump. Prerequisites: pinned RFC profile via /sap-login; the dev-init wrapper
Z_GENERIC_RFC_WRAPPER_TBL (via /sap-dev-init — never deployed by this skill); SAP NCo 3.1 (32-bit).
/sap-config-compareKeyed, row-level RFC diff of ONE customizing table or view across two saved
connection profiles (or two clients of one system) — the shareable answer to
"it works in QAS but not in DEV/PRD". Resolves the object on both sides, computes
the compared-field set (drops the technical client key for client-dependent tables,
excludes unreadable/too-wide columns honestly), guards against an unbounded read,
does a chunked offset-based read of each side, and runs the ONE shared keyed-diff
engine to classify every key LEFT_ONLY / RIGHT_ONLY / CHANGED. Claude then translates
the raw deltas into functional meaning using DDIC texts. Output is a diffable diff.tsv
+ summary, registered for /sap-evidence-pack. Read-only. Prerequisites: two profiles
via /sap-login (pinned LEFT + --against RIGHT); SAP NCo 3.1 (32-bit). No GUI, no
Z-object, no dev-init.
/sap-data-volumeRead-only DB growth + archivability evidence over RFC — the table-growth watch nobody
does until the disk is full. `growth` ranks tables by row count (EM_GET_NUMBER_OF_ENTRIES,
fast DB-stat counts that work on cluster tables too), diffs against a persisted local
snapshot for a rows/day trend, and flags known log-table offenders (BALDAT, EDID4, CDPOS,
DBTABLOG) and Z tables that lack housekeeping. `archivability` maps each archiving object
to its tables (ARCH_DEF), pulls its run history (ADMI_RUN/ADMI_STATS), and reports whether
a TAANA age analysis exists. Replaces manual DB02/DB15/SARA spelunking. Prerequisites:
pinned profile via /sap-login (RFC); SAP NCo 3.1 (32-bit). No GUI, no Z-object, no
dev-init — safe to point at production. `analyze` (schedule TAANA) is v1.5; `archive-run`
(SARA write/delete) is v2 and refused in v1.
Other plugins' skills for the same job