cap-code-generator

Generate SAP CAP models, services, handlers, and tests from backlog and design artifacts.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/apadern/.github_tailormade --skill cap-code-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cap-code-generator
Source: https://github.com/apadern/.github_tailormade/tree/main/skills/cap-code-generator
Command: npx skills add https://github.com/apadern/.github_tailormade --skill cap-code-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps automate the generation of SAP CAP code from backlog and technical design artifacts, ensuring consistent structure across db/, srv/, and test/ folders and enabling enterprise-grade quality.

Core Features & Use Cases

  • Generate models (db/[modulo]/schema.cds) and types (db/[modulo]/types.cds) from backlog and design artifacts.
  • Generate services, handlers, authorization, data seeds and tests to implement or extend a CAP module.
  • Apply enterprise-level practices for modeling, OData exposure, security, validation, and modular project structure.
  • Use case: you have a backlog for a new CAP module and design specs; this skill scaffolds full CAP artifacts ready for implementation.

Quick Start

Run the Cap Code Generator on backlog.md and design files to produce the complete CAP module skeleton and artifacts for a new module.

Frequently Asked Questions about cap-code-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate SAP CAP CDS models and services from a backlog?

To generate SAP CAP CDS models and services, provide your backlog and technical design artifacts to scaffold consistent db/ and srv/ folder structures. The skill outputs schema.cds, types.cds, and service definitions ready for implementation.

Can I generate CAP handlers, data seeds, and tests from technical design specs?

Yes, you can generate CAP handlers, data seeds, and tests from technical design specs. The skill adapts to various modes including data, tests, and auth, producing artifacts that validate builds per your design documents.

What is the best way to scaffold an enterprise-grade SAP CAP module structure?

The best way to scaffold an enterprise-grade SAP CAP module is to automate generation from backlog and design files. This enforces coding standards, security validation, and modular project structure across db/, srv/, and test/ folders.

Does the CAP code generator support authorization and security modeling?

Yes, the CAP code generator supports authorization and security modeling. It applies enterprise-level practices for security and validation, generating auth definitions alongside CDS models and services from your design artifacts.

How do I create consistent CAP db, srv, and test folders from design documents?

You create consistent CAP db, srv, and test folders by processing design documents through the generator. It analyzes your backlog and specs to populate modular folder structures with matching CDS models, services, and test files.