Clean Core Check logo

Clean Core Check

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

Overview

Publishermatt1as
Repositoryclaude-abap-skills
Skill nameclean-core-check
Stars
34
Forks
5
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by matt1as on GitHub. Read the source before you install it.

Installation

Install the Clean Core Check AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/matt1as/claude-abap-skills/tree/main/abap-cloud-rap/clean-core-check
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Clean Core Check in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Clean Core Check on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Clean Core Check is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Frequently asked questions

What does the Clean Core Check AI skill do?

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.

Why use Clean Core Check on TypingMind?

Because you install it once and use it with any model. Clean Core Check is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Clean Core Check in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/matt1as/claude-abap-skills/tree/main/abap-cloud-rap/clean-core-check. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Clean Core Check?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Clean Core Check?

As many as you like. As long as a model supports skills, you can use Clean Core Check with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Clean Core Check AI skill free?

Yes. It is published on GitHub by matt1as under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇