/sap-abap:bugfixfrom sap-abap
Fix a bug in SAP ABAP code from a Jira bug, an ST22 short dump, an error message or an application log, by tracing the call chain back to the cause, proving it with the code, writing a test that reproduces it and then the smallest fix. Use when someone shares a short dump (runtime error, exception, CX_ class), says "this report crashes", "fix this dump", "wrong value after save", "job fails every night", "users get error message X", "why does this BAdI fail", or a production incident lands in DEV for a fix. Not for unclear new requirements (use spec-grill), not for cleanup without a defect (use refactor).
Ships in sap-abap. 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.
None: SKILL.md is the whole skill.
Find the cause first, prove it, then fix it with the smallest change and a test that stops it coming back. Guessing at a fix from the dump text alone is how bugs get moved instead of fixed. A person confirms the cause before any code changes.
ITAB_DUPLICATE_KEY,
GETWA_NOT_ASSIGNED, CONVT_NO_NUMBER, or an uncaught exception classSay which setup you are using before step 1.
The dump text must reach you without personal data. Variable values in ST22 can hold names, addresses or bank data: ask the person to remove or mask them before pasting.
1. Read the evidence. From the dump: runtime error, exception class, program, include, line, the "Active Calls/Events" call stack, and the variable values relevant to the failing statement. From a wrong result: the steps, the input, expected vs actual. Restate the bug in one sentence.
2. Trace back. Start at the failing line and walk the call chain back toward the entry point. At each hop, ask where the bad value or state came from. Read the where-used if a shared object is involved.
3. Name the cause, then STOP. Describe the cause and show the lines of code that prove it. If there are several candidates, rank them with evidence. Give the debugger breakpoints that would confirm it. A person confirms the cause before you continue.
4. Reproduce with a test. Write an ABAP Unit test that fails on the current code for exactly
this bug, using test doubles for the database (CL_OSQL_TEST_ENVIRONMENT) and dependencies. If
the code cannot be tested, make the smallest testability change first and say so.
5. The smallest fix. Change only what the cause needs. Activate, run the new test, the existing tests and ATC. All must pass. Check the where-used: does the same pattern exist in other places? Report them; do not fix them silently in this transport.
6. Show the diff, then STOP for review. A person reviews the fix and the test.
7. Transport and record. Assign the fix and the test to one transport. Write the cause, the fix and the test into the Jira ticket. A person releases the transport.
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/cds-rewriteRewrite the data logic of an ABAP report, class or function module into CDS view entities, with tests that prove the output is unchanged and a runtime comparison before and after. Use when a Z program reads data with SELECTs inside loops, FOR ALL ENTRIES, nested SELECTs, or builds joins, filters and totals in ABAP; when someone asks to "move this to CDS", "code pushdown", "make this report faster on HANA", "modernize this report", "replace these SELECTs with a view", or prepares a report for Fiori, RAP or an OData API. Not for update logic (INSERT/UPDATE/MODIFY), not for pure UI changes, not for objects outside the customer namespace./code-reviewReview SAP ABAP code in a transport, package, diff or exported files, using ATC findings as the base plus a checklist for Clean ABAP, security (missing AUTHORITY-CHECK, SQL injection), performance on HANA (SELECT in loops, SELECT *, FOR ALL ENTRIES with an empty table) and the team's naming rules, with a severity and a proposed fix per finding. Use when someone asks to "review this transport", "review my ABAP", "check this code before release", "is this ready for QAS", "code review this diff", "what's wrong with this program", or before transport-release. Not for fixing the findings (the author decides; use refactor or implement), not for reviewing SAP standard code.npx claudepluginhub marian-kamenistak/sap-ai-skills --plugin sap-abap