/sc4sap:module-to-processfrom sc4sap
Maps SAP module CBO packages onto a standard process backbone (L1-L4) and generates a BPH table with task sheets. Includes gap analysis mode that produces fit/partial/gap assessments and WRICEF candidates without live SAP calls.
Ships in sc4sap. 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.
Offline profile (
common/offline-mode.md): full for gap mode only — a Gap analysis from an existing process map (workflow-gap.md). Building or refreshing the map is blocked — reply with the stop line there and stop.
Reads the CBO packages of one module via MCP, places every Z entry point on the module's standard process backbone, and writes one HTML page a module consultant reads on day one of a project: which processes run, who runs each task, in which system, through which standard TCodes and which CBO programs, which variants exist, and what a conversion touches.
At the start of a conversion or enhancement project the consultant inherits dozens of Z programs spread over several packages and no current process documentation. Package-by-package analysis (`stock-cbo`) lists objects; it does not say which business task each one serves. This skill answers per module: *"Here is the BPH of this module as the system implements it — standard where the standard is used, CBO where the customer built it — with a task sheet per L4."*<Response_Prefix>Every response triggered by this skill MUST begin with [Model: <main-model> · Dispatched: <sub-summary>] per ../../common/model-routing-rule.md § Response Prefix Convention.</Response_Prefix>
<Target_Object>Packages and TCodes are looked up on the active profile's system only. Not found → stop and ask per ../../common/multi-profile-artifact-resolution.md § Target object not on the active system — never substitute a similar name, never switch profiles on your own.</Target_Object>
<Phase_Banner>
Multi-phase skill. Before each Agent(...) dispatch, emit ▶ phase=<id> (<label>) · agent=<name> · model=<Opus|Sonnet|Haiku> per ../../common/model-routing-rule.md § Phase Banner Convention. Resolve the dispatch mode first per ../../common/model-dispatch-mode.md and the cost mode per ../../common/cost-mode.md (eco → pass BOTH model and effort on every Agent(...) call, Skill("sc4sap:eco", "--attach") first and on every continuation turn).
</Phase_Banner>
<Progress_Bar>
Every Step entry prints one line: Step X/9 · <label> [<20-char bar>] NN% — filled cells = floor(X × 20 / 9), NN = floor(X × 100 / 9), █ / ░, no colors. Table and sub-progress lines: workflow.md § Progress Reporting. A skipped or resumed Step still prints its line with (skipped — <reason>) / (resumed — <file>).
</Progress_Bar>
<Use_When>
workflow-gap.md): "Gap 분석서", "fit-gap 정리", "gap analysis of MM", "WRICEF 후보 뽑아줘" — reads the existing process model, no SAP call<Do_Not_Use_When>
/sc4sap:stock-cbo/sc4sap:program-to-spec · end-user steps → /sc4sap:program-to-manual/sc4sap:config-to-document/sc4sap:analyze-code<Session_Trust_Bootstrap>
MANDATORY — Step 0, before any MCP call or user interaction. Invoke /sc4sap:trust-session with parent_skill=sc4sap:module-to-process. Skip silently if .sc4sap/session-trust.log has a line within the last 24h. Full spec: ../trust-session/SKILL.md.
</Session_Trust_Bootstrap>
<Decisions_Fixed> Settled at design time (2026-10-27) — do not ask the user again:
| Topic | Decision |
|---|---|
| Scope | One module, or one process area of several modules (e.g. SD + MM + LE); one or more CBO packages, plus loose Z TCodes |
| Usage source | Measured usage is saved under <SCOPE_DIR> and can be reused as a submitted file (no live productive-system access needed on later runs) |
| Area menu | Optional: the customer SE43 area menu (GetAreaMenu) widens the scope to TCodes outside the packages, gives folder hints for placement, and adds a cross-check (core / gap / dead / off-menu) to the page. Also adds a menu to an existing map (supplement mode) |
| Usage-first | Only TCodes users actually run (ST03N of the productive system via SAP_USAGE_RFCDEST, or a submitted export) are analysed; unused ones are counted per package, never fetched. Batch programs join only from a job list |
| Hierarchy | BPH form: L1 mega process > L2 process chain > L3 process > L4 task; variants under L4 (org unit / document type / scenario) |
| Backbone | Standard SAP tree from configs/<MODULE>/process-backbone.json; CBO objects attach to L4 tasks; CBO-only tasks are added where no standard task fits |
| Output | ONE self-contained HTML page (no PPT, no xlsx export) with a built-in edit mode (texts, BPH rows, list items, undo, autosave, Save embeds the model; build-process-doc.mjs --import reads it back) |
| Pictures | Per L3 a scenario swimlane (lanes = owners, fill = system, border = type, double border = interface) + variant matrix; per L4 a step swimlane next to the decision flow |
| Existing BPH | Optional: a customer BPH / BPML workbook is read (bph-import.mjs) for wording and reconciled with the result (proposed matches, BPH-only, document-only) |
| Per L4 | Task sheet in PDD form: header (owner, system, type, output, timing), definition, variants, business rules with source lines, steps, related objects with usage, interfaces, related tasks, conversion notes, to-be-confirmed items |
| Owners | Organisations / roles as lanes; user-supplied when given, else estimated and marked (estimated) |
| Reference material | Customer decks or BPH workbooks the user shows are structure references only — none of their names, numbers or labels go into any artifact of the plugin |
| Location | <ARTIFACT_BASE>/processes/<MODULE>/<MODULE>-process-v<ver>-<lang>.html + _src/ + history (paths in paths-and-state.md) |
| Gap mode | Document for hand-over, not a workshop tool: fit = std, partial = enh, gap = cbo, manual, external; disposition defaults by project type (conversion / new) and usage ('unused' counts only from productive ST03N over 3+ months; interfaces, forms, exits and external rows never default to retire); WRICEF candidate = retrofit / rebuild; build-gap-doc.mjs → <MODULE>-gap-v<ver>-<lang>.html + .wricef.json (input of build-project-doc.mjs add-wricef); decisions carried by code into the next version |
| </Decisions_Fixed> |
<Companion_Files> MANDATORY: read before executing.
| Companion | Scope |
|---|---|
paths-and-state.md | Path variables, _state/ checkpoints, resume, escalation |
workflow.md | Progress table + Steps 0–4 (trust, intake, inventory per package, merge + attach, hierarchy) |
workflow-build.md | Steps 5–9 (task sheets, consultant review, model, build, validation + handoff) |
dispatch-analyst.md | Step 4 hierarchy + Step 5 task-sheet prompts (sap-analyst) |
dispatch-review.md | Step 6 optional consultant review prompt + Step 7 assemble command |
model-schema.md | process-model.json shape, values, checks |
workflow-scale.md | Scopes with more than 300 used entries: G1 batches, Step 4 placement parts + consolidation + merge-placements.mjs, Step 6 review slices, companion after edits |
workflow-menu.md | Optional area menu (asked at Step 1): GetAreaMenu, area-menu.mjs scope / hints / model annotation, supplement mode for an existing map |
workflow-gap.md | Gap mode: Gap analysis document from the existing process model (G1–G5), optional consultant review patch, companion, WRICEF import, edited page |
workflow-integration.md | Cross-module integration map (asked at Step 1): boundary stubs, cross-module.mjs touchpoints, E2E scenarios (sap-analyst), build-integration-doc.mjs page |
| </Companion_Files> |
<Agent_Composition>
The main thread follows the session model; every subagent_type uses the plugin prefix sc4sap:.
GetTcodeUsage, GetTransaction), gates, usage-scope.mjs / backbone.mjs / build-process-doc.mjs runs, state checkpoints, user approvals.sap-batch.mjs; sap-checker × N, 10 per checker, only as fallback); sap-checker × N (Haiku) — G3b DDIC reads; then usage-scope.mjs + build-package-graph.mjs on the main thread.sap-analyst (Opus) — Step 4 hierarchy (backbone + attach proposals → L1–L4 rows, variants, lanes) and Step 5 task sheets (parallel parts of ≤ 8 tasks). Returns JSON as text; the main thread writes it once.sap-<module>-consultant (frontmatter model) — Step 6, optional (the user chooses), one per module in scope, in parallel: wording, owners, std-task sheets, conversion notes, glossary, open questions. Writes its own patch file.process-model.json with scripts/process/assemble-model.mjs (deterministic).
</Agent_Composition><Language_Policy>
Output language chosen at Step 1: ko / en / ja only (page labels and backbone labels exist for these three). SAP identifiers stay literal. One language per page; an English companion page is built as well (Step 8b, companion.mjs + parallel Sonnet translators) unless the language is English or the user opts out.
</Language_Policy>
<MCP_Tools_Used>
SearchObject (DEVC, TRAN), GetPackage, GetPackageContents, GetObjectInfo, GetTransactionGetTcodeUsage (with destination = SAP_USAGE_RFCDEST), GetJobUsage (connected system only), GetTransaction (≤ 100 per call); area menu: GetAreaMenu (menu_pattern to list, menu + output='file' to read)GetProgFullCode (sources to files), GetTable / GetStructure / GetDataElement (DDIC)GetProgram, GetInclude, GetFunctionModule, GetClass, GetAbapSemanticAnalysisGetTableContents, GetSqlQuery
</MCP_Tools_Used><Data_Extraction_Safety>
Source, DDIC metadata, TCode metadata and usage statistics only. No row data — if the user asks for sample rows to illustrate a flow, refuse per ../../common/data-extraction-policy.md and record the request under open questions.
</Data_Extraction_Safety>
<Related_Skills>
/sc4sap:stock-cbo — inventory + graph.json per package (reused or produced in Step 2)/sc4sap:program-to-spec / /sc4sap:program-to-manual — drill into one program of a task/sc4sap:config-to-document — the module's configuration behind the business rules/sc4sap:ask-consultant — follow-ups from the open questions
</Related_Skills>Task: $ARGUMENTS
dispatch-analyst.md (opens in a new tab)dispatch-review.md (opens in a new tab)model-schema.md (opens in a new tab)paths-and-state.md (opens in a new tab)workflow-build.md (opens in a new tab)workflow-gap.md (opens in a new tab)workflow-integration.md (opens in a new tab)workflow-menu.md (opens in a new tab)workflow-scale.md (opens in a new tab)workflow.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
inherit31 skills in this plugin
/adobe-from-pdfBuild an Adobe form (SFP — interface, context and XDP layout) from a PDF of the printed form, the way smartform-from-pdf builds a SmartForm, upload it to the DEV system, print it there and score the print against the source page. Awaiting approval — not runnable yet./adobe-previewDraw the expected print of an Adobe form (SFP, S/4HANA) as HTML pages in mm (plus JPG / PDF with a local browser) — the XFA layout with its master pages, flowed tables with repeated headers, page breaks, captions, pictures (dates, numbers, currency shifts), rich text with embedded fields, rounded boxes and images — filled with invented sample values sized to the interface's DDIC types. On a development system it can print SAP's example forms through ADS and score the preview against SAP's own PDF./analyze-codeABAP code analysis — size-gated review (one Opus sap-code-reviewer, or Haiku sap-checker detectors + Opus judge for large objects), Haiku evidence check on every finding, then a canned report or a richer briefing on the main thread/analyze-symptomRead-only, step-by-step root cause analysis for SAP operational errors. Reads the dump summary and failing source via MCP (known-issue web lookup only when the failure is in standard SAP code), widens to transports and where-used only when the clues call for it, narrows hypotheses with minimal user questions, and provides SAP Note search keywords. Never changes code or data./ask-consultantDirect operational Q&A with a SAP module consultant agent. Auto-routes the question to the matching sap-{module}-consultant and answers against the configured SAP environment (version, industry, country, active modules)./assistBusiness assistant for the connected SAP system — looks up and changes specific documents through the installed business actions (query → preview → user confirm → execute), one confirmed step at a time. Use for requests about concrete SAP data such as open purchase orders, goods receipt, delivery complete, PO release, production order release / confirmation / TECO, sales order create or change, delivery / billing block, post goods issue, billing, FI document display or reversal, payment block, G/L posting, internal order status, cost center actuals, cost repost or activity allocation, document output status or reprint, shipments, picking, packing / handling units, shipment costs, warehouse transfer orders and requirements, bin and warehouse stock (ECC LE / WM), maintenance notifications and orders, equipment, functional locations and maintenance plans (ECC PM), EWM warehouse tasks, warehouse orders, bins, stock locations, handling units and delivery warehouse progress (S/4 EWM, lookups only). Korean requests too — 미결 PO, 입고, 완결, 납기 변경, 승인, 생산오더, 실적 등록, 기술적 완료, 판매오더, 출하 보류, 청구 보류, 출고 전기, 청구 생성, 전표 조회, 역분개, 지급보류, 분개 전기, 내부오더, 코스트센터 실적, 비용 재전기, 활동 배부, 출력 상태, 재출력, 운송/선적 생성, 피킹, 포장, HU, 운송비, 이전오더(TO) 생성/확정/취소, 이전요청(TR), 저장빈, 창고 재고, 재고실사, 보전오더, 보전통지, 고장 통지, 설비, 기능위치, 보전계획, 보전오더 기술적 완료, 미결 창고작업, 창고작업 조회, 창고오더, 빈 저장빈, 재고 위치, 납품 창고 진행, 검사로트, 사용결정, 검사결과 입력, 품질통지. Not for how / why / configuration questions (ask-consultant).npx claudepluginhub babamba2/superclaude-for-sap --plugin sc4sapOther plugins' skills for the same job