/sap-abap:implementfrom sap-abap
Build a new SAP ABAP feature from an approved specification to activated, tested code in DEV assigned to a transport, with two technical options for a person to choose from and ABAP Unit tests for each acceptance criterion. Use when someone says "implement this ticket", "build this", "develop this change", "add this field / check / output to the Z program", "write the BAdI implementation", "create the class for this spec", or hands over a spec that scored 8/10 or more in spec-grill. Not for unclear tickets (run spec-grill first), not for bugs (use bugfix), not for restructuring old code without new behaviour (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.
Take an approved specification and deliver working ABAP: code, tests and a transport assignment. A person picks the technical option, reviews the diff and releases the transport. The tests are written against the acceptance criteria in the spec, so they prove the requirement, not just the code you happened to write.
Say which setup you are using before step 1.
1. Read the spec and the system. Confirm the spec has a score of 8 or more. Read every object it names, plus the where-used of anything you will change. List the places the change touches. If the spec contradicts what is in the system (a field that does not exist, a BAdI that is already implemented), stop and send it back.
2. Two options, then STOP for a choice. Propose two technical options. For each: objects to create or change, the enhancement technique (BAdI, enhancement, new class, change to Z code), impact on callers, performance, upgrade safety and risks. Recommend one and say why. Do not write code until a person picks.
3. Tests first. Write ABAP Unit tests for each acceptance criterion, given / when / then. Use
test doubles for the database (CL_OSQL_TEST_ENVIRONMENT, CL_CDS_TEST_ENVIRONMENT) and for
dependencies behind interfaces (CL_ABAP_TESTDOUBLE). On releases without these frameworks, inject
the dependency through an interface and replace it in the test.
4. Build. Write the code following Clean ABAP and the team's naming rules. Small methods, exceptions over return codes in new code, no SELECT in loops, AUTHORITY-CHECK where the spec asks for it. Activate, run syntax check, ATC and the tests; fix and repeat until all pass (or hand over, depending on your setup).
5. Show the diff, then STOP for review. Present the full diff and the test and ATC results. A person reviews it. Apply their changes and run the checks again.
6. Transport and note. Assign every object to one transport (use the one the person gives you, or create one if your setup allows it). Write a short technical note for Jira: options considered, the one chosen and why, objects changed, test results. A person releases the transport.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub marian-kamenistak/sap-ai-skills --plugin sap-abap10 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./documentationWrite technical documentation for an SAP ABAP object or package from the code itself, covering purpose, inputs and outputs, tables read and written, who calls it and what it calls, a Mermaid sequence diagram and known risks, as Markdown for Confluence or a Jira ticket. Use when someone asks to "document this class", "write docs for this Z program", "explain this package for the wiki", "write a technical spec from the code", "onboarding doc for this interface", "what does this function module do, written up", or after implement or transport-release. Not for answering a one-off "how does it work" question (use reverse-engineer), not for writing a functional specification (use spec-grill)./refactorRefactor legacy SAP ABAP code in small, tested steps toward Clean ABAP without changing behaviour, starting with characterization tests that pin down today's output. Use when someone asks to "clean up this program", "refactor this Z report", "make this testable", "split this huge method", "replace FORM routines with a class", "modernize the syntax", "remove duplicated code", "this code is unreadable", or prepares old code for a change. Not for new behaviour (use implement), not for moving data reads into CDS views (use cds-rewrite), not for fixing a known bug (use bugfix)./reverse-engineerExplain how existing SAP ABAP code works or why it fails, by finding the entry point (transaction, report, BAdI, user exit, RFC, batch job) and following the call chain, data flow and where-used, with a Mermaid diagram and evidence from the code. Use when someone asks "how does X work", "where is this field filled", "why does Y happen", "what calls this function module", "what does this Z program do", "trace this transaction", "which BAdI changes this value", or needs to understand legacy code before a change, a refactor or a bugfix. Read-only, never changes code. Not for writing documentation for others (use documentation) and not for fixing the bug (use bugfix).