abap-cds-model-check
Optional intended usage such as analytical, transactional, reuse, value-help, or extraction
Validates SAC custom widget JSON metadata and JavaScript structure for correctness and best practices
$ npx -y skills add secondsky/sap-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/widget-validateContext preview
What this command does when you run it.
Validates SAC custom widget JSON metadata and JavaScript structure for correctness and best practices
name: widget-validate description: Validates SAC custom widget JSON metadata and JavaScript structure for correctness and best practices allowed-tools: - Read - Grep argument-hint: [file_path]
Return validation status, manifest/resource findings, packaging risks, and safe local checks. Default to read-only validation and do not upload or publish widget content.
Validate SAP Analytics Cloud custom widget files (widget.json and widget.js) for schema compliance, required fields, and best practices.
/widget-validate [file_path] /widget-validate widget.json /widget-validate src/widget.js /widget-validate --all
**Required Root Fields**:
**Required webcomponents Fields**:
**Optional but Recommended**:
**Required Elements**:
**Required Lifecycle Functions**:
**Recommended Lifecycle Functions**:
**Property Patterns**:
If `dataBindings` is defined:
For AI-generated packages:
**Production Readiness**:
**Warning-Level**:
SAP Help distinguishes internal custom-widget resources from SAC story/theme CSS support. Validate generated packages with these rules:
1. **Identify file type** (JSON or JavaScript) 2. **Parse and validate structure** 3. **Check required fields and patterns** 4. **Cross-validate JSON and JS** (if both present) 5. **Report findings with severity levels**
## SAC Widget Validation Report **File**: [filename] **Type**: [widget.json / widget.js] **Status**: [PASS / FAIL / WARNINGS] ### Critical Issues (X found) 1. [Line X]: [Issue description] **Current**: `[problematic code]` **Required**: `[correct pattern]` ### Warnings (X found) 1. [Line X]: [Issue description] **Recommendation**: [How to fix] ### Suggestions (X found) 1. [Issue description] **Best Practice**: [Recommendation] ### Summary - Critical: X (must fix) - Warnings: X (should fix) - Suggestions: X (consider) ### Cross-Validation [Results of JSON ↔ JS consistency check if applicable]
/widget-validate widget.json
/widget-validate widget.js
/widget-validate --all
// GOOD: lowercase with hyphens; generated packages should include the company prefix "tag": "com-company-widgetname" // BA
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