# Code generation

> Code generation is an open-source agent skill for developer tools. Guides agents to write clean-core, testable SAP ABAP, CDS, RAP and CAP code. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/vigneshbarani24/sap-superpowers/tree/main/skills/development/code-generation
- **Repository:** https://github.com/vigneshbarani24/sap-superpowers
- **GitHub stars:** 14
- **License:** MIT
- **Skill name:** code-generation
- **Collection:** https://github.com/vigneshbarani24/sap-superpowers
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill sets rules for an AI agent producing SAP development code across ABAP, CDS, RAP, Fiori Elements and BTP CAP. It asks the agent to settle the target platform first, whether ABAP Cloud, S/4HANA on-premise or BTP CAP, and then choose the matching language subset and released APIs.

The workflow runs in ordered stages: documenting the data model and API dependencies, building interfaces and class skeletons before logic, writing ABAP Unit test classes alongside the implementation, and adding documentation headers. The skill also lists naming prefixes such as ZCL_, ZIF_ and ZI_/ZC_/ZR_ for CDS and RAP objects, and bans direct reads from SAP application tables in favour of released CDS entities.

It expects an agent working against an SAP system or a project with access to ATC checks, and it closes with a generated-code record template covering objects, dependencies and test results. The skill is written for Claude Code and is distributed as a plugin in the sap-superpowers marketplace.

## When your agent uses it

> Use when generating ABAP, CDS, RAP, Fiori Elements, or BTP CAP code for SAP systems. Enforces cloud-ready, clean-core-compliant, testable code generation — not quick-and-dirty prototypes.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/vigneshbarani24/sap-superpowers/tree/HEAD/skills/development/code-generation)
- [License: MIT](https://github.com/vigneshbarani24/sap-superpowers/tree/HEAD/skills/development/code-generation)

## Features

- **Platform-first generation:** Requires confirming ABAP Cloud, on-premise or CAP as the target before any code is written.
- **Released API enforcement:** Steers data access through released CDS entities and APIs instead of physical SAP tables.
- **Unit test requirement:** Asks for ABAP Unit test classes covering public methods alongside each generated class.
- **Naming convention rules:** Lists Z/Y prefixes and RAP layer naming such as ZCL_, ZIF_, ZI_, ZC_ and ZR_.
- **Staged generation workflow:** Orders work into design, interface skeleton, tests, logic and documentation steps.
- **ATC and error handling checks:** Expects explicit error handling on external calls and ATC runs with no P1 or P2 findings.
- **Generated code record:** Provides a template listing objects, data dependencies, ATC results and transport details.

## Good for

- Generate a CDS interface view on released journal entry data for a BTP ABAP project
- Write an ABAP Cloud class with interface and unit tests for invoice processing
- Build a RAP business object with behavior definition and behavior implementation class
- Create a BTP CAP service with a CDS data model and Jest tests
- Set up a Fiori Elements list report and object page over an OData V4 service

## Install

### Claude Code

This skill ships in the `sap-superpowers` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add vigneshbarani24/sap-superpowers
/plugin install sap-superpowers@sap-superpowers
```

Or copy only this skill to `~/.claude/skills/code-generation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vigneshbarani24/sap-superpowers.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-generation &&
cp -R "$tmp/skills/development/code-generation" ~/.claude/skills/code-generation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/code-generation` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/code-generation` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vigneshbarani24/sap-superpowers.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-generation &&
cp -R "$tmp/skills/development/code-generation" ~/.agents/skills/code-generation &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/code-generation` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/code-generation` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vigneshbarani24/sap-superpowers.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-generation &&
cp -R "$tmp/skills/development/code-generation" ~/.cursor/skills/code-generation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/code-generation` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/vigneshbarani24/sap-superpowers.git --path skills/development/code-generation
```

Or copy the folder to `~/.gemini/skills/code-generation` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/code-generation`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/vigneshbarani24/sap-superpowers.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-generation &&
cp -R "$tmp/skills/development/code-generation" ~/.copilot/skills/code-generation &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/code-generation` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/vigneshbarani24/sap-superpowers.git
```

Then copy `sap-superpowers/skills/development/code-generation` into your agent's skills folder as `code-generation`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which clients can use Code generation?

The skill is listed for Claude Code and is distributed as a Claude Code plugin in the sap-superpowers marketplace.

### Does Code generation need any scripts or extra tools to run?

The skill folder contains only its SKILL.md file and no scripts. It has no tool restrictions set, and it refers to SAP tools such as ATC and transaction TAANA.

### Will Code generation generate code that reads from SAP tables like BSEG or VBAK?

No. Its rules say custom code must access data through released CDS entities, released function modules or released OData and RAP APIs, not physical tables.

### What happens after the code is generated?

The skill names code-review as the next step, once code compiles, passes unit tests and is ATC-clean. It also points to troubleshooting, performance-tuning and development-workflow skills for related tasks.

### How do I install Code generation in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-generation to use it in all your projects, or to .claude/skills/code-generation in one project. Or install the sap-superpowers plugin, which includes it: /plugin marketplace add vigneshbarani24/sap-superpowers, then /plugin install sap-superpowers@sap-superpowers.

### Does Code generation run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Code generation?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Code generation?

The closest alternatives to Code generation are Autopilot, Code writer, Abap cloud, Code review and Writing sap skills.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Autopilot](https://ai-powered.com/skills/autopilot-vigneshbarani24): Autopilot is an open-source agent skill for developer tools.
- [Code writer](https://ai-powered.com/skills/code-writer): Code writer is an open-source agent skill for developer tools.
- [Abap cloud](https://ai-powered.com/skills/abap-cloud): Abap cloud is an open-source agent skill for developer tools.
- [Code review](https://ai-powered.com/skills/code-review-vigneshbarani24): Code review is an open-source agent skill for developer tools.
- [Writing sap skills](https://ai-powered.com/skills/writing-sap-skills): Writing sap skills is an open-source agent skill for developer tools.
- [Using sap superpowers](https://ai-powered.com/skills/using-sap-superpowers): Using sap superpowers is an open-source agent skill for developer tools.
- [Aicore SDK js](https://ai-powered.com/skills/aicore-sdk-js): Aicore SDK js is an open-source agent skill for developer tools.
- [Aicore SDK python](https://ai-powered.com/skills/aicore-sdk-python): Aicore SDK python is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/code-generation
