Logo vun Clean Core Check

Clean Core Check

Communautéit
matt1as
clean-core-check

Check an ABAP object or package for clean core compliance — unreleased APIs, direct SELECT on SAP-owned tables, classic constructs disallowed in ABAP Cloud, modifications to SAP standard. Use when the user asks to audit, verify, or check clean core compliance, ABAP Cloud compatibility, released API usage, or extension point usage. Produces a categorised report with hard violations and soft warnings. Read-only — never writes back. Targets BTP ABAP Environment and S/4HANA on-prem in the ABAP Cloud development model.

Iwwersiicht

Editeurmatt1as
Repositoryclaude-abap-skills
Skill-Nummclean-core-check
Stären
34
Forks
5
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum matt1as op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Clean Core Check an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/matt1as/claude-abap-skills/tree/main/abap-cloud-rap/clean-core-check
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/matt1as/claude-abap-skills.git /tmp/claude-abap-skills
mkdir -p .claude/skills
cp -r /tmp/claude-abap-skills/abap-cloud-rap/clean-core-check .claude/skills/clean-core-check
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Clean Core Check an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Clean Core Check automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Clean Core Check net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

abap-cloud-rap:clean-core-check

Check an ABAP object or package for clean core compliance. Pulls the source from the connected system and produces a categorised compliance report with concrete remediation steps.

What this command does

You are auditing one or more ABAP objects for compliance with the clean core principles enforced by ABAP Cloud development model. The rules in ../CLAUDE.md define what is allowed; this command finds what is not. Output is a structured report — read-only, no writes back.

Tool routing. Read the ## Tooling section in ../CLAUDE.md before the first tool call. This skill is read-heavy, so most of its work lands on arc-1:

StepPrimaryFallback
List the objects in scopearc-1 SAPRead type=DEVC (package) or SAPSearchask the user for the object list
Read each object's sourcearc-1 SAPReadask the user to paste it
Decide whether a consumed SAP API is releasedarc-1 SAPRead type=API_STATE — the authoritative C0–C4 contract stateATC evidence below, else flag as unverified
Corroborate with tool findingsabap-adt abap_atc_run + abap_atc_get_result, variant ABAP_CLOUD_DEVELOPMENT_DEFAULTarc-1 SAPDiagnose action="atc"
Trace what a custom CDS view sits onarc-1 SAPContext action="deps" / action="impact"read the source and follow select from by hand

SAPRead type=API_STATE replaces guesswork: never assert that an SAP object is or is not released from memory — check it, or mark the finding unverified and say so.

Inputs

If not provided, ask. Defaults to the narrowest scope.

  • An ABAP object name (class, function group, program, include, CDS entity, BDEF)
  • A package name
  • A transport request — check every object in the transport

What to check

For each object in scope, look for the following. Each maps to a rule in CLAUDE.md.

Hard violations — never allowed in either BTP or S/4HANA on-prem Cloud development

CheckSource rule
Use of an SAP class/interface/FM with no C1 releasereleased-apis-only
Direct SELECT from a SAP-owned database tableno-direct-select-on-sap-owned-tables
Classic dynpro (CALL SCREEN, screen exits)abap-cloud-language-scope-only
SUBMIT, CALL TRANSACTION, LEAVE TOabap-cloud-language-scope-only
FORM / PERFORMabap-cloud-language-scope-only
CALL FUNCTION ... DESTINATION 'NONE' for internal logicabap-cloud-language-scope-only
Modification of SAP standard objectsno-modification-of-sap-standard
Use of an SAP enhancement point that is not releasedno-modification-of-sap-standard
define view (legacy DDL view) instead of define view entityinterface-entity-required-annotations

Soft warnings — allowed in S/4HANA on-prem Cloud development for transitional reasons, never allowed in BTP

CheckNote
Use of a SAP API released only with Use System-Internally contractAllowed on-prem during migration, hard-blocked on BTP
Released-API use that is deprecated and slated for removalWill become a hard violation in a future release
Custom CDS view selecting from another unreleased custom viewAllowed today, but introduces a chain that will break

Procedure

  1. Get the source. Resolve the scope and read every object per the tool-routing table above. The official abap-adt server has no source-read tool, so this step runs on arc-1 SAPRead; if arc-1 is not connected, ask the user to paste the source from ADT. Do not paraphrase or imagine source code.
  2. For each object, walk the hard checks. Record every hit with: object, line/element, check name, root-cause rule, and a concrete remediation.
  3. Then walk the soft checks for objects targeting S/4HANA on-prem. Skip soft checks if the target is BTP — every soft finding is hard there.
  4. For every finding, propose a concrete fix. Examples:
    • Direct SELECT vbak → "use released I_SalesOrder; field VBELN becomes SalesOrder, NETWR becomes TotalNetAmount"
    • Unreleased FM call → "use released class <X> instead; signature: <methods>"
    • define view ZX_... → "migrate to define view entity ZX_...; remove @AbapCatalog.sqlViewName"
    • PERFORM process_order → "move logic to a method on a FINAL class; declare per Clean ABAP methods-do-one-thing-and-stay-small"
  5. Do not write changes. This command is read-only. The user runs /abap-cloud-rap:atc-remediation or fixes by hand.

Output format

# Clean Core Compliance Report — <SCOPE>

Target system: BTP | S/4HANA on-prem
Objects audited: <N>
Hard violations: <N>
Soft warnings: <N>

## Hard violations
(Listed by object, then by check.)

### Object: <name>
#### HV-001 — <one-line violation>
- **Where:** <file> line <N>
- **Check:** <check name from the hard table above>
- **Rule:** <rule-name from CLAUDE.md>
- **Found:**
` ` `abap
<offending code>
` ` `
- **Fix:**
` ` `abap
<concrete replacement, ready to paste>
` ` `
- **Notes:** <e.g. field-name mapping when migrating from a table to a released CDS view>

(repeat per finding)

## Soft warnings (S/4HANA on-prem only)
(Same structure as hard violations; only emitted when target is S/4HANA on-prem.)

## Summary
| Object                | Hard | Soft | Clean core compliant? |
|-----------------------|------|------|-----------------------|
| <name>                | N    | N    | yes / no              |
...

## Recommended next actions
1. Fix the hard violations first — they prevent activation on BTP.
2. For ATC-checkable findings, run `/abap-cloud-rap:atc-remediation` to apply mechanical fixes in batches.
3. For semantic migrations (e.g. `vbak → I_SalesOrder` with field renames), do them by hand and re-run this command to confirm.
4. Re-run this command after fixes to confirm.

Hard rules for this command

  • Read-only. No writes back. Ever. Only read/diagnose tools from either server.
  • Always state the target system. Hard vs soft violation depends on it.
  • Verify release state, never recall it. A released-apis-only finding must cite SAPRead type=API_STATE output or an ATC finding. Otherwise mark it unverified.
  • Always cite the check name and the source rule. Never present a finding without both.
  • Always show a concrete remediation. A finding without a fix is not useful.
  • For field-name migrations (e.g. vbak.vbeln → I_SalesOrder.SalesOrder), list every renamed field used in the surrounding code — not just the table swap. Half a migration is worse than none.
  • Pseudo-comment suppression is not a remediation. If the user wants to ignore a finding, they should justify it through /abap-cloud-rap:atc-remediation, not here.
  • Do not include findings that have no rule in CLAUDE.md. This is a compliance check against the library, not a free-form code review.

Heefeg gestallte Froen

Wat mécht de KI-Skill Clean Core Check?

Check an ABAP object or package for clean core compliance — unreleased APIs, direct SELECT on SAP-owned tables, classic constructs disallowed in ABAP Cloud, modifications to SAP standard. Use when the user asks to audit, verify, or check clean core compliance, ABAP Cloud compatibility, released API usage, or extension point usage. Produces a categorised report with hard violations and soft warnings. Read-only — never writes back. Targets BTP ABAP Environment and S/4HANA on-prem in the ABAP Cloud development model.

Firwat Clean Core Check op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Clean Core Check besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Clean Core Check an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/matt1as/claude-abap-skills/tree/main/abap-cloud-rap/clean-core-check an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Clean Core Check benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Clean Core Check benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Clean Core Check domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Clean Core Check gratis?

Jo. De Skill gëtt vum matt1as ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇