/cap-developer:cap-developerfrom cap-developer
Provides expert guidance for building and extending CAP (Cloud Application Programming Model) applications in Node.js or Java. Covers project initialization, CDS modeling, declarative annotations, and custom handler best practices.
Ships in cap-developer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Provide correct, lean, idiomatic guidance for CAP development — from project setup and CDS modeling through declarative annotations and programmatic event handlers.
This SKILL.md is a router. Each topic lives in its own reference file so it can be loaded and
cross-referenced on its own (e.g. by cap-guided-dev). Read only the file(s) the task needs.
| Topic | File | Load when |
|---|---|---|
| Domain model + service projections | references/cds-modeling.md | Modeling entities/aspects/associations, or exposing them via projections |
| Declarative annotations and status flows | references/declarative.md | Adding validation, mandatory/readonly/computed values, @restrict/@requires, or lifecycle actions with @flow.status |
| Custom event handlers | references/custom-logic.md | Only when annotations can't express the rule; before/on/after logic |
| Sample / seed data | references/sample-data.md | Generating test data with the CLI |
| Node.js runtime specifics | references/nodejs.md | The project is a CAP Node.js app |
| Java runtime specifics | references/java.md | The project is a CAP Java app |
When in a new project, use the globally installed @sap/cds-dk (cli: cds).
Defer the language choice until necessary.
This choice is only necessary once code is added or the app is deployed.
When only working with cds models, you can simply start with cds w without needing to define a runtime.
Before guessing at APIs or annotations — and before changing an existing project's model — consult authoritative CAP documentation. Use whichever source is available; never guess URLs or invent APIs:
https://cap.cloud.sap/docs/llms.txt — a curated index of every documentation page; start
here to locate the right topic.https://cap.cloud.sap/docs/llms-full.txt — the full documentation concatenated into one
file, for when you need the complete text.https://cap.cloud.sap/docs/sitemap.md — the semantic sitemap of all pages..md to its URL (e.g.
https://cap.cloud.sap/docs/get-started/bookshop.md) or by sending an
Accept: text/markdown header. Follow links from llms.txt/sitemap.md to the exact page
rather than guessing a path.cds compile <path> (e.g.
cds compile srv --to edmx).Never use CAP docs as a Fiori/SAPUI5 reference. They contain useful information about how CAP integrates with Fiori/SAPUI5 but are not a complete reference for those frameworks.
Caveat on release notes and version tables: documentation sourced from release notes or
version recommendation tables may be outdated — they reflect what was true at the time of that
release, not necessarily today. Always cross-check version-specific claims (e.g. "recommended
Node.js version") against live sources like cds version, npm view, or the current Getting
Started page rather than trusting a snapshot from a past release note.
Start a new project with:
cds init <name> # creates a subdirectory; omit <name> to init in cwd
cd <name>
cds watch # start the dev loop (works without a runtime for pure modeling)
When the runtime is known upfront, pass --java or --nodejs to cds init (see the
runtime-specific reference files for details).
cds add sample — it scaffolds a full demo app into the project.cds add tiny-sample only if the user explicitly wants a minimal starter model.cds add <feature> (e.g. hana, xsuaa, approuter, mta) to add features incrementally
and only when needed (e.g. when deployment is requested).references/cds-modeling.mdreferences/cds-modeling.mdreferences/declarative.mdreferences/custom-logic.md
(+ the runtime file references/nodejs.md or references/java.md)references/sample-data.md_i18n/ bundles for CDS/Node.js messages and Spring
src/main/resources/messages.properties bundles for Java handler messagescds add sampleRuntime-specific lifecycle and API caveats live in the respective reference file.
evals/evals.json (opens in a new tab)evals/fixtures/esm-helpdesk/db/schema.cds (opens in a new tab)evals/fixtures/esm-helpdesk/package.json (opens in a new tab)evals/fixtures/esm-helpdesk/srv/ticket-service.cds (opens in a new tab)evals/fixtures/esm-helpdesk/srv/ticket-service.js (opens in a new tab)references/cds-modeling.md (opens in a new tab)references/custom-logic.md (opens in a new tab)references/declarative.md (opens in a new tab)references/java.md (opens in a new tab)references/nodejs.md (opens in a new tab)references/sample-data.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
10 skills in this plugin
/cap-add-remote-serviceAdd a remote service integration to an existing CAP Node.js application using the Calesi pattern. Imports external APIs (from other CAP apps or OData/S4 sources), creates consumption views, wires up delegation and data federation handlers, and validates the result with cds watch. Use when a developer wants to consume an external service in their CAP app./cap-cds-reviewReview and assess CDS data models in CAP applications for correctness, best practices, and potential issues. Produces a structured report with severity-rated findings covering naming conventions, associations/compositions, annotations, reuse patterns, service projections, and performance considerations. Use this skill whenever a developer asks to review, audit, or improve their CDS model, or proactively when you notice potential modeling issues while working on a CAP project./cap-npx claudepluginhub capire/skills --plugin cap-developerOther plugins' skills for the same job