clean-abap

clean-abap is a skill for Claude Code from likweitan/abap-skills. It costs 99 tokens per session (3,095 once invoked), scanned A, original, MIT.

A review guide for ABAP, the programming language used in SAP business software, based on Clean ABAP coding principles.

In plain words
What is it for?
Use it to review ABAP code, organize findings by topic and severity, and suggest concrete cleaner alternatives.
Why use it?
It helps find unclear names, inconsistent structure, weak error handling, and other code-quality problems before they make the program harder to maintain.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the sap-abap plugin — 18 skills shipped together

Good fit Use it to review ABAP code, organize findings by topic and severity, and suggest concrete cleaner alternatives.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/likweitan/abap-skills/clean-abap
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add likweitan/abap-skills --skill clean-abap
Clone the repo
git clone --depth 1 https://github.com/likweitan/abap-skills

Made for: Claude Code.

Or install sap-abap, the plugin that ships this one along with the rest of its 18 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for clean-abap

README.md
[![agentmods](https://agentmods.dev/badge/skills/likweitan/abap-skills/clean-abap/github.svg)](https://agentmods.dev/skills/likweitan/abap-skills/clean-abap)
Your own site
<a href="https://agentmods.dev/skills/likweitan/abap-skills/clean-abap"><img src="https://agentmods.dev/badge/skills/likweitan/abap-skills/clean-abap/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for clean-abap

Your own site · 80×15
<a href="https://agentmods.dev/skills/likweitan/abap-skills/clean-abap"><img src="https://agentmods.dev/badge/skills/likweitan/abap-skills/clean-abap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,095 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00099 $0.03095
Opus 5 $0.00049 $0.01548
Sonnet 5 $0.00020 $0.00619
Haiku 4.5 $0.00010 $0.00310

Measured 11d ago against content hash 4ded84391e8d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

clean-abap scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills/clean-abap/SKILL.md · 503 lines

How it starts

The opening of the file, as written. The whole thing — 503 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Clean ABAP

This skill provides comprehensive checking of ABAP code against Clean ABAP principles, based on the Clean ABAP style guide which adapts Robert C. Martin's Clean Code for ABAP.

How to Use This Skill

When checking ABAP code for Clean ABAP compliance:

  1. Read the code provided by the user
  2. Categorize issues by Clean ABAP sections (Names, Language, Constants, Variables, Tables, Strings, Booleans, Conditions, Ifs, Classes, Methods, Error Handling, Comments, Formatting, Testing)
  3. Identify violations with specific line references when available
  4. Provide actionable recommendations with code examples showing both the problem and the clean solution
  5. Prioritize issues by impact (critical, major, minor)

Check Categories

1. Names

Key Principles:

  • Use descriptive names that convey content and meaning
  • Prefer solution domain and problem domain terms
  • Use pronounceable names
  • Use snake_case consistently
  • Avoid abbreviations unless necessary
  • Use nouns for classes, verbs for methods
  • Avoid noise words like "data", "info", "object"
  • Pick one word per concept
  • Avoid encodings (Hungarian notation, prefixes like iv*, rv*, lt_)
  • Avoid obscuring built-in functions

Check for:

  • Non-descriptive variable/method/class names (e.g., data1, temp, x)
  • Inconsistent abbreviations across the code
  • Mixed naming conventions (not snake_case)
  • Noise words in names
  • Hungarian notation or unnecessary prefixes (iv*, ev*, rv*, lt*, ls_)
  • Method names that obscure ABAP built-in functions

2. Language

Key Principles:

  • Prefer object orientation to procedural programming
  • Prefer functional to procedural language constructs
  • Avoid obsolete language elements
  • Use design patterns wisely

Check for:

  • Use of obsolete statements (unescaped host variables in SELECT, etc.)
  • Procedural code that should be object-oriented
  • Use of old-style MOVE instead of assignment
  • TRANSLATE instead of to_upper()/to_lower()
  • CREATE OBJECT instead of NEW
  • Old-style READ TABLE instead of table expressions

Read the full file on GitHub · 503 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 503 lines · 99 tokens per session scan A 4ded84391e8d

Subscribe to this mod's changes

clean-abap is a skill published in the GitHub repository likweitan/abap-skills (60 stars, last pushed 15d ago), licensed MIT. It adds 99 tokens to every session and 3,095 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

sap-transport-gate

Use for SAP Transport Request pre-release gate review (QAS/PRD). Triggers on any TR number in input (pattern: uppercase letters + K + 6 digits, e.g., DEVK900123, ECDK943668). Asks user: code-quality-only or functional+code review. Performs 10-dimension risk review of ABAP/CDS/DDIC source, object list, dependencies…

shrek-abaper/sap-engineering-skill · 185 tokens

abap-code-review

Performs structured pre-release security and quality review of SAP ABAP programs across 9 dimensions (SEC, AUTH, DATA, PERF, STD, INTERFACE, CHANGE, COMP, FUNC), producing a formal sign-off-ready Markdown assessment report. Trigger when the user asks to review, audit, assess, or check ABAP code before release …

shrek-abaper/sap-engineering-skill · 162 tokens

code-review

Use when reviewing ABAP code, SAP development artifacts, CDS views, or any custom SAP code before transport release, pull request approval, or go-live sign-off.

vigneshbarani24/sap-superpowers · 36 tokens

clean-abap

Clean ABAP coding standards and best practices. Use when writing ABAP code, reviewing ABAP code, or refactoring ABAP code to ensure it follows SAP's official Clean ABAP style guide. Covers naming conventions, modern language constructs, class/method design, error handling, formatting, comments, and unit testing…

marcellourbani/vscode_abap_remote_fs · 69 tokens

sap-expert

Expert in SAP ERP systems, ABAP programming, SAP HANA, S/4HANA, Fiori applications, and SAP integration patterns including OData, RFC, and IDoc. Use when the user mentions ERP, enterprise, business apps, ABAP, HANA, or S/4HANA, or when the task involves SAP Ecosystem, ABAP Development, Integration Technologies, or…

personamanagmentlayer/pcl · 92 tokens

sap-sac-custom-widget

SAP Analytics Cloud (SAC) Custom Widget development. Use when building custom visualizations, extending SAC with Web Components, or creating Widget Add-Ons. Covers JSON metadata, JavaScript Web Components, lifecycle functions, data binding with feeds, styling/builder panels, property/event/method definitions…

secondsky/sap-skills · 103 tokens