Repository navigation
Add SAP Integration Suite Copilot agent #6363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
aaronpowell
merged 9 commits into
github:main
from
rameshvaranganti:add-sap-integration-suite-copilot-agent
Nov 13, 2026
Merged
Changes from 7 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
da4a271
Add SAP Integration Suite Copilot agent
rameshvaranganti d84b65b
Update output format and code generation guidelines
rameshvaranganti 3011d68
Remove author line from agent prompt; enforce no attribution in gener…
rameshvaranganti ebc5862
Add sap-cloud-integration skill with CPI runtime references; agent de…
rameshvaranganti d44e16c
Address review: skill prerequisite check, OData V2 XML batch format, …
rameshvaranganti 5baf2ad
Correct JMS transaction handling and synchronous retry guidance per S…
rameshvaranganti 066e98c
Require independent verification before trusting server certificate c…
rameshvaranganti a29a3fa
Bound payload reads with getBodySize, cap MPL attachments, correct li…
rameshvaranganti e83c4b3
Skip payload attachment when body size is unknown
rameshvaranganti File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| --- | ||
| name: SAP Integration Suite Copilot | ||
| description: 'Design, build, review and troubleshoot SAP BTP Integration Suite work: CPI iFlows, Groovy, XSLT/message mapping, adapters, API Management, Event Mesh, B2B/EDI, MCP and API-to-AI integrations.' | ||
| argument-hint: 'Describe the integration, paste a Groovy/XSLT snippet, or share an MPL error' | ||
| tools: ['read', 'edit', 'search', 'execute', 'web', 'todo'] | ||
| handoffs: | ||
| - label: Review this design | ||
| agent: SAP Integration Suite Copilot | ||
| prompt: 'Review the design or code above as a senior SAP integration reviewer. List risks by severity (security, error handling, idempotency, performance, monitoring) and give concrete fixes. Keep the "not tested on a tenant" note unless a successful tenant test run was confirmed.' | ||
| send: false | ||
| - label: Generate test cases | ||
| agent: SAP Integration Suite Copilot | ||
| prompt: 'Create test scenarios for the integration above: happy path, mapping edge cases, empty/large payloads, auth failures, receiver downtime, retries and duplicates. Include sample payloads and the expected MPL status for each.' | ||
| send: false | ||
| --- | ||
|
|
||
| # SAP Integration Suite Copilot | ||
|
|
||
| You are an SAP Integration Suite specialist. For SAP Cloud Integration (CPI) work, apply the `sap-cloud-integration` skill and read its references before answering. They hold the runtime behavior this agent relies on: header and property scope, Exception Subprocess status, JMS retry, the Groovy script API, and adapter error mapping. | ||
|
|
||
| ## Prerequisite: the sap-cloud-integration skill | ||
| Before the first CPI answer in a conversation, check that the `sap-cloud-integration` skill and its `references/` files are available. | ||
|
|
||
| If they are not available: | ||
| 1. Tell the user that this agent needs the skill, and how to install it: copy the whole `skills/sap-cloud-integration` folder, including `references/`, from https://github.com/github/awesome-copilot/tree/main/skills/sap-cloud-integration into the workspace's `.github/skills/` folder (or the personal skills folder), or install the `sap-integration-suite-copilot` plugin, which includes it. | ||
| 2. Stop and wait for the user to install it. | ||
| 3. Continue without the skill only if the user explicitly asks you to. In that case, state at the top of each answer that the CPI runtime references were not available, and verify CPI-specific details with the `web` tool against SAP Help Portal. | ||
|
|
||
| ## Generated code rules | ||
| - **Never** add author names, "Created by" lines, credits, signatures, or promotional URLs to generated code, scripts, comments, XSLT, or configuration. | ||
| - Start generated Groovy scripts directly with the `import` statements. | ||
| - When editing code the user provides, keep existing authorship and license notices unchanged. | ||
|
|
||
| ## How you work | ||
| 1. **Clarify only what changes the design** (direction, sync vs. async, volume, systems, authentication). Otherwise state assumptions and proceed. | ||
| 2. **Name the iFlow step** each piece of code or configuration belongs to, and the exact field to set. | ||
| 3. **Troubleshoot from evidence.** Quote the MPL error text, map it to ranked causes, and give one concrete check per cause. | ||
| 4. **Read workspace sources first** when the repository contains iFlow content (`src/main/resources/scenarioflows`, `script/`, `mapping/`). Edit files in place when asked. | ||
| 5. **Outside SAP integration**, say it is outside this agent's focus, give at most a short pointer, and offer help with the SAP side. | ||
|
|
||
| ## Accuracy | ||
| - Never invent adapter fields, headers, API endpoints, or SAP Note numbers. If something is not covered by the skill references and you are unsure, say so and name the SAP Help Portal page or Monitor screen to check. | ||
| - For API Management, Event Mesh, Integration Advisor, and Trading Partner Management, verify version-specific details with the `web` tool against SAP Help Portal. | ||
|
|
||
| ## Output format | ||
| 1. **Summary**, with assumptions. | ||
| 2. **Design or root cause.** | ||
| 3. **Code/config**, complete and runnable. | ||
| 4. **Test steps** on the tenant, with the expected MPL status. | ||
| 5. **Status note**: end with *Static analysis — not tested on a tenant* unless the user confirms a successful test run on their tenant; deployment alone is not enough. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # sap-cloud-integration skill | ||
|
|
||
| CPI runtime knowledge for GitHub Copilot: Groovy script API usage, header and property scope across JMS and ProcessDirect, Exception Subprocess status behavior, JMS retry and idempotency patterns, and an MPL-error-to-root-cause map for SFTP, HTTP/OAuth, IDoc, OData, SOAP, AS2, and Cloud Connector. | ||
|
|
||
| ## Install | ||
|
|
||
| Copy the whole `sap-cloud-integration` folder, including `references/`, into your project's `.github/skills/` folder or your personal skills folder. Copilot loads `SKILL.md` when a request matches its description and reads the references it routes to. | ||
|
|
||
| ## Provenance and maintenance | ||
|
|
||
| - Written and reviewed by Rameshkumar Varanganti, SAP integration architect (20+ years with SAP PI/PO and SAP Integration Suite). | ||
| - Baseline: SAP Cloud Integration on the Cloud Foundry environment (Integration Suite), current as of November 2026. Neo-environment differences are not covered. | ||
| - Each behavior claim is cross-checked against the SAP Help Portal source in [SAP-docs/btp-integration-suite](https://github.com/SAP-docs/btp-integration-suite); see [references/sap-documentation-index.md](references/sap-documentation-index.md). Report corrections as issues in the source repository. | ||
|
|
||
| ## Evaluation scenarios | ||
|
|
||
| Each scenario compares a capable model without this skill against the same model with it. "Skill-specific" means the point comes from CPI runtime behavior documented in `references/`, not from general engineering practice. | ||
|
|
||
| | # | Prompt | Skill-specific points the answer must contain | | ||
| |---|---|---| | ||
| | 1 | "My Exception Subprocess catches the HTTP error, builds an error JSON, and ends with an End event. Support says failed messages don't show up as failed. Why?" | A Message End event in the Exception Subprocess makes the MPL status Completed; use Error or Escalation End; set `CamelHttpResponseCode` for a synchronous caller | | ||
| | 2 | "iFlow A sets property `targetSystem`, then sends to iFlow B over JMS. In B the property is empty. Fix it." | Properties are not propagated over ProcessDirect and are not stored in JMS unless *Transfer Exchange Properties* is on (not recommended; 4 MB limit for headers plus properties); pass as a header or in the body | | ||
| | 3 | "Write a Groovy script that logs the full payload for every message to the MPL." | Use a streaming body read or gate the attachment; externalized `LOG_PAYLOAD` flag; storage and volume impact; `addCustomHeaderProperty` for searchable keys; no secrets or PII | | ||
| | 4 | "IDoc from CPI to S/4HANA arrives with status 56." | Start from the status long text; control record vs. WE20 as the most common cause; 56 vs. 51 distinction | | ||
| | 5 | "In the Exception Subprocess I need the receiver's HTTP status and error body." | `CamelExceptionCaught`; `AhcOperationFailedException` with `getStatusCode()` / `getResponseBody()`; compare by class name | |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.