abap-cds-model-check
Optional intended usage such as analytical, transactional, reuse, value-help, or extraction
Analyzes SAC custom widget code for performance issues, security concerns, and best practice violations
$ npx -y skills add secondsky/sap-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/widget-lintContext preview
What this command does when you run it.
Analyzes SAC custom widget code for performance issues, security concerns, and best practice violations
name: widget-lint description: Analyzes SAC custom widget code for performance issues, security concerns, and best practice violations allowed-tools: - Read - Grep - Bash argument-hint: [file_path]
Return widget lint findings grouped by security, lifecycle, performance, and packaging, with file references and suggested fixes. Default to read-only analysis and do not edit files.
Analyze SAP Analytics Cloud custom widget code for performance optimization opportunities, security concerns, and best practice compliance.
/widget-lint [file_path] /widget-lint widget.js /widget-lint src/ /widget-lint --fix-suggestions
**Critical Performance Issues**:
**Performance Warnings**:
**Performance Suggestions**:
**Critical Security Issues**:
**Security Warnings**:
**Security Suggestions**:
**Critical Best Practice Issues**:
**Best Practice Warnings**:
**Best Practice Suggestions**:
**Integration Issues**:
**Integration Warnings**:
**CSS/Theme Warnings**:
**Packaging Warnings**:
1. **Parse widget files** (JSON and JavaScript) 2. **Run static analysis** on JavaScript 3. **Check for patterns** in each category 4. **Score severity** of each finding 5. **Provide actionable recommendations**
## SAC Widget Lint Report **Files Analyzed**: [list] **Overall Score**: [X/100] ### Performance Issues (X found) #### Critical 1. [Issue description] **Location**: [file:line] **Impact**: [Performance impact description] **Fix**: [Code suggestion] #### Warnings 1. [Issue description] **Recommendation**: [How to improve] ### Security Issues (X found) #### Critical 1. [Issue description] **Risk**: [Security risk description] **Fix**: [Required fix] #### Warnings 1. [Issue description] **Recommendation**: [Security improvement] ### Best Practices (X found) #### Violations 1. [Issue description] **Standard**: [Best practice reference] **Fix**: [Implementation suggestion] ### SAC Integration (X found) 1. [Issue description] **Impact**: [How it affects SAC integration] **Fix**: [Required change] ### Summary | Category | Critical | Warnings | Suggestions | |----------|----------|----------|-------------| | Performance | X | X | X | | Security | X | X | X | | Best Practices | X | X | X | | SAC Integration | X | X | X | ### Recommendations Priority 1. [Highest priority fix] 2. [Second priority fix] 3. [Third priority fix]
// BAD: Direct resize handling
onCustomWidgetResize() {
this._render(); // Called too frequently
}
// GOOD: Debounced resize
onCustomWidgetResize() {
clearTimeout(this._resizeTimeout);
this._resizeTimeout = setTimeout(() => this._render(), 100);
}// BAD: Query DOM on every render
_render() {
this._shadowRoot.getElementById("chart").innerHTML = "";
}
// GOOD: Cache reference
constructor() {
this._chartEl = this._shadowRoot.getElementById("chart");
}
_render() {
this._chartEl.innerHTML = "";
}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