abap
Skill67 starsChanged 5 months agoMITView on GitHub
Comprehensive ABAP code quality checking using abaplint (automated static analysis) and Clean ABAP principles (manual code review). Use when users ask to check, lint, validate, review, or analyze ABAP code for syntax errors, clean code compliance, code quality, best practices, or adherence to Clean ABAP guidelines. Also use for abaplint setup, configuration, and execution. Triggers include "check this ABAP code", "lint my ABAP", "run abaplint", "configure abaplint", "is this clean ABAP", "review my ABAP", "analyze ABAP code quality", "code quality check", or "ABAP best practices".
- Installs packages
In this repository16 other files it gives its agents.
- abap-cloud-migrationSkill
- abap-cloudSkill
- abapgitSkill
- abap-sql-amdpSkill
- abap-unit-testingSkill
- atc-cloudificationSkill
- authorization-iamSkill
- badi-enhancementSkill
- btp-abap-environmentSkill
- btp-diagram-generatorSkill
- cds-view-entitiesSkill
- odataSkill
- rap-business-eventsSkill
- rapSkill
- released-abap-classesSkill
- sap-fiori-url-generatorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. About 0 are common, 16 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Check and improve ABAP code quality using two complementary approaches:
- Distinctive: line 16
If the user asks to lint, run abaplint, or check syntax: use abaplint
- Distinctive: line 17
If the user asks for clean code review, best practices, or code quality: use Clean ABAP review
- Distinctive: line 18
If unclear or the user asks for a full check: use both
- Very specific: line 21
Verify abaplint is installed (npx @abaplint/cli --version or abaplint --version)
- Very specific: line 22
If not installed, install with: npm install @abaplint/cli -g
- Very specific: line 23
Check if abaplint.json exists in the project root
- Very specific: line 24
If no config exists, help the user create one (see starter configs in references/abaplint.md)
- Very specific: line 25
Run abaplint in the project root directory
- Distinctive: line 29
Read the ABAP code provided by the user
- Distinctive: line 30
Check against Clean ABAP categories: Names, Language, Constants, Variables, Tables, Strings, Booleans, Conditions, Ifs, Classes, Methods, …
- Distinctive: line 37
Run in project root:
- Distinctive: line 55
Use descriptive names, snake*case, no Hungarian notation (iv*, lv*, lt*)
- Distinctive: line 60
Prefer OO over procedural, functional over imperative
- Distinctive: line 61
Use modern syntax: NEW, inline declarations, table expressions
- Distinctive: line 65
No magic numbers, use ENUM or grouped constants
- Distinctive: line 69
Prefer inline declarations, no chained DATA
- Very specific: line 73
No DEFAULT KEY, use INSERT INTO TABLE, LINE_EXISTS, WHERE clauses
- Very specific: line 81
Use ABAP_BOOL, ABAP_TRUE/ABAP_FALSE, XSDBOOL
- Distinctive: line 89
No empty IF branches, CASE over ELSE IF, nesting depth <= 3
- Very specific: line 152
Treat clean core findings separately from style findings: a well-formatted SELECT on an SAP table is still Level C.
- Very specific: line 156
abaplint config & setup: Read references/abaplint.md for installation, configuration options, and starter configs
- Very specific: line 157
Complete Clean ABAP guide: Read references/CleanABAP.md for full style guide with rationale and examples
- Very specific: line 158
Quick patterns: Read references/quick-reference.md for condensed good/bad code examples
- Very specific: line 159
Review checklist: Read references/checklist.md for systematic review checklist
- Distinctive: line 163
abap-cloud: Use for clean core levels and ABAP Cloud compliance
- Distinctive: line 164
abap-unit-testing: Use for writing unit tests that follow Clean ABAP principles
- Distinctive: line 165
abap-sql-amdp: Use for modernizing ABAP SQL during code quality improvements
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ABAP
Check and improve ABAP code quality using two complementary approaches:
- abaplint: Automated static analysis via CLI, checking syntax, types, and configurable rules
- Clean ABAP: Manual review against Clean ABAP style guide principles
Workflow
- Determine check type based on user request:
- If the user asks to lint, run abaplint, or check syntax: use abaplint
- If the user asks for clean code review, best practices, or code quality: use Clean ABAP review
- If unclear or the user asks for a full check: use both
- For abaplint checks:
- Verify
abaplintis installed (npx @abaplint/cli --versionorabaplint --version) - If not installed, install with:
npm install @abaplint/cli -g - Check if
abaplint.jsonexists in the project root - If no config exists, help the user create one (see starter configs in
references/abaplint.md) - Run
abaplintin the project root directory - Parse and present findings to the user
- Verify
- For Clean ABAP reviews:
- Read the ABAP code provided by the user
- Check against Clean ABAP categories: Names, Language, Constants, Variables, Tables, Strings, Booleans, Conditions, Ifs, Classes, Methods, Error Handling, Comments, Formatting, Testing
- Identify violations with specific line references
- Provide actionable recommendations with code examples
- Prioritize issues by impact (critical, major, minor)
abaplint Quick Start
Run in project root:
abaplintGenerate default config (all rules):
abaplint -d > abaplint.jsonFor detailed abaplint configuration including starter configs for On-Premise, Steampunk/BTP, and HANA compatibility, read references/abaplint.md.
Clean ABAP Check Categories
Names
- Use descriptive names, snakecase, no Hungarian notation (iv, lv*, lt*)
- Nouns for classes, verbs for methods, no noise words
Language
- Prefer OO over procedural, functional over imperative
- Use modern syntax: NEW, inline declarations, table expressions
Constants
- No magic numbers, use ENUM or grouped constants
Variables
- Prefer inline declarations, no chained DATA
Tables
- No DEFAULT KEY, use INSERT INTO TABLE, LINE_EXISTS, WHERE clauses
Strings
- Backticks for literals, pipes for string templates
Booleans
- Use ABAP_BOOL, ABAP_TRUE/ABAP_FALSE, XSDBOOL
Conditions
- Positive conditions, IS NOT over NOT IS, predicative method calls
Ifs
- No empty IF branches, CASE over ELSE IF, nesting depth <= 3
Methods
- Instance over static, RETURNING over EXPORTING, <= 3 parameters, <= 20 lines
Error Handling
- Exceptions over return codes, class-based exceptions, no catching CX_ROOT
Comments
- Explain why not what, " over *, no commented-out code
Formatting
- One statement per line, <= 120 chars, consistent indentation
Testing
- Given-when-then structure, focused assertions, dependency injection
Output Format
Structure analysis results as:
# ABAP Check Results
## abaplint Findings
[abaplint output, grouped by severity]
## Clean ABAP Review
### Summary
- Total Issues: [count]
- Critical: [count] | Major: [count] | Minor: [count]
### Critical Issues
#### [Category] - [Issue Title]
**Location:** Line [X] / Method [name]
**Problem:** [description]
**Recommendation:** [how to fix]
### Major Issues
[Same format]
### Minor Issues
[Same format]
### Positive Observations
- [Things done well]Clean Core Level Context
Code quality findings can be mapped to SAP's clean core levels when the code is destined for or evaluated against ABAP Cloud:
- Level A — released APIs only; Clean ABAP + abaplint clean
- Level B — classic APIs; stable but requires classic ABAP language version
- Level C — internal SAP objects; migrate to a successor
- Level D — direct SAP table writes,
EXEC SQL, released-for-internal-use APIs; eliminate
Treat clean core findings separately from style findings: a well-formatted SELECT on an SAP table is still Level C. See the abap-cloud skill for level definitions and atc-cloudification for automated checks.
References
- abaplint config & setup: Read
references/abaplint.mdfor installation, configuration options, and starter configs - Complete Clean ABAP guide: Read
references/CleanABAP.mdfor full style guide with rationale and examples - Quick patterns: Read
references/quick-reference.mdfor condensed good/bad code examples - Review checklist: Read
references/checklist.mdfor systematic review checklist
Related Skills
- abap-cloud: Use for clean core levels and ABAP Cloud compliance
- abap-unit-testing: Use for writing unit tests that follow Clean ABAP principles
- abap-sql-amdp: Use for modernizing ABAP SQL during code quality improvements
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

