abap-cds-model-check
Optional intended usage such as analytical, transactional, reuse, value-help, or extraction
Topic: entities, services, annotations, queries, or types
$ npx -y skills add secondsky/sap-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/cap-cds-referenceContext preview
What this command does when you run it.
Topic: entities, services, annotations, queries, or types
name: cap-cds-reference
description: Quick CDS syntax reference for entities, services, annotations, and queries
allowed-tools:
- Read
- Grep
- Glob
argument-hint: "[topic]"
arguments:
- name: topic
description: "Topic: entities, services, annotations, queries, or types"
required: falseReturn the requested CDS reference, version-sensitive caveats, minimal examples, and related CAP commands or references. Default to read-only guidance and mark runtime or activation checks as pending unless project evidence is available.
Comprehensive CDS (Core Data Services) syntax reference for SAP Cloud Application Programming Model.
entity Books {
key ID : UUID;
title : String(100);
price : Decimal(10,2);
stock : Integer;
}using { cuid, managed } from '@sap/cds/common';
entity Books : cuid, managed {
title : String(100);
price : Decimal(10,2);
}
// cuid adds: ID : UUID
// managed adds: createdAt, createdBy, modifiedAt, modifiedByentity Books {
key ID : UUID;
title : String(100);
author : Association to Authors; // to-one
reviews : Composition of many Reviews on reviews.book = $self; // to-many
}service CatalogService {
entity Books as projection on my.Books;
entity Authors as projection on my.Authors;
}service OrdersService {
entity Orders as projection on my.Orders actions {
action cancel() returns String;
};
}entity Books {
title : String(100) @title: 'Book Title';
price : Decimal(10,2) @title: 'Price';
stock : Integer @assert.range: [0, 9999];
}annotate CatalogService.Books with @(
UI.LineItem: [
{ Value: title, Label: 'Title' },
{ Value: author.name, Label: 'Author' }
]
);const books = await SELECT.from(Books);
const book = await SELECT.one.from(Books).where({ ID: bookID });await INSERT.into(Books).entries({ title: 'CAP Guide', price: 29.99 });await UPDATE(Books).set({ stock: stock + 10 }).where({ ID: bookID });await DELETE.from(Books).where({ ID: bookID });For comprehensive documentation, see:
40 SAP development plugins with evidence-tracked verification SAP development plugins for AI coding assistants, with public-source or package-registry verification tracked where available.
Repo: secondsky/sap-skills
Optional intended usage such as analytical, transactional, reuse, value-help, or extraction
Optional target ABAP platform or SAP BTP ABAP Environment release
Optional runtime or scenario name, such as orchestration, serving, training, or batch
Optional scenario lens such as extension, integration, analytics, or AI