/sap-dev-core:sap-git snapshot PACKAGE <ZPKG> [--subpackages] | TR <TRKORR> | --objects <file> [--repo <dir>] [--message "..."] [--no-commit] | diff <scope> [--object <N>] [--stat] | log [--object <N>] [--max N] | statusfrom sap-dev-core
Read-only git backend for custom ABAP: snapshot SAP packages/TRs to local git repos over RFC, diff against last snapshot, and view blame/log — without writing to SAP or installing abapGit.
Ships in sap-dev-core. 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 put custom ABAP under local git: serialize a scope to disk over read-only RFC, commit with
TR annotations, and diff/blame with real git. You never write to SAP and never push. Fidelity
is honest per object (FULL / PARTIAL / COULD_NOT_CHECK / SKIPPED_UNSUPPORTED).
Task: $ARGUMENTS
| File | Token / call | Purpose |
|---|---|---|
<SKILL_DIR>/references/sap_git_repo.ps1 | -Action ensure|commit|diff|log|status|reset | Local git plumbing (no SAP) |
<SKILL_DIR>/references/sap_git_serialize.ps1 | -Scope -RepoDir | RFC serializer (scope -> tree + manifest) |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_rfc_read_source.ps1 | dot-sourced (by serializer) | Read-SapAbapSource for PROG/FM |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_object_resolver.ps1 | dot-sourced | Scope/object resolution |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_artifact_lib.ps1 | dot-sourced | Register-SapArtifact |
/sap-login | sub-skill | Pinned RFC profile |
/sap-dev-init | sub-skill | (optional) deploys the wrapper for v1.5 full DDIC |
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))"
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action start -StateFile "{RUN_TEMP}\sap_git_run.json" -Skill sap-git -ParamsJson "{}"
Modes: snapshot | diff | log | status. Any import / push / apply / "write back to
SAP" phrasing -> REFUSE with: "sap-git is a read-only backend (v1); to deploy use /sap-se38 /
/sap-se37 / /sap-se24 / /sap-se11." Scope forms: PACKAGE <p> [--subpackages], TR <trkorr>,
--objects <file>. Flags: --repo <dir>, --message "<extra>", --no-commit, --object <N>,
--stat, --max N, --save-to <file>.
git --version (via sap_git_repo.ps1 -Action status) — missing -> GIT_NOT_INSTALLED
(fix: winget install Git.Git). snapshot/diff also need a pinned RFC profile (/sap-login).fidelity=FULL_CORE
regardless — the wrapper only matters for the v1.5 full-DDIC path.Repo dir = --repo, else Get-SapSettingValue 'sap_git_repo_dir' '{work_dir}\git' +
\<SID>_<CLIENT> (one repo per system-client). Run:
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_git_repo.ps1" -Action ensure -RepoDir "<repo>" -Sid <SID> -Client <CLIENT> -SapUser <USER>
DIRTY: 1 -> refuse GIT_REPO_DIRTY (fix: commit/stash manually or pass a fresh --repo) — this
guarantees diff's post-run git reset --hard can only ever discard files THIS run wrote.
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_git_serialize.ps1" -Scope "PACKAGE <ZPKG>" -RepoDir "<repo>" -SharedDir "<SAP_DEV_CORE_SHARED_DIR>"
(-Subpackages, -ObjectsFile <file> for the other scope forms.) Parse each GIT: <TYPE> <NAME> <fidelity> line + the SERIALIZE: total=.. full=.. partial=.. cnc=.. skipped=.. summary. Empty
scope -> SNAPSHOT_EMPTY_SCOPE, stop. Every affected object with no wrapper degrades to PARTIAL /
COULD_NOT_CHECK — a class stub or DDIC metadata is NEVER presented as a full serialization.
Read the TRs currently holding scope objects (E071 join E070 + E07T texts — honest label "TRs
referencing scope at snapshot time", not "since last snapshot"). Build the commit message
(snapshot <scope> + SID/client + release marker + the TR lines + any --message) into
{RUN_TEMP}\commit_msg.txt, then (unless --no-commit):
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_git_repo.ps1" -Action commit -RepoDir "<repo>" -MessageFile "{RUN_TEMP}\commit_msg.txt"
Echo COMMIT: <sha> back (authoritative: sap_git_repo.ps1 -Action log -Max 1). no_changes
after a re-snapshot is a legitimate SUCCESS (nothing changed on the system).
sap_git_repo.ps1 -Action diff -RepoDir <repo> [-Stat] [-PathSpec src/<pkg>/<obj>*] [-SaveTo <file>] — stages the freshly-serialized tree, shows git diff --cached HEAD, then
resets hard to restore the last commit. DIFF_LINES: 0 = no change (the determinism guarantee).-Action log -Max <n> [-PathSpec ...] — one line per snapshot with its TR annotations.-Action status — repo, HEAD, dirty flag.Register the manifest (and a diff patch when saved):
powershell -ExecutionPolicy Bypass -Command ". '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_artifact_lib.ps1'; Register-SapArtifact -Skill 'sap-git' -ScopeKey '<SCOPE_KEY>' -Kind 'snapshot' -Format 'tsv' -Path '<repo>\.sapgit.manifest.tsv' -Coverage '<CHECKED_CLEAN|CHECKED_FINDINGS>'"
Summarize: objects FULL/PARTIAL/CNC/skipped, commit sha, repo path, and the fidelity caveat (classes + DDIC are metadata/PARTIAL; class source needs SE24/ADT).
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action end -StateFile "{RUN_TEMP}\sap_git_run.json" -Status SUCCESS -ExitCode 0
Failure classes: GIT_NOT_INSTALLED, GIT_REPO_DIRTY, GIT_COMMIT_FAILED, SNAPSHOT_EMPTY_SCOPE,
SNAPSHOT_SERIALIZE_FAILED, RFC_LOGON_FAILED.
--subpackages via TDEVC
walk), TR (E071), --objects list. One repo per (SID,client) under {work_dir}\git..sapgit.json marker + .sapgit.manifest.tsv
written. diff's post-run git reset --hard is made safe by the mandatory clean-worktree refusal.Z_GENERIC_RFC_WRAPPER_TBL promoting DDIC rows PARTIAL->FULL; blame <object> (needs >=2
snapshots); diff --against <sha>. v2 (only with a concrete consumer): abapGit-compatible
export / push-to-SAP — v1 REFUSES all import/push/apply phrasing.{work_dir} — the skill never adds a remote or pushes.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sapdev-ai/sap-dev --plugin sap-dev-core61 skills in this plugin
/sap-activate-objectActivates an inactive SAP repository object via SAP GUI Scripting. Routes to
the correct transaction by object type: SE38 for reports/programs/function-
group main programs, SE37 for function modules, SE24 for classes/interfaces
/methods, SE11 for DDIC objects (table, view, dataelement, structure,
tabletype, typegroup, domain, searchhelp, lockobject). Handles the
"inactive objects worklist" popup that SAP shows when there are multiple
inactive objects of the same locality (transportable vs. local — SAP filters
the popup by package locality of the triggering object). Verifies activation
via PROGDIR (programs/FMs include) and DWINACTIV.
Prerequisites: Active SAP GUI session (use /sap-login first).
/sap-api-advisorNatural-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,
paste-ready shortlist of BAPIs / function modules / classes — with released
state (S/4), interface + documentation for the top candidates, the team's known
traps inlined, and a ready-to-paste CALL FUNCTION snippet. Reads the BAPI
catalog (BAPI_MONITOR_GETLIST), TFDIR/TFTIT name+text, SEOCLASS, ARS_W_API_STATE
(S/4 released state), FUPARAREF/FUNCT + DOCU_GET. HARD rule: it never test-calls
a candidate — snippets are text only. Read-only; deploys nothing.
Use for: "which BAPI/FM for X", find an API, is this BAPI released, API to
create/read/post <object>, discover function module, released API S/4.
`successor` (released→sanctioned replacement) is phase 2; `scan` is phase 3.
Prerequisites: an RFC-capable connection profile (/sap-login). No dev-init, no GUI.
/sap-atcRuns 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 that set, polls the ATC Run Monitor until the
run completes, then reads the Priority 1 / Priority 2 / Priority 3
finding counts from the Manage Results screen and (best-effort)
downloads the result text file. Applies the customer brief's
MAX_PRIORITY threshold to decide pass / fail.
Replaces the legacy SCI-results-tree implementation that lacked a
Priority column. Per-stage VBS references are recorded against the
S/4HANA 1909 ATC layout — re-record on first failure with
/sap-gui-probe --record if your release uses different tree node IDs / grid
column IDs.
Prerequisites: Active SAP GUI session (use /sap-login first).
/sap-call-bdcExecutes BDC (Batch Data Communication) sessions in SAP via RFC.
Reads SHDB recording files from the bdc/ folder, connects via
SAP NCo 3.1, calls ABAP4_CALL_TRANSACTION, and outputs
full BDCMSGCOLL messages to a result file.
Connection parameters resolved from the AI session's pinned profile in
connections.json (saved via /sap-login).
Prerequisites: SAP profile saved via /sap-login (RFC password required).
SAP NCo 3.1 (32-bit, .NET 4.0) in GAC.
/sap-change-packageChanges the package (TADIR-DEVCLASS) assignment of an SAP repository object
via the "Object Directory Entry" dialog (Goto > Object Directory Entry).
Routes by object type to SE38 / SE37 / SE24 / SE11 / SE91 / CMOD (the last
for enhancement projects — used by /sap-cmod). Handles three
flows automatically based on current vs new package locality:
(a) $TMP → transportable (Z*/Y*): resolves a modifiable TR via
/sap-transport-request, then enters the new package + TR.
(b) transportable A → transportable B: pre-checks E071/E070 to ensure
the object is NOT linked to a modifiable TR (would block the move).
(c) transportable → $TMP: confirms the move and presses "Local object".
Verifies via TADIR re-query.
Prerequisites: Active SAP GUI session (use /sap-login first).
/sap-check-abapValidates ABAP source (report / program / FM / class / include) before
deployment — one skill, dimension-dispatched: naming (variable conventions),
type (DDIC type validity), unused (dead variables), sql (SELECT/UPDATE/DELETE
fields vs table defs), contract (offline generation rules), spec (offline: code
covers every dependency / message / text / selection field in the design spec),
fm (CALL FUNCTION params / sections / types vs the live FM over RFC — absorbed
from the former sap-check-fm), syntax (compiler-level EDITOR_SYNTAX_CHECK via
RFC, catching real errors offline before any GUI upload). Writes tab-delimited
result files with fix advice; feed findings to /sap-fix-abap. SAP connection
optional — offline skips type/sql/fm/syntax; live dimensions that can't run
report COULD_NOT_CHECK, never a silent pass.
Prerequisites: SAP GUI (SAP.Functions COM); SAP NCo 3.1 (32-bit) + the dev-init
wrapper Z_GENERIC_RFC_WRAPPER_TBL for the syntax dimension.
Other plugins' skills for the same job