/sap-project:sap-refresh-verify audit [--config <path>] [--max-rows N] | init-config | deschedule <JOBNAME> <JOBCOUNT> | deschedule --all-flaggedfrom sap-project
Audits SAP QA/sandbox systems after a production copy, verifying post-refresh checklist items like BDLS, RFC destinations, jobs, queues, client role, and user locks. Produces GO/NO_GO verdict.
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 audit a freshly-refreshed QA/sandbox system against the operator's landscape expectations and produce a GO / NO_GO sign-off. You are read-only except one confirm-gated job deschedule (delegated to /sap-job). You NEVER run BDLS, repoint RFCs, or lock users — those stay manual FIX text.
Task: $ARGUMENTS
| File | Token / call | Purpose |
|---|---|---|
<SKILL_DIR>/references/sap_refresh_audit.ps1 | -Action audit|identity -Config <p> | The audit engine (all checks) |
<SKILL_DIR>/references/refresh_expectations_template.json | copied by init-config | Expectations config template |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_artifact_lib.ps1 | dot-sourced | Register-SapArtifact |
/sap-job | sub-skill | deschedule delegation (delete <JOBNAME> <JOBCOUNT>) |
/sap-sost | sub-skill (optional) | mail/sost SAPconnect config-check (SKIP if absent) |
/sap-login | sub-skill | Pinned RFC profile |
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)); Write-Output ('CUSTOM_URL=' + (Get-SapSettingValue 'custom_url' ((Get-SapWorkDir) + '\custom')))"
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action start -StateFile "{RUN_TEMP}\sap_refresh_verify_run.json" -Skill sap-refresh-verify -ParamsJson "{}"
Modes: audit (default) | init-config | deschedule. Config path = --config, else
{custom_url}\refresh_expectations_<SID>_<CLIENT>.json (SID/client from the pinned profile).
Read the pinned profile's SID/client + a sap_refresh_audit.ps1 -Action identity (for the live
SID). Copy references/refresh_expectations_template.json to
{custom_url}\refresh_expectations_<SID>_<CLIENT>.json with sid/client pre-filled and the
current LOGSYS/role noted as candidate comments. Tell the operator they MUST fill
prd_host_patterns (at minimum) + expected_logsys before auditing. Local write only — done.
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_refresh_audit.ps1" -Action identity -Config "<config>" -SharedDir "<SAP_DEV_CORE_SHARED_DIR>"
STATUS: REFRESH_IDENTITY_MISMATCH -> ABORT (never audit the wrong box). REFRESH_CONFIG_MISSING
-> point at init-config. REFRESH_CONFIG_INVALID -> name the missing key.
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_refresh_audit.ps1" -Action audit -Config "<config>" -OutDir "{OUT}" -MaxRows <N> -SharedDir "<SAP_DEV_CORE_SHARED_DIR>"
Stream each CHECK: id=<id> group=<g> result=<PASS|FAIL|REVIEW|SKIP|COULD_NOT_CHECK> detail=".." fix=".." line and the final VERDICT:. (REVIEW is a deliberate extension of the /sap-doctor
CHECK grammar for allowlisted/ambiguous findings that must never render PASS.)
If /sap-sost is installed, invoke /sap-sost config-check via the Skill tool and fold its
verdict into mail/sost (FAIL/REVIEW/PASS). If not installed, keep the engine's SKIP + the FIX
"install /sap-sost for SAPconnect coverage".
Write refresh_audit_<SID>_<CLIENT>_<ts>.md (config digest, every CHECK line grouped, the verdict,
the FIX list, and — when present — the flagged-jobs ledger from {OUT}\jobs_flagged.tsv). Verdict
rollup: any FAIL -> NO_GO; any REVIEW/COULD_NOT_CHECK -> GO_WITH_WARNINGS; else GO. Register:
powershell -ExecutionPolicy Bypass -Command ". '<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_artifact_lib.ps1'; Register-SapArtifact -Skill 'sap-refresh-verify' -ScopeKey 'SYS_<SID>_<CLIENT>' -Kind 'refresh_audit' -Format 'md' -Path '{OUT}\refresh_audit_<SID>_<CLIENT>_<ts>.md' -Verdict '<GO|GO_WITH_WARNINGS|NO_GO>' -Coverage '<CHECKED_CLEAN|CHECKED_FINDINGS|COULD_NOT_CHECK>'"
Rule 0 (safety_policy.md) is enforced inside /sap-job, which runs its own environment
gate + confirm on every delete — this skill deliberately does not duplicate the gate (a second
assert would double-prompt the typed PROD <SID>/<CLIENT> confirmation; see the
SAFETY_GATE_SKILLS exclusions in scripts/check-consistency.mjs). Never bypass the delegation
by driving SM37 or BAPI_XBP_JOB_* directly from this skill.
Load the flagged-jobs list ({OUT}\jobs_flagged.tsv from the last audit) or the explicit
<JOBNAME> <JOBCOUNT>. Confirm gate: a single job -> /sap-job delete brings its own confirm.
--all-flagged -> THIS skill first takes a typed confirmation DESCHEDULE <n> JOBS ON <SID>/<CLIENT> (and ALWAYS the typed form if T000 shows CCCATEGORY='P'), then still lets
/sap-job confirm each (no --auto passthrough). Delegate each removal to /sap-job delete <JOBNAME> <JOBCOUNT>; after each, the audit's TBTCO re-read verifies it's gone. Report per-job
DELETED/FAILED. Never batch-delete without the typed phrase.
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action end -StateFile "{RUN_TEMP}\sap_refresh_verify_run.json" -Status SUCCESS -ExitCode 0
Classes: REFRESH_IDENTITY_MISMATCH, REFRESH_CONFIG_MISSING, REFRESH_CONFIG_INVALID,
RFC_ERROR, RFC_LOGON_FAILED.
audit (10-check battery), init-config, deschedule (gated, /sap-job
delegation). RFC-only, read-only except the deschedule.client/logsys (LOGSYS matched a PRD
pattern -> "BDLS not run"), client/logsys-defined (missing in TBDLS), rfc/prd-pointing (the
server-side RFCOPTIONS LIKE '%pattern%' scan matched real destinations incl.
s4sapdev_S4D_70), jobs/released (139 non-allowlisted jobs), queues/qout+qin (14+12
queues via TRFC_Q*_GET_CURRENT_QUEUES), queues/trfc (4876 SM58 LUWs via ARFCSSTATE),
users/lock-policy (555 unlocked dialog users, UFLAG bits evaluated) — and a corrected config
flipped those to PASS (GO_WITH_WARNINGS, driven only by the honest queue REVIEWs), proving PASS
honesty. mail/sost correctly SKIPs when /sap-sost is not installed.--max-rows, default
5000) that truncates forces REVIEW; the verdict caps at GO_WITH_WARNINGS on any COULD_NOT_CHECK.--all-flagged / production
client). No Z objects (Rule 2); v1.5 --deep-rfc (structured RFCDES parse via the wrapper) is
the first wrapper-dependent surface and SKIPs with a /sap-dev-init pointer when absent.--deep-rfc (v1.5), --compare <prev-report> (v2), --all-clients sweep (v2),
trusted-system table scan (v2).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sap-refresh, system-copy-audit, rfc-check, sap-security, post-refresh
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