AgentStack
SKILL verified MIT Self-run

Sc4sap:sap Option

skill-babamba2-superclaude-for-sap-sap-option · by babamba2

View SAP system status snapshot and edit values in `.sc4sap/sap.env` (connection, blocklist) and HUD usage limits in `~/.claude/settings.json` → `env` — single entrypoint for all sc4sap runtime options

No reviews yet
0 installs
11 views
0.0% view→install

Install

$ agentstack add skill-babamba2-superclaude-for-sap-sap-option

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No 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.

Are you the author of Sc4sap:sap Option? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

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 ` (updates SAP_INDUSTRY in sap.env and industry in config.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 manage MCP_ALLOW_TABLE / MCP_BLOCKLIST_EXTEND.
  • User is rotating credentials, moving to a new SAP system, or flipping language/client.
  • After /sc4sap:setup if 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.jsonenv, not sap.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.envSAP_TIER. Show (legacy) when no active-profile.txt is set and a legacy sap.env is in use.
  • System: ` · client · user · lang *(from GetSession`)*
  • Connection: ` · auth · type · version · ABAP `
  • RFC backend: ` — if odata (or unset), append · (with CSRF TTL = s); if native, append · ashost : or · mshost /; if gateway, append · ` (token masked)
  • Industry: ` — drives which industry/*.md` consultant agents load
  • Inactive objects: ` (0 = green, >0 = red) *(from GetInactiveObjects`)*
  • Active transport (pinned): if present in config.jsonactiveTransport, else "-"
  • Blocklist (L4, MCP env): profile ` · extend entries · 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:setup first. 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_TYPEbasic | xsuaa
  • SAP_USERNAME — SAP user ID
  • SAP_PASSWORDsecret — always mask when displaying
  • SAP_LANGUAGEEN, DE, KO, ...
  • SAP_SYSTEM_TYPEonprem | cloud | legacy
  • SAP_VERSIONS4 | ECC
  • ABAP_RELEASE — e.g. 756, 758
  • SAP_INDUSTRY — one of the 15 keys in industry/README.md (retail | fashion | cosmetics | tire | automotive | pharmaceutical | food-beverage | chemical | electronics | construction | steel | utilities | banking | public-sector | other). Mirrored to .sc4sap/config.jsonindustry whenever changed — both writes must succeed or neither.
  • TLS_REJECT_UNAUTHORIZED0 (accept self-signed, dev only) or unset

Blocklist policy (optional — guard for GetTableContents / GetSqlQuery):

  • MCP_BLOCKLIST_PROFILEminimal | 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_BACKENDodata (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 of basic | xsuaa.
  • SAP_LANGUAGE: 2-letter uppercase.
  • SAP_SYSTEM_TYPE: one of onprem | cloud | legacy.
  • SAP_VERSION: one of S4 | 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, not Food_Beverage`).
  • TLS_REJECT_UNAUTHORIZED: 0 or unset. Warn that 0 is dev-only.
  • MCP_BLOCKLIST_PROFILE: one of minimal | standard | strict | off. If user chooses off, require explicit confirmation ("This disables ALL row-extraction guards. Type I UNDERSTAND to 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.env to 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.bak contains 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=VALUE or 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 than cache/ → still look up .sc4sap/sap.env relative 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.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.