sap-activate-object
Activates an inactive SAP repository object via SAP GUI Scripting. Routes to the correct transaction by object type: SE38 for reports/programs/function- group…
Drive a SAP transaction step by step against a natural-language scenario, dumping each screen's full property tree via /sap-gui-inspect and emitting a synthesized recording-style VBS at the end. Designed as a skill-authoring aid: probe SE37 before writing a new /sap-se37 flow.
$ npx -y skills add sapdev-ai/sap-dev --skill sap-gui-probe --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/sap-gui-probeContext preview
The summary Claude sees to decide when to auto-load this skill.
Drive a SAP transaction step by step against a natural-language scenario, dumping each screen's full property tree via /sap-gui-inspect and emitting a synthesized recording-style VBS at the end. Designed as a skill-authoring aid: probe SE37 before writing a new /sap-se37 flow.
name: sap-gui-probe
description: |
Drive a SAP transaction step by step against a natural-language scenario,
dumping each screen's full property tree via /sap-gui-inspect and
emitting a synthesized recording-style VBS at the end. Designed as a
skill-authoring aid: probe SE37 before writing a new /sap-se37 flow.
Captures more than the SAP recorder -- not just findById paths and
actions, but also Changeable, Tooltip, IconName, popup transitions, and
the program/transaction/screen identity at every step.
Capture modes:
* drive (default) -- Claude drives the transaction live (Steps 0-4).
* --record [<vbs>] -- fallback when Claude can't reliably drive the flow
(unfamiliar or write-heavy transaction, or when a real operator's exact
clicks are wanted as ground truth): guides you to record it with SAP
GUI's built-in Script Recording and Playback, then parses the saved VBS
into the same findById/action map. Replaces the former /sap-gui-record
skill; parsing an already-saved recording needs no live session.
Two safety modes (drive only):
* mode=confirm (default) -- read-only actions auto-proceed; write
actions (Save / Activate / Delete and the matching VKey codes 11, 14,
27, 28, 33) pause for explicit user confirmation.
* mode=auto -- opt-in via trailing `--auto` flag in the scenario;
every action proceeds without prompting.
Prerequisites: Active SAP GUI session (use /sap-login first).
argument-hint: "<TXN>: <scenario> | <TXN>: <scenario> --record [<vbs-path>] e.g. 'SE37: display FM RFC_READ_TABLE then exit' (append --auto to skip confirmations)"You drive a SAP transaction step by step against a natural-language scenario the user supplied. At every screen transition you call the sap-gui-inspect VBS to capture a full property dump, you emit one small action JSON describing the next move, you classify that action as READ or WRITE, you (optionally) confirm with the user, and you execute it.
When the scenario is complete you synthesize every action into one replayable VBS. The output folder is the deliverable -- a fresh skill author can read it and write a deterministic skill for the probed flow.
Task: $ARGUMENTS
---
| File | Purpose | |---|---| | `<SAP_DEV_CORE_SHARED_DIR>/rules/safety_policy.md` | **Rule 0 (highest priority)** — environment guard; enforced by the drive-mode write classifier via `sap_safety_gate.ps1` | | `<SAP_DEV_CORE_SHARED_DIR>/rules/skill_operating_rules.md` | Mandatory operating rules | | `<SAP_DEV_CORE_SHARED_DIR>/rules/settings_lookup.md` | Settings model — merge per-key on `.value` (env var → `settings.local.json` → `userconfig.json` → `settings.json`); non-per-connection writes go to `userconfig.json` | | `<SAP_DEV_CORE_SHARED_DIR>/rules/language_independence_rules.md` | GUI-scripting language independence — identify by component ID + DDIC field name, status-bar checks via `MessageType` codes (S/W/E/I/A), VKey instead of menu-text, no branching on `.Text`/`.Tooltip`/window titles | | `<SAP_DEV_CORE_SHARED_DIR>/rules/sap_gui_scripting_reference.md` | Component-ID grammar + type-prefix / VKey / toolbar tables + runtime gotchas. Used by `--record` mode (Mode R) to decode a recorded VBS into findById paths. Promoted from the retired `sap-gui-record` skill. |
---
**Resolve `work_dir` via the env-aware helper** — do NOT take `work_dir` from a direct `settings.json` read (that ignores the `SAPDEV_AI_WORK_DIR` env var and `userconfig.json`). Use the `WORK_DIR=` value printed by:
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))"The settings note below still applies to the OTHER keys.
**Settings reads/writes follow `shared/rules/settings_lookup.md`** — merge per-key on the `.value` field (env var → `settings.local.json` → `userconfig.json` → `settings.json`); non-per-connection writes go to `userconfig.json`. Read sap-dev-core's `settings.json` (go 2 levels up from `<SKILL_DIR>` to the plugin root, then `settings.json`). | Setting | Default if blank | |---|---| | `work_dir` | `C:\sap_dev_work` |
Derive:
Ensure folders exist (one Bash call, two mkdir):
cmd /c if not exist "{WORK_TEMP}" mkdir "{WORK_TEMP}"
cmd /c if not exist "{RUN_FOLDER}" mkdir "{RUN_FOLDER}"**Why ms + pid?** Today's parallel scaffolder spawns N sub-agents from one process; each sub-agent invokes this skill in its own cscript run, but they all derive `{TS}` from `Get-Date -Format 'yyyyMMdd-HHmmss'` and can land in the same second. Adding `fff` (ms) and the process ID makes collisions effectively impossible in practice. Sub-agents under the SAME orchestrator process share `{PID}` but have different `{TS}` ms; sub-agents under DIFFERENT orchestrator processes (the typical AI-session-vs-AI-session case) have different `{PID}`. Either axis alone is sufficient; using both is belt-and-braces.
---
State file: `{RUN_FOLDER}\sap_gui_probe_run.json`. Best-effort.
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.p
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.
Repo: sapdev-ai/sap-dev
Activates an inactive SAP repository object via SAP GUI Scripting. Routes to the correct transaction by object type: SE38 for reports/programs/function- group…
Natural-language SAP API discovery over RFC (no GUI): turn a goal like "create a sales order" or "post a goods movement" into a ranked, trap-annotated,…
Runs the SAP ABAP Test Cockpit (ATC) end-to-end as a quality gate: builds an SCI Object Set scoped to the target object(s), creates an ATC Run Series bound to…
Executes BDC (Batch Data Communication) sessions in SAP via RFC. Reads SHDB recording files from the bdc/ folder, connects via SAP NCo 3.1, calls…
Changes the package (TADIR-DEVCLASS) assignment of an SAP repository object via the "Object Directory Entry" dialog (Goto > Object Directory Entry). Routes by…
Validates ABAP source (report / program / FM / class / include) before deployment — one skill, dimension-dispatched: naming (variable conventions), type (DDIC…