cds-view-entities

cds-view-entities is a skill for Claude Code from likweitan/abap-skills. It costs 153 tokens per session (3,622 once invoked), scanned A, original, MIT.

A development guide for ABAP CDS view entities, which define reusable data models and their relationships.

In plain words
What is it for?
It is for creating CDS entities, defining associations and compositions, adding UI or analytics metadata, controlling access, and using them in RAP applications.
Why use it?
It helps developers structure data models and apply the annotations and access rules expected in ABAP Cloud.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the sap-abap plugin — 18 skills shipped together

Good fit It is for creating CDS entities, defining associations and compositions, adding UI or analytics metadata, controlling access, and using them in RAP applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/likweitan/abap-skills/cds-view-entities
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add likweitan/abap-skills --skill cds-view-entities
Clone the repo
git clone --depth 1 https://github.com/likweitan/abap-skills

Made for: Claude Code.

Or install sap-abap, the plugin that ships this one along with the rest of its 18 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cds-view-entities

README.md
[![agentmods](https://agentmods.dev/badge/skills/likweitan/abap-skills/cds-view-entities/github.svg)](https://agentmods.dev/skills/likweitan/abap-skills/cds-view-entities)
Your own site
<a href="https://agentmods.dev/skills/likweitan/abap-skills/cds-view-entities"><img src="https://agentmods.dev/badge/skills/likweitan/abap-skills/cds-view-entities/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cds-view-entities

Your own site · 80×15
<a href="https://agentmods.dev/skills/likweitan/abap-skills/cds-view-entities"><img src="https://agentmods.dev/badge/skills/likweitan/abap-skills/cds-view-entities.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 153 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,622 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00153 $0.03622
Opus 5 $0.00077 $0.01811
Sonnet 5 $0.00031 $0.00724
Haiku 4.5 $0.00015 $0.00362

Measured 12d ago against content hash da5aee67225f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

cds-view-entities scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/cds-view-entities/SKILL.md · 477 lines

How it starts

The opening of the file, as written. The whole thing — 477 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CDS View Entities

Guide for building semantic data models using ABAP CDS (Core Data Services) view entities in ABAP Cloud.

Workflow

  1. Determine the user's goal:

    • Creating a new data model (standalone or for RAP)
    • Defining relationships between entities (associations, compositions)
    • Adding annotations for UI, semantics, or analytics
    • Implementing access controls
    • Using expressions, functions, or parameters in CDS
  2. Identify the context:

    • Standalone CDS view vs. RAP BO data model
    • Root entity vs. child entity vs. projection view
    • Transactional (RAP) vs. analytical vs. read-only consumption
  3. Apply best practices:

    • Use CDS view entities (v2 syntax define view entity) — not legacy CDS views (define view)
    • Follow naming conventions (e.g., ZR_* for interface/BO views, ZC_* for consumption/projection views, ZI_* for reuse views)
    • Add appropriate annotations for metadata consumers (UI, OData, analytics)

CDS View Entity Syntax

Basic View Entity

@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Sales Order'
define view entity ZI_SalesOrder
  as select from zsalesorder
{
  key order_id       as OrderId,
      customer_id    as CustomerId,
      order_date     as OrderDate,
      net_amount     as NetAmount,
      currency_code  as CurrencyCode,
      status         as Status,
      created_by     as CreatedBy,
      created_at     as CreatedAt,
      last_changed_at as LastChangedAt
}

Root View Entity (for RAP)

@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Sales Order Root'
define root view entity ZR_SalesOrder
  as select from zsalesorder
  composition [0..*] of ZR_SalesOrderItem as _Item
{
  key order_uuid         as OrderUUID,
      order_id           as OrderId,
      customer_id        as CustomerId,
      order_date         as OrderDate,
      @Semantics.amount.currencyCode: 'CurrencyCode'
      net_amount         as NetAmount,
      currency_code      as CurrencyCode,
      status             as Status,

      @Semantics.user.createdBy: true
      created_by         as CreatedBy,
      @Semantics.systemDateTime.createdAt: true
      created_at         as CreatedAt,
      @Semantics.user.localInstanceLastChangedBy: true
      last_changed_by    as LastChangedBy,
      @Semantics.systemDateTime.localInstanceLastChangedAt: true
      last_changed_at    as LastChangedAt,
      @Semantics.systemDateTime.lastChangedAt: true
      last_changed_at    as LastChangedAt,

      _Item
}

Read the full file on GitHub · 477 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 477 lines · 153 tokens per session scan A da5aee67225f

Subscribe to this mod's changes

cds-view-entities is a skill published in the GitHub repository likweitan/abap-skills (60 stars, last pushed 16d ago), licensed MIT. It adds 153 tokens to every session and 3,622 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

sap-cap-capire

SAP Cloud Application Programming Model (CAP) development skill using Capire documentation. Use when: building CAP applications, defining CDS models, implementing services, working with SAP HANA/SQLite/PostgreSQL databases, deploying to SAP BTP Cloud Foundry or Kyma, implementing Fiori UIs, handling authorization…

secondsky/sap-skills · 103 tokens

sap-sqlscript

This skill should be used when the user asks to "write a SQLScript procedure", "create HANA stored procedure", "implement AMDP method", "optimize SQLScript performance", "handle SQLScript exceptions", "debug HANA procedure", "create table function", "inspect a browser-based Datasphere SQL editor with Microsoft Edge…

secondsky/sap-skills · 138 tokens

sap-expert

Expert in SAP ERP systems, ABAP programming, SAP HANA, S/4HANA, Fiori applications, and SAP integration patterns including OData, RFC, and IDoc. Use when the user mentions ERP, enterprise, business apps, ABAP, HANA, or S/4HANA, or when the task involves SAP Ecosystem, ABAP Development, Integration Technologies, or…

personamanagmentlayer/pcl · 92 tokens

sap-btp-developer-guide

Develops business applications on SAP Business Technology Platform (BTP) using CAP (Node.js/Java) or ABAP Cloud. Use when: building cloud applications on SAP BTP, deploying to Cloud Foundry or Kyma runtimes, integrating with SAP HANA Cloud, implementing SAP Fiori UIs, connecting to remote SAP systems, building…

secondsky/sap-skills · 240 tokens

sap-abap-cds

Comprehensive SAP ABAP CDS (Core Data Services) reference for data modeling, view development, and semantic enrichment. Use when creating CDS views or view entities, defining data models with annotations, working with associations and cardinality, implementing input parameters, using built-in functions, writing CASE…

secondsky/sap-skills · 113 tokens

sap-abap

Comprehensive ABAP development skill for SAP systems. Use when writing ABAP code, working with internal tables, structures, ABAP SQL, object-oriented programming, RAP (RESTful Application Programming Model), CDS views, EML statements, ABAP Cloud development, string processing, dynamic programming, RTTI/RTTC, field…

secondsky/sap-skills · 100 tokens