/sap-project:sap-data-volume growth [--top N] [--tables A,B] [--z-only] [--max-tables N] [--physical] | archivability [--object O] [--table T] [--residence-days N]from sap-project
Read-only SAP DB growth and archivability analysis over RFC: ranks tables by row count, tracks growth rate against local snapshots, flags log-table offenders, maps archiving objects to tables, and reports archiving history.
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.
Automate the read-only DB-volume evidence pass: ranked table growth with a local snapshot trend, log-table + Z-housekeeping flags, and per-archiving-object history + analysis coverage — all over RFC with honest COULD_NOT_CHECK where a source is absent on the release.
Task: $ARGUMENTS
Pure read-only on SAP in every v1 mode (RFC_READ_TABLE + EM_GET_NUMBER_OF_ENTRIES).
The only local write is the growth snapshot file. --physical delegates report RSTABLESIZE
to /sap-run-report, which asks its own Rule-5 confirm — this skill never pre-answers it.
| File | Token / call | Purpose |
|---|---|---|
<SAP_DEV_CORE_SHARED_DIR>/rules/skill_operating_rules.md | (rule) | Mandatory operating rules — read-only here |
<SKILL_DIR>/references/sap_data_volume_rfc.ps1 | -Action growth|archivability … -OutDir | The two RFC modes → growth.tsv / archivability.tsv |
<SKILL_DIR>/references/sap_data_volume_offenders.tsv | catalog | Known log/growth tables + archiving object + ECC physical cluster; override at {custom_url}\sap_data_volume_offenders.tsv |
/sap-run-report (Skill tool) | RSTABLESIZE / RSSPACECHECK | --physical size pass (its own Rule-5 confirm) |
/sap-sp02 (Skill tool) | spool → file | --physical spool collection |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_artifact_lib.ps1 | Step 6 | Artifact index for /sap-evidence-pack |
<SAP_DEV_CORE_SHARED_DIR>/scripts/sap_log_helper.ps1 | Step 0.5 / Final | Structured run 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 ('STAMP=' + (Get-Date -Format 'yyyyMMddHHmmss')); Write-Output ('RUN_TEMP=' + (Get-SapRunTemp))"
Resolve the pinned connection's SID+client. Set {RUN_TEMP} = the RUN_TEMP= value printed
above (Get-SapRunTemp mints + creates the per-run scratch dir holding the log state file;
mint it once here and reuse — re-minting breaks the -Action end state-file lookup);
{OUT} = Get-SapArtifactDir -ScopeKey SYS_<SID>_<CLIENT> -Skill sap-data-volume. Snapshot dir (Bucket A, durable — NOT
temp): {work_dir}\cache\data_volume\<SID>_<CLIENT> (the engine derives the real SID+client
live from RFC_SYSTEM_INFO / USR02, so pass this dir and it self-creates).
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action start -StateFile "{RUN_TEMP}\sap_data_volume_run.json" -Skill sap-data-volume -ParamsJson "{}"
--top N (report cutoff, default 20), --tables A,B (explicit
scope; else offenders + Z*/Y* tables), --z-only (only Z*/Y*), --max-tables N
(default 200), --physical (Step 5 size pass), --z-threshold N (Z-housekeeping row
threshold, default 1000000).--object O1,O2, --table T1,T2 (reverse-map via ARCH_DEF), or
neither (default = objects with run history), --residence-days N.NOT_YET_IMPLEMENTED — schedules a TAANA batch job (Rule 5); ships in v1.5 with a recorded GUI leg and STOP.archive-run drives SARA write/delete and is deferred to phase 2; refused in v1 and STOP. Never attempt it.Pinned via /sap-login. A GUI session is required only for the --physical delegation
chain (/sap-run-report), not for the RFC reads.
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_data_volume_rfc.ps1" -Action growth -MaxTables <N> -OffenderFile "<SKILL_DIR>\references\sap_data_volume_offenders.tsv" -SnapshotDir "{work_dir}\cache\data_volume\<SID>_<CLIENT>" -SharedDir "<SAP_DEV_CORE_SHARED_DIR>" -OutDir "{OUT}"
Add -Tables "A,B" / -ZOnly / -ZThreshold N per args. Parse DATAVOL: (per-table
row/class/sizecat/delta/perday), DATAVOL_FLAG: (Z_TABLE_NO_HOUSEKEEPING / LOG_TABLE_LARGE),
DATAVOL_SNAPSHOT: (BASELINE_CREATED first run — trend n/a, honest — else DELTA),
DATAVOL_SKIP: (table not in DD02L), and STATUS:. A connect failure → exit 2,
RFC_LOGON_FAILED, no verdict. A COUNT_FAILED row is tri-state — never rendered as 0.
The engine writes growth.tsv and the snapshot.
Render growth_report.md into {OUT}: top-N table with rows / class / size-cat / delta /
per-day, then the flags section, then (on ECC) the cluster-attribution note for CDPOS/EDID4
(physical size is on CDCLS/EDI40 — EM_GET_NUMBER_OF_ENTRIES still counts them fine, verified
live). Grounding rule: every row traces to growth.tsv. State the window is
snapshot-to-snapshot (first run = baseline).
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "<SKILL_DIR>\references\sap_data_volume_rfc.ps1" -Action archivability -Object "<O>" -ResidenceDays <N> -SharedDir "<SAP_DEV_CORE_SHARED_DIR>" -OutDir "{OUT}"
Use -ArchTable "T" for the reverse map. Parse DATAVOL_ARCH: (object / text / tables /
last-run / runs / analysis / entry-cnt) + STATUS:. The engine writes archivability.tsv.
Render archivability_report.md: per object — description, archived tables, run history
(last run + count + status), and TAANA analysis coverage. Honesty: the per-bucket age
distribution lives in the TAAN_DATA cluster blob (CLUSTD RAW), which RFC_READ_TABLE cannot
decode — so age_pct is COULD_NOT_CHECK with a pointer to analyze (v1.5), never a
fabricated percentage. analysis=ABSENT means no TAANA analysis exists for the object's
tables — suggest /sap-data-volume analyze <TABLE> (v1.5).
If --physical: for the top offenders, invoke /sap-run-report (Skill tool) for
RSTABLESIZE (background), then /sap-sp02 to collect the spool, and parse the estimated
physical size into the physical column. /sap-run-report runs its own Rule-5 confirm —
surface it, never pre-answer. Unparseable spool → COULD_NOT_CHECK for the physical column
only (DATAVOL_PARSE_FAILED if --strict), never a fake size.
Register growth.tsv (kind data_volume_report), the snapshot (kind
data_volume_snapshot), archivability.tsv (kind archivability_report), and the rendered
*_report.md via Register-SapArtifact under scope SYS_<SID>_<CLIENT> with Coverage =
counted/scope and Verdict = check-result status (analytical skill — no gate). Echo:
DATAVOL: <mode> tables=<n> flagged=<k> counted=<c>/<scope> could_not_check=<z>
powershell -ExecutionPolicy Bypass -File "<SAP_DEV_CORE_SHARED_DIR>\scripts\sap_log_helper.ps1" -Action end -StateFile "{RUN_TEMP}\sap_data_volume_run.json" -Status SUCCESS -ExitCode 0
growth (row-count ranking via EM_GET_NUMBER_OF_ENTRIES + DD09L size
category + local snapshot rows/day trend + offender & Z-housekeeping flags; optional
--physical via /sap-run-report) and archivability (ARCH_DEF table map, ADMI_RUN/
ADMI_STATS run history, TAAN_HEAD analysis presence). Read-only on SAP.-1 → a COUNT_FAILED row, never a fake 0.BASELINE_CREATED (trend n/a, never invented);
a table absent from DD02L = SKIP; a TAANA age distribution is COULD_NOT_CHECK (cluster
blob) with a pointer to analyze. Snapshot window is snapshot-to-snapshot (workstation
clock); scope is capped by --max-tables (default 200), stated in the report.--residence-days /
--residence-file and says so; without a decodable TAANA distribution the "% older than
residence" stays COULD_NOT_CHECK.analyze (schedule a TAANA analysis via a to-be-recorded TAANA GUI leg —
v1.5; no VBS ships yet: emit NEEDS_RECORDING and capture it once via
/sap-gui-probe --record); archive-run (SARA write/delete — v2, refused in v1); DB02
physical-size GUI export (release/DB-specific — NEEDS_RECORDING extension point).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sap, data-volume, archivability, table-growth, houskeeping, rfc
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).
Other plugins' skills for the same job