Skip to content
Development
Skill

/sap-user-guide

Turns a recorded transaction walkthrough into an end-user training guide + UAT script — the unfunded rollout mandate everyone hand-makes from screenshots pasted into Word — composed from ground truth the suite already owns: /sap-gui-probe drives/records the transaction step by

From plugin
sap-dev
8123 skills3 agents
Install
$ npx -y skills add sapdev-ai/sap-dev --skill sap-user-guide --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-user-guide

Context preview

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

Turns a recorded transaction walkthrough into an end-user training guide + UAT script — the unfunded rollout mandate everyone hand-makes from screenshots pasted into Word — composed from ground truth the suite already owns: /sap-gui-probe drives/records the transaction step by

SKILL.md

sap-user-guide.SKILL.md
name: sap-user-guide
description: |
  Turns a recorded transaction walkthrough into an end-user training guide + UAT script — the
  unfunded rollout mandate everyone hand-makes from screenshots pasted into Word — composed from
  ground truth the suite already owns: /sap-gui-probe drives/records the transaction step by step
  with full screen identity, DDIC carries the authoritative field labels and F1 documentation, and
  the docx skill renders Word. guide harvests a /sap-gui-probe run folder into a business-language
  step-by-step guide (Markdown + docx, per-step screenshots with --with-screens, field tables with
  DDIC labels + F1 long text), in any target language; pack batches guides into a curriculum with
  exercises and test-data prerequisites (mapped to /sap-bp//sap-mm01//sap-va01 as SUGGESTIONS). The
  same assets double as a UAT script (--uat: per-step expected result + sign-off columns). Read-only
  except --with-screens, which REPLAYS the recorded actions on the live GUI to capture screenshots
  and is confirm-gated with every write action enumerated; a replay whose live screen diverges from
  the recording stops REPLAY_DIVERGED (never a wrong-screen action). All DDIC text is over RFC
  (TSTCT/DDIF_FIELDINFO_GET/DOCU_GET — no RFC_READ_TABLE on DOKTL which is CLUSTER on ECC6). No new Z
  objects. Prerequisites: a /sap-gui-probe run folder (or a scenario to drive); /sap-login session for
  --with-screens; NCo 3.1 (32-bit).
argument-hint: "guide <probe-run-folder | \"TXN: scenario\"> [--with-screens] [--lang EN|JA|ZH] [--docx] [--uat] [--no-writes] [--output <dir>] | pack <pack.tsv> [--lang ..] [--docx]"

SAP User-Guide Skill

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.

---

Shared Resources

| 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`) |

---

Step 0 — Resolve Work Directory + Logging

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.

Step 1 — Parse Args + Resolve Input

`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.

Step 2.5 — CONFIRM gate (only `--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.

Step 3 — Harvest

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).

Step 4 — DDIC texts

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

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.