sap-cap-capire

Guides SAP CAP development with CDS modeling, event handlers, and BTP deployment references.

Updated May 18, 2026
One-click install
npx skills add https://github.com/Melik1986/axon-erp-api --skill sap-cap-capire-melik1986
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: sap-cap-capire
Source: https://github.com/Melik1986/axon-erp-api/tree/main/cursor/skills/sap-cap-capire
Command: npx skills add https://github.com/Melik1986/axon-erp-api --skill sap-cap-capire-melik1986

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @sap/cds, @sap/cds-dk, @cap-js/mcp-server, @sap/cds-lsp, and includes references (resource) components.

What problem does it solve? Building SAP Cloud Application Programming Model (CAP) applications requires deep knowledge of CDS syntax, CQL queries, event handlers, database configuration, and BTP deployment, and this Skill consolidates that guidance into one reference-driven workflow. ## Core Features & Use Cases - CDS Modeling & Services: Define entities, associations, compositions, service projections, actions, and functions using CDL/CSN with 22 bundled reference files. - Runtime & Database Guidance: Implement Node.js or Java event handlers, CQL queries, and configure SQLite, SAP HANA, or PostgreSQL persistence. - Deployment & Security: Deploy to Cloud Foundry or Kyma via MTA, configure XSUAA authorization, multitenancy, messaging, and CAP MCP/LSP tooling. - Use Case: When scaffolding a new CAP service with Fiori annotations and HANA persistence, use this Skill to generate the schema, service definitions, and mta.yaml following Capire best practices. ## Quick Start Ask the assistant to create a new CAP project with a Books entity, a CatalogService projection, and HANA deployment configuration.

Frequently Asked Questions about sap-cap-capire

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

FAQPage Schema
How do I create a new SAP CAP project?▼

Run cds init with your project name, optionally adding features like sample, hana, or xsuaa. Then use cds watch to start a development server with live reload and cds add to enable additional capabilities later.

How to define CDS entities and associations in CAP?▼

Define entities in db/schema.cds using built-in types like UUID, String, and Decimal, with managed associations letting CAP auto-generate foreign keys. Use aspects like cuid and managed from @sap/cds/common for standard key and audit fields.

Does SAP CAP support databases other than SAP HANA?▼

Yes, CAP supports SQLite for local development, PostgreSQL, and H2 in addition to SAP HANA for production. Configure the database kind per profile in package.json and deploy schema with cds deploy --to hana.

How do I deploy a CAP application to Cloud Foundry?▼

Add deployment support with cds add hana,xsuaa,mta,approuter, then build the MTA archive with mbt build and deploy using cf deploy. The mta.yaml descriptor defines service modules, HDI containers, and XSUAA resources.

Why does my CAP authorization annotation not work?▼

Authorization issues usually stem from incorrect @requires or @restrict annotations, missing XSUAA bindings, or unmapped role templates in xs-security.json. Verify scope names match and check user role collections in the BTP cockpit.

What is the CAP MCP server used for?▼

The @cap-js/mcp-server provides search_model for fuzzy searching compiled CSN entities and services, and search_docs for semantic CAP documentation queries. It runs locally without credentials and integrates with AI coding assistants.