/sap-abap:test-casefrom sap-abap
Write ABAP Unit tests (given/when/then, with test doubles for the database and dependencies) and manual QAS test scenarios for an SAP ABAP class, program or specification, then run them and fix what fails. Use when someone asks to "write unit tests", "add ABAP Unit", "test this class", "cover this with tests", "write test cases for QAS", "create test scenarios from the acceptance criteria", "mock the database", or needs tests before a refactor or a change. Not for characterization tests inside a refactor or cds-rewrite (those skills write their own), not for performance tests.
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.
Write tests that prove the specification, not tests that only repeat the code. Two outputs: an ABAP Unit test class that runs in seconds without real data, and manual test scenarios that a tester runs in QAS. Each test maps to an acceptance criterion or a named edge case.
Say which setup you are using.
.testclasses.abap include file
of the export. A person imports or pastes it, runs the tests in ADT and pastes the result back.1. Collect what to prove. From the specification: each acceptance criterion. From the code: public methods, branches, error paths. Make a table: test name, criterion or branch, given, when, then. Add edge cases: empty input, missing master data, duplicates, a user without authorization, boundary values, the FOR ALL ENTRIES empty-driver trap.
2. Plan the doubles, then STOP. Name every dependency and how you will replace it:
CL_OSQL_TEST_ENVIRONMENT, CL_CDS_TEST_ENVIRONMENTCL_ABAP_TESTDOUBLE or a hand-written local doubleTEST-SEAM / TEST-INJECTION only for old code that cannot be changed yet, and say so
If the code cannot be tested without changing it (static calls, SELECTs buried in a FORM), say
what minimal change would make it testable. A person approves the plan and any code change.3. Write the tests. One test method per row in the table, named for the behaviour
(rejects_empty_order_list, not test_1). Given / when / then as comments or helper methods.
RISK LEVEL HARMLESS, DURATION SHORT. Test data is invented in the test, never copied from a
real system.
4. Run and fix. Run the tests. A failing test is either a test mistake (fix the test) or a real defect (do not fix the code here; report it with the failing test as evidence).
5. Write the QAS scenarios. For each acceptance criterion, a manual scenario: precondition and test data to create, steps in the transaction, expected result. Add one scenario per authorization role that the change affects.
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/bugfixFix 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)./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-abapOther plugins' skills for the same job