Install
$ agentstack add skill-babamba2-superclaude-for-sap-sap-option ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ● Environment & secrets Used
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
SC4SAP Option
Single entrypoint to inspect live SAP state and edit the values stored in .sc4sap/sap.env — the dotenv file that holds SAP connection credentials, TLS settings, and the abap-mcp-adt-powerup blocklist policy for row-extraction safety.
sap.env is the single source of truth for per-user runtime configuration of the sc4sap MCP server. This skill also replaces the former /sc4sap:hud snapshot: before editing, it shows a compact status panel (system ID, client, user, inactive object count, active transport, blocklist profile) so the user can confirm which system they are about to change settings for.
Users should not edit sap.env blindly; this skill surfaces the current values (masking secrets), explains each option, lets the user pick what to change, and writes the file back safely with a backup.
Every response triggered by this skill MUST begin with [Model: · Dispatched: ] per [../../common/model-routing-rule.md](../../common/model-routing-rule.md) § Response Prefix Convention.
- User says "sap option", "show sap.env", "change SAP password", "switch SAP client", "change the blocklist profile", "loosen blocklist", "whitelist ACDOCA", "view SAP config", "SAP options".
- User says "change the industry", "change industry", "switch industry", "switch to retail", "switch to cosmetics" — route to the Industry selection flow described in `
(updatesSAP_INDUSTRYinsap.envandindustryinconfig.json` atomically). - User says "hud", "show status", "show system info", "current SAP status", "which system am I connected to" — run the status snapshot (workflow step 3) and stop there unless the user then asks to edit.
- User says "switch profile", "switch to KR-QA", "change system", "use the PRD system", "list profiles", "add a new profile", "register another system", "remove profile", "edit KR-DEV", "rotate credentials for KR-PRD" — route to the Profile management flow described in `
(see [profile-management.md`](profile-management.md)). - User wants to change blocklist tier (
MCP_BLOCKLIST_PROFILE) or manageMCP_ALLOW_TABLE/MCP_BLOCKLIST_EXTEND. - User is rotating credentials, moving to a new SAP system, or flipping language/client.
- After
/sc4sap:setupif the user wants to adjust without re-running full setup. - User says "hud limit", "5h limit", "weekly limit", "extra limit", "usage budget", "configure limit" — route to the HUD limits flow (see `
), which edits~/.claude/settings.json→env, notsap.env`.
When invoked with status / show / hud (or as the preamble to any edit flow), render this panel. Keep it compact — roughly 10–14 lines — and silence sections that can't be fetched (e.g. MCP disconnected) rather than failing.
Contents (only show rows you could resolve):
- Active profile:
[]with🔒if tier≠DEV — from/.sc4sap/active-profile.txt+~/.sc4sap/profiles//sap.env→SAP_TIER. Show(legacy)when no active-profile.txt is set and a legacysap.envis in use. - System: `
· client· user· lang*(fromGetSession`)* - Connection: `
· auth· type· version· ABAP` - RFC backend: `
— ifodata(or unset), append·(with CSRF TTL =s); ifnative, append· ashost :or· mshost /; ifgateway, append· ` (token masked) - Industry: `
— drives whichindustry/*.md` consultant agents load - Inactive objects: `
(0 = green, >0 = red) *(fromGetInactiveObjects`)* - Active transport (pinned):
—if present inconfig.json→activeTransport, else "-" - Blocklist (L4, MCP env): profile `
· extendentries · allow` entries - Blocklist (L3, PreToolUse hook): profile `` · extend/custom file presence
- sap.env path: absolute path being edited
If the user's intent is status-only (they just said "hud" / "show status"), render the panel and stop. Do not ask follow-up "what to change" questions unless the user continues.
- Plugin install path:
${CLAUDE_PLUGIN_ROOT}/.sc4sap/sap.env - Typical absolute path on Windows:
C:\Users\\.claude\plugins\cache\sc4sap\sc4sap\\.sc4sap\sap.env - If the file does not exist, tell the user to run
/sc4sap:setupfirst. Do NOT create it from scratch here — setup handles the initial interactive credential flow.
Connection (required):
SAP_URL— SAP host URL including port (e.g.https://host:44300)SAP_CLIENT— 3-digit client (e.g.100)SAP_AUTH_TYPE—basic|xsuaaSAP_USERNAME— SAP user IDSAP_PASSWORD— secret — always mask when displayingSAP_LANGUAGE—EN,DE,KO, ...SAP_SYSTEM_TYPE—onprem|cloud|legacySAP_VERSION—S4|ECCABAP_RELEASE— e.g.756,758SAP_INDUSTRY— one of the 15 keys inindustry/README.md(retail|fashion|cosmetics|tire|automotive|pharmaceutical|food-beverage|chemical|electronics|construction|steel|utilities|banking|public-sector|other). Mirrored to.sc4sap/config.json→industrywhenever changed — both writes must succeed or neither.TLS_REJECT_UNAUTHORIZED—0(accept self-signed, dev only) or unset
Blocklist policy (optional — guard for GetTableContents / GetSqlQuery):
MCP_BLOCKLIST_PROFILE—minimal|standard|strict|off(default:standard)MCP_BLOCKLIST_EXTEND— comma-separated extra table names / patterns (always denied)MCP_ALLOW_TABLE— comma-separated whitelist for audited bypass
RFC backend (optional — selects transport for Screen / GUI Status / Text Element ops):
SAP_RFC_BACKEND—odata(default) |soap|native|gateway|zrfc
Per-backend env blocks (Native / Gateway / OData credentials and knobs) live in [rfc-managed-keys.md](rfc-managed-keys.md). Read that file when the user asks to change the RFC backend or edit any SAP_RFC_* field.
XSUAA (only when SAP_AUTH_TYPE=xsuaa):
XSUAA_URL,XSUAA_CLIENT_ID,XSUAA_CLIENT_SECRET,XSUAA_TOKEN_URL
Do not manage keys that are not in this list — warn the user and skip.
See [workflow.md](workflow.md).
See [profile-management.md](profile-management.md). Handles multi-environment (Dev/QA/Prod) connection switching, tier-based readonly enforcement, OS-keychain-backed password storage, profile add/edit/remove/purge, and migration from legacy single-profile .sc4sap/sap.env.
See [industry-selection.md](industry-selection.md).
See [hud-limits.md](hud-limits.md).
SAP_URL: must match^https?://[^ ]+and not end with/.SAP_CLIENT: exactly 3 digits.SAP_AUTH_TYPE: one ofbasic|xsuaa.SAP_LANGUAGE: 2-letter uppercase.SAP_SYSTEM_TYPE: one ofonprem|cloud|legacy.SAP_VERSION: one ofS4|ECC.ABAP_RELEASE: 3-digit numeric (e.g.750,756).SAP_INDUSTRY: must be one of the 15 canonical keys listed in `. Reject unknown values; offer the selection menu from. Lowercase, hyphen-separated (e.g.,food-beverage, notFood_Beverage`).TLS_REJECT_UNAUTHORIZED:0or unset. Warn that0is dev-only.MCP_BLOCKLIST_PROFILE: one ofminimal|standard|strict|off. If user choosesoff, require explicit confirmation ("This disables ALL row-extraction guards. TypeI UNDERSTANDto proceed.").MCP_BLOCKLIST_EXTEND/MCP_ALLOW_TABLE: comma-separated uppercase table names ([A-Z0-9_*]+allowed;*is glob). Strip whitespace around commas.- When adding to
MCP_ALLOW_TABLE, explicitly warn that each entry is audited to stderr and is a soft bypass of the blocklist — user should remove entries when no longer needed. SAP_PASSWORD: no validation on content (may contain anything), but refuse empty.- All
SAP_RFC_*validation rules live in [rfc-managed-keys.md](rfc-managed-keys.md) → "Validation rules".
- Never print secrets (
SAP_PASSWORD,XSUAA_CLIENT_SECRET) in chat output, diffs, logs, or confirmation prompts. Always mask. - Never copy
sap.envto any location outside.sc4sap/— no uploads to Notion, no pastes into issues. - After writing, do not display the final file contents. Only summarize which keys changed.
- The backup
sap.env.bakcontains secrets — mention its existence but do not open/read it back to the user.
- File missing → stop, direct to
/sc4sap:setup. Do not create. - File has syntax errors (lines that are not
KEY=VALUEor comments) → show the offending lines, ask user to clean manually, abort. - **User wants to add a key not in `
** → warn, ask to confirm adding as a custom key (append at end with a# custom` comment). Do not validate content. - User wants to remove a required connection key (e.g.
SAP_URL) → refuse; required keys can only be changed, not removed. - Plugin is launched from
marketplaces/source tree (dev mode) rather thancache/→ still look up.sc4sap/sap.envrelative to the plugin root; if both exist, prefer the one under the currently-running plugin directory and tell the user which path was edited.
See [standalone-tui.md](standalone-tui.md).
See [examples.md](examples.md).
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: babamba2
- Source: babamba2/superclaude-for-sap
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.