abap-cds-model-check
Optional intended usage such as analytical, transactional, reuse, value-help, or extraction
Error category: syntax, deployment, database, auth, or performance
$ npx -y skills add secondsky/sap-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/cap-troubleshooterContext preview
What this command does when you run it.
Error category: syntax, deployment, database, auth, or performance
name: cap-troubleshooter
description: Diagnostic guide for common CAP errors and issues with solutions
allowed-tools:
- Read
- Grep
- Glob
- Bash
argument-hint: "[syntax|deployment|database|auth|performance]"
arguments:
- name: error_category
description: "Error category: syntax, deployment, database, auth, or performance"
required: falseReturn the likely root cause, evidence, diagnostic steps, safe local commands, and pending runtime checks. Default to read-only troubleshooting and ask before changing project or tenant state.
Diagnostic guide for common SAP Cloud Application Programming Model errors and issues.
**Cause**: Missing semicolon in CDS definition
**Solution**:
// ✓ CORRECT
entity Books {
title : String(100);
price : Decimal(10,2);
}**Cause**: Referenced entity doesn't exist or isn't imported
**Solution**:
using { Authors } from './schema';
entity Books {
author : Association to Authors;
}**Diagnostic Steps**: 1. Check Cloud Foundry logs: `cf logs <app-name> --recent` 2. Verify environment variables: `cf env <app-name>` 3. Check service bindings: `cf services`
**Solution**:
# Validate MTA descriptor mbt validate mta.yaml # Clean build mkdir -p .cap-cleanup mv mta_archives .mta.* gen .cap-cleanup/ 2>/dev/null || true mbt build
Only delete `.cap-cleanup/` after confirming it contains generated build artifacts and no hand-written files.
**Cause**: Database not deployed
**Solution**:
# Deploy database schema cds deploy --to sqlite:db/data.db # For HANA cds deploy --to hana
**Cause**: Missing or invalid JWT token
**Solution**:
// package.json - Enable authentication
{
"cds": {
"requires": {
"auth": { "kind": "xsuaa" }
}
}
}**Solution**:
// ✓ FAST: Single query with expand
const books = await SELECT.from(Books).columns(b => {
b.*, b.author(a => a.*)
});1. **Check CAP Documentation**: https://cap.cloud.sap/docs/ 2. **Use MCP Tools**: Ask cap-performance-debugger agent 3. **Enable Debug Logging**: `export DEBUG=*`
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