/sap-project:sap-user-guide guide <probe-run-folder | "TXN: scenario"> [--with-screens] [--lang EN|JA|ZH] [--docx] [--uat] [--no-writes] [--output <dir>] | pack <pack.tsv> [--lang ..] [--docx]from sap-project
Generates end-user training guides and UAT scripts from recorded SAP GUI transactions, using DDIC field labels and F1 documentation via RFC. Optionally replays actions for screenshots.
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.
You compose an end-user guide (and UAT script) from a recorded walkthrough: harvest the probe folder, resolve DDIC labels + F1 docs over RFC, optionally replay to capture screenshots (confirm-gated — replay executes the transaction), and write business-language step prose over the assembled skeleton.
Task: $ARGUMENTS
The harvest, DDIC texts, and skeleton are scripts; you write the business-language step text and narrate; the interpreter replays one action at a time.
| File | Token / call | Purpose |
|---|---|---|
<SAP_DEV_CORE_SHARED_DIR>/rules/safety_policy.md + <SAP_DEV_CORE_SHARED_DIR>/scripts/sap_safety_gate.ps1 | Rule 0 | Environment guard — Step 2.5 runs -Action assert before the write |
<SKILL_DIR>/references/sap_guide_compose.ps1 | -Action harvest|compose | Parse probe folder + assemble guide skeleton (local) |
<SKILL_DIR>/references/sap_guide_ddic_texts.ps1 | -Tcode -Fields | DDIC labels + F1 docs over RFC |
<SKILL_DIR>/references/sap_guide_replay.vbs | via 32-bit cscript | Single-action replay + screen-identity verify (GUI) |
<SKILL_DIR>/references/sap_guide_replay.screens.json | baseline | Golden-screen baseline (generic deps only) |
/sap-gui-probe · /sap-gui-inspect | sub-skills | fresh capture / screenshot per step |
docx | sub-skill | --docx rendering |
/sap-login | sub-skill | Session (only for --with-screens) |
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'; Write-Output ('WORK_DIR=' + (Get-SapWorkDir)); Write-Output ('RUN_TEMP=' + (Get-SapRunTemp))"
Then sap_log_helper.ps1 -Action start -StateFile {RUN_TEMP}\sap_user_guide_run.json.
{OUT} = Get-SapArtifactDir -ScopeKey TCODE_<TXN> -Skill sap-user-guide (from
sap_artifact_lib.ps1; creates the dir) — the artifact output dir Steps 3–6 write to and
Step 7 registers.
guide | pack. A guide <folder>: validate it has sap_gui_probe_run.json + >=1
step_NN_action.json (else GUIDE_INPUT_INVALID). A guide "TXN: scenario" with no folder ->
delegate /sap-gui-probe drive first (its gates apply), then compose from the fresh folder.
--with-screens)Rule 0 first (safety_policy.md; --with-screens replay only — default guide, pack, and --no-writes skip it):
powershell -NoProfile -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_safety_gate.ps1" -Action assert -Skill sap-user-guide —
SAFETY: ALLOW (0) proceed; TYPED_CONFIRM_REQUIRED (3) -> the operator types the shown
PROD <SID>/<CLIENT> token, re-run with -ConfirmationText '<their verbatim answer>', proceed only
on ALLOW_CONFIRMED; REFUSED class=<C> (1) / ERROR (2) -> STOP, end FAILED with
-ErrorClass <C>, relay the remediation lines — never bypass or work around it manually. The typed-SID confirm below still applies after ALLOW/ALLOW_CONFIRMED.
Replay EXECUTES the transaction. Classify every recorded action READ/WRITE (verb + VKeys 11/14/27/28/33,
same classifier as /sap-gui-probe); present tcode, step count, and the explicit write-action list
for <SID>/<CLIENT>; proceed only on yes (typed <SID> on a non-DEV/production-grade client).
--no-writes truncates before the first write instead of gating.
powershell -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_guide_compose.ps1" -Action harvest -RunFolder "<folder>" -OutDir "{OUT}"
-> steps.tsv + fields_request.tsv (the (table,field) tokens from the findById paths).
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_guide_ddic_texts.ps1" -Tcode <TXN> -FieldsFile "{OUT}\fields_request.tsv" -Lang <L> -OutDir "{OUT}" -SharedDir "<SAP_DEV_CORE_SHARED_DIR>"
-> guide_meta.tsv (tcode title/program/dynpro) + guide_fields.tsv (label, rollname, F1 doc excerpt;
a field whose text can't be fetched is COULD_NOT_CHECK, never dropped). The wrapper-based full-dynpro
enrichment (RPY_DYNPRO_READ) is v1.5 and SKIPs when the wrapper is absent.
--with-screens)Per step: run sap_guide_replay.vbs (32-bit cscript, %%SESSION_PATH%%/%%ATTACH_LIB_VBS%%/
%%RUN_FOLDER%%/%%STEP_INDEX%% substituted) — it does ONE action then verifies live vs recorded
(program,dynpro); REPLAY_DIVERGED -> stop, keep partial captures, honesty note. On PASS, delegate
/sap-gui-inspect screenshot topmost -> {OUT}\screenshots\step_NN.png. /n cleanup at the end.
powershell -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_guide_compose.ps1" -Action compose -Tcode <TXN> -Lang <L> -FieldsTsv "{OUT}\guide_fields.tsv" -ScreensDir "{OUT}\screenshots" [-Uat] -OutDir "{OUT}"
Then you write the business-language step prose (the TODO lines) from the recorded notes + screen
identities + field labels. --docx -> hand guide_<TXN>_<LANG>.md to the docx skill. pack iterates
pack.tsv rows through guide then composes curriculum.md (TOC, exercises, test-data prerequisite
SUGGESTIONS -> /sap-bp//sap-mm01//sap-va01).
Register guide / uat_script / curriculum artifacts (coverage CHECKED when all touched fields
resolved, COULD_NOT_CHECK otherwise). Print steps, fields resolved/COULD_NOT_CHECK, screenshots, paths.
sap_log_helper.ps1 -Action end with status + error_class: GUIDE_INPUT_INVALID, REPLAY_DIVERGED,
NO_SESSION, RFC_LOGON_FAILED, USER_ABORTED.
guide (harvest -> DDIC texts -> optional replay+screens -> compose, md/docx,
--uat, --no-writes, --lang), pack (curriculum + test-data suggestions).--with-screens replays recorded actions on a
live session (executes the transaction) — confirm-gated with write actions enumerated, so this
session verified the harvest / DDIC / compose paths, not a live replay. The replay VBS ships correct
(attach-lib, control-ID dispatch, recorded-vs-live screen-identity verify -> REPLAY_DIVERGED) with a
golden-screen baseline for its generic deps.--uat full expected-result engine (v1.5); wrapper-based full-dynpro field inventory
(v1.5); pack --create-data invoking the tcd skills (v2). ECC 6 shares the identical RFC path
(DOCU_GET standardised for DOKTL-CLUSTER); EC2 was unavailable this session for the ECC re-confirm.What SKILL.md sets; muted values are Claude Code's defaults
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-cutover-runbookTurn 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.
Other plugins' skills for the same job