Abap code review

From 5throck/ai-workspace-standards · View interactive version

Abap code review is an AI agent skill from the GitHub repository 5throck/ai-workspace-standards. Use when reviewing ABAP source for Clean ABAP conformance before object activation, transport release, or after importing foreign code. Covers the three ABAP-specific dimensions that general-purpose review skills do not - naming conventions, pretty-printer formatting, and anti-pattern compliance - a

How to use this skill

Skill file

ABAP Code Review

Context

co-develop's general-purpose code-review skill covers language-agnostic review practice - it does not cover ABAP-specific compliance. This skill operationalizes the Clean ABAP Conformance Checklist (docs/clean-abap-checklist.md) as a structured review pass over ABAP source. The checklist is the review standard: this skill walks its rule families and cites section numbers - it does not restate or duplicate the rules themselves.

When to Use

Review Dimensions

Walk exactly three dimensions. Each cites the checklist sections that define it.

| Dimension | Checklist sections | What is checked |

|-----------|-------------------|-----------------|

| (a) Naming | §1 | snake_case, no type/Hungarian encoding, plural collections, nouns for classes and verbs for methods, no noise words, consistent terms |

| (b) Pretty-printer & formatting | §10 | ABAP Formatter run before activation, one statement per line, line length, blank-line and bracket placement conventions, alignment and indentation |

| (c) Anti-patterns | §2, §4, §6, §7, §8 | Obsolete language elements (§2), table and string anti-patterns such as DEFAULT KEY (§4), control-flow anti-patterns such as empty IF branches (§6), class/method anti-patterns such as CHECK in the method body or mixed export mechanisms (§7), error-handling anti-patterns such as non-class-based exceptions or silent failures (§8) |

Execution Steps

  1. Load the review standard - read docs/clean-abap-checklist.md before reviewing. Review against the checklist as written, never from memory.
  2. Walk dimension (a) Naming - evaluate the object against every rule in checklist §1, recording findings with the section number.
  3. Walk dimension (b) Pretty-printer & formatting - evaluate against checklist §10, including whether the ABAP Formatter conventions were applied before activation.
  4. Walk dimension (c) Anti-patterns - sweep checklist §2 (obsolete language elements), §4 (tables & strings), §6 (control flow), §7 (classes & methods), and §8 (error handling) for anti-pattern matches.
  5. Classify each finding:
  1. Cross-reference the ATC rule pack - for every blocker finding, check scripts/co-abap/atc-rulepack.json for a matching check and record its id where one exists. The rule pack is the system-side execution of the same standard - a finding that maps to a rule-pack blocker check must fail review.
  2. Emit the review table and verdict - produce the Output Format table below and an overall verdict. Any blocker finding means the review FAILS and the object must not be activated or released until fixed.

Output Format

| Object | Dimension | Checklist § | Finding | Severity | ATC check (if mapped) |

|--------|-----------|-------------|---------|----------|-----------------------|

| ZCL_EXAMPLE | Naming | §1 | Hungarian prefix lv_customer on local variable | blocker | - |

| ZCL_EXAMPLE | Anti-patterns | §2 | Obsolete MOVE statement | blocker | obsolete-language-elements |

| ZCL_EXAMPLE | Pretty-printer & formatting | §10 | Chained statements on one line | should | - |

Severity values: blocker / should / note. End with a verdict line: Review verdict: PASS or Review verdict: FAIL (N blocker findings).

Relationship to ATC

This skill is the agent-side review pass over source before activation or release. scripts/co-abap/atc-rulepack.json plus VSP's RunATCCheck (selection printed by scripts/co-abap/vsp-audit.ts --change-type <type>) is the system-side execution of the same checklist. Both derive from docs/clean-abap-checklist.md, so:

Out of Scope

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.