Skip to content
Skills Library
Programming · Building & coding

bugfix

/bugfix

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 (us

Licence
MIT
Last repository change
09.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 09.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

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 (us

Triggers from the description

this report crashesfix this dumpwrong value after savejob fails every nightusers get error message Xwhy does this BAdI fail
Original author description

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 (us

How it works

  1. When to use
  2. When not to use
  3. How you reach the system
  4. Workflow (a person approves at each gate)
  5. Rules
  6. Output
Original SKILL.md headings · 81 lines, 690 words
SKILL.md preview
---
name: bugfix
description: 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).
---

# bugfix

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.

## When to use

- A short dump in ST22, with a runtime error such as `ITAB_DUPLICATE_KEY`,
  `GETWA_NOT_ASSIGNED`, `CONVT_NO_NUMBER`, or an uncaught exception class
- A wrong result reported in Jira ("the total is off", "status not updated")
- A batch job that fails, with its job log or application log (SLG1)

## When not to use

- The "bug" is a missing feature or a changed requirement: use spec-grill
- You only need to understand the code: use reverse-engineer
- SAP standard code is at fault: search SAP notes and raise an incident; do not modify standard

## How you reach the system

Say which setup you are using before step 1.

- **ABAP MCP server that can write (DEV only).** Read the dump (if the server offers it), code,
  DDIC and where-used live. Write the failing test and the fix in DEV in an allowed package, run
  ATC and ABAP Unit.
- **Read-only ABAP MCP server.** Read and run tests over MCP. Hand the test and the fix to a
  person who applies them in ADT; then run the checks.
- **Files exported with abapGit.** Work on the export plus the dump text a person pastes. Write
  the test and fix as files; a person imports them and runs the checks.

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.

## Workflow (a person approves at each gate)

**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.

## Rules

- No fix before a confirmed cause.
- Never debug or test in production. Reproduce in DEV with invented test data.
- Never read table contents to "see the bad record". Ask a person to describe the data pattern
  (for example "two items with the same key") without real values.
- The smallest change that fixes the cause. Refactoring goes to a separate transport.
- A person releases the transport.

## Output

1. The bug in one sentence
2. Call chain from entry point to the failing line
3. The cause with code evidence, confirmed by <person>
4. The failing test, then passing
5. The fix as a diff, with ATC and test results
6. Same pattern elsewhere (if any)
7. Jira note: cause, fix, test, transport

Versions

RepositoryScoreLicence
This page · marian-kamenistak/sap-ai-skills100MIT
qwenlm/qwen-code100Apache-2.0
grimoire-rs/grimoire100Apache-2.0
duthaho/skillhub100MIT
alibaba/mnn95Apache-2.0
4typen/skills90MIT
kangig94/coral90MIT
woliveiras/baseline86MIT

Database snapshot: 13.11.2026 · package version e41f54e0d3c6 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90reverse-engineer
    Explain 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…
  • 90implement
    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…
  • 100dump-triage
    Triage ABAP short dumps (ST22) — list recent dumps, group by root cause, read the dump chapters, pull the source at the termination point, and produce a prioritized report with a concrete fix suggestion per dump family. Use whenever the user mentions dumps, ST22, runtime errors,…
  • 90pm-bugfix
    Create or manage a bug-fix workflow packet. Use when the user reports a bug, says "fix this bug", or needs a structured workflow for diagnosing and resolving a defect. Emphasizes reproduction, root cause analysis, minimal fix, and regression testing.
  • 100bug-investigation
    Takes a defect from report to regression test without guessing: facts and blast radius first, safe reproduction, a test that fails without the fix, a root-cause fix, closure after a verified deploy. Use when given a stack trace, error-tracker link or issue ID, 'why does X…
  • 100implementing-bug-fix
    Implements a bug fix from a GitHub issue URL or ID, or auto-selects the next feasible confirmed P0-P3 bug. Researches and reproduces the bug, plans, implements, tests, and creates a merge-ready PR. Use when asked to fix a bug, implement a bugfix, or run /implementing-bug-fix.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.