Логотип Sapui5

Sapui5

Спільнота
secondsky
sapui5

This skill should be used when developing SAP UI5 applications, including creating freestyle apps, Fiori Elements apps, custom controls, testing, data binding, OData integration, routing, and troubleshooting. Use when building enterprise web applications with SAP UI5 framework, implementing MVC patterns, configuring manifest.json, creating XML views, writing controllers, setting up data models (JSON, OData v2/v4), implementing responsive UI with sap.m controls, building Fiori Elements apps, writing unit tests with QUnit, integration tests with OPA5, setting up mock servers, handling security (XSS, CSP), optimizing performance, implementing accessibility features, or debugging UI5 applications. Also covers sap.ui.mdc controls and TypeScript control libraries.

Огляд

Видавецьsecondsky
Репозиторійsap-skills
Назва навичкиsapui5
Зірки
445
Форки
117
Файли в пакеті
21
ЛіцензіяGPL-3.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 21

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем secondsky. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Sapui5 у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/secondsky/sap-skills/tree/main/plugins/sapui5/skills/sapui5
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/secondsky/sap-skills.git /tmp/sap-skills
mkdir -p .claude/skills
cp -r /tmp/sap-skills/plugins/sapui5/skills/sapui5 .claude/skills/sapui5
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Sapui5 в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Sapui5, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Sapui5 не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

SAPUI5 Development Skill

Related Skills

  • sap-fiori-tools: Use for rapid Fiori application development, Page Editor configuration, and deployment automation
  • sap-cap-capire: Use for backend service integration, OData model binding, and CAP service consumption
  • sap-btp-cloud-platform: Use for deployment options, HTML5 Application Repository service, and BTP integration
  • sap-abap: Use when connecting to ABAP backends or consuming OData services from SAP systems
  • sap-api-style: Use when documenting UI5 application APIs or following REST/OData standards
  • sap-dependency-security: Use for secure dependency upgrades, lockfile policies, supply-chain controls, and exact MCP server pins in SAPUI5 frontend toolchains

When to Use This Skill

Use this skill when building SAPUI5/OpenUI5 applications, XML views, controllers, custom controls, routing, OData v2/v4 model binding, Fiori Elements integrations, QUnit/OPA5 tests, accessibility/security/performance improvements, or UI5 MCP-assisted scaffolding and API lookup.

Comprehensive skill for building enterprise applications with SAP UI5 framework.

Using MCP Tools (New in v2.0.0)

This skill integrates with the official @ui5/mcp-server for live development tools:

  • Scaffolding: Create projects with ui5-app-scaffolder agent or /ui5-scaffold command
  • API Reference: Lookup controls with ui5-api-explorer agent or /ui5-api command
  • Code Quality: Run linter with ui5-code-quality-advisor agent or /ui5-lint command
  • Migration: Upgrade versions with ui5-migration-specialist agent
  • Version Info: Check releases with /ui5-version command
  • Tool Catalog: List all MCP tools with /ui5-mcp-tools command

For setup and troubleshooting, see references/mcp-integration.md. MCP package pins are governed by sap-dependency-security and validated by npm run validate:mcp-security.

Graceful Fallback: All features work without MCP by using reference files and built-in templates.

Table of Contents

  1. Quick Start
  2. Core Concepts
  3. SAP Fiori Elements
  4. Metadata-Driven Controls (MDC)
  5. Testing
  6. Best Practices
  7. Common Patterns
  8. Troubleshooting
  9. Development Tools
  10. Bundled Resources

Quick Start

Creating a Basic SAPUI5 App

Use UI5 Tooling (recommended) or SAP Business Application Studio:

bash
# Install UI5 CLI
npm install -g @ui5/cli

# Create new project
mkdir my-sapui5-app && cd my-sapui5-app
npm init -y

# Initialize UI5 project
ui5 init

# Add UI5 dependencies
npm install --save-dev @ui5/cli

# Start development server
ui5 serve

Project Structure:

my-sapui5-app/
├── webapp/
│   ├── Component.js
│   ├── manifest.json
│   ├── index.html
│   ├── controller/
│   │   └── Main.controller.js
│   ├── view/
│   │   └── Main.view.xml
│   ├── model/
│   │   └── formatter.js
│   ├── i18n/
│   │   └── i18n.properties
│   ├── css/
│   │   └── style.css
│   └── test/
│       ├── unit/
│       └── integration/
├── ui5.yaml
└── package.json

Templates Available:

  • templates/basic-component.js: Component template
  • templates/manifest.json: Application descriptor template
  • templates/xml-view.xml: XML view with common patterns
  • templates/controller.js: Controller with best practices
  • templates/formatter.js: Common formatter functions

Use templates by copying to your project and replacing placeholders ({{namespace}}, {{ControllerName}}, etc.).


Core Concepts

1. MVC Architecture

  • Model: Data layer (JSON, OData, XML, Resource models)
  • View: Presentation layer (XML, JavaScript, JSON, HTML)
  • Controller: Business logic layer
  • Binding: Synchronizes model and view (One-way, Two-way, One-time)

Reference: references/core-architecture.md for detailed architecture concepts.

2. Component & Manifest

  • Component.js: Entry point, initializes router and models
  • manifest.json: Central configuration (models, routing, dependencies, data sources)

Key manifest sections:

  • sap.app: Application metadata and data sources
  • sap.ui: UI technology and device types
  • sap.ui5: UI5-specific configuration (models, routing, dependencies)

3. Data Models

JSON Model (client-side):

javascript
var oModel = new JSONModel({
    products: [...]
});
this.getView().setModel(oModel);

OData V2 Model (server-side):

javascript
"": {
    "dataSource": "mainService",
    "settings": {
        "defaultBindingMode": "TwoWay",
        "useBatch": true
    }
}

Resource Model (i18n):

javascript
"i18n": {
    "type": "sap.ui.model.resource.ResourceModel",
    "settings": {
        "bundleName": "my.app.i18n.i18n"
    }
}

Reference: references/data-binding-models.md for comprehensive guide.

4. Views & Controllers

XML View (recommended):

xml
<mvc:View
    controllerName="my.app.controller.Main"
    xmlns="sap.m"
    xmlns:mvc="sap.ui.core.mvc">
    <Page title="{i18n>title}">
        <List items="{/products}">
            <StandardListItem title="{name}" description="{price}"/>
        </List>
    </Page>
</mvc:View>

5. Routing & Navigation

Navigate programmatically:

javascript
this.getOwnerComponent().getRouter().navTo("detail", {
    objectId: sId
});

Reference: references/routing-navigation.md for routing patterns.


SAP Fiori Elements

Build applications without JavaScript UI code using OData annotations.

Application Types

  1. List Report: Searchable, filterable tables/charts
  2. Object Page: Detailed view with sections and facets
  3. Analytical List Page: Visual filters and analytics
  4. Overview Page: Card-based dashboards
  5. Worklist: Simplified list for tasks

Quick Setup

manifest.json for List Report + Object Page:

json
{
    "sap.ui5": {
        "dependencies": {
            "libs": {
                "sap.fe.templates": {}
            }
        },
        "routing": {
            "targets": {
                "ProductsList": {
                    "type": "Component",
                    "name": "sap.fe.templates.ListReport",
                    "options": {
                        "settings": {
                            "contextPath": "/Products",
                            "variantManagement": "Page"
                        }
                    }
                }
            }
        }
    }
}

Key Annotations:

  • @UI.LineItem: Table columns
  • @UI.SelectionFields: Filter bar fields
  • @UI.HeaderInfo: Object page header
  • @UI.Facets: Object page sections

Reference: references/fiori-elements.md for comprehensive guide.


Metadata-Driven Controls (MDC)

The sap.ui.mdc library provides metadata-driven controls for building dynamic UIs at runtime.

Key Controls

  • MDC Table: Data display with dynamic columns based on metadata
  • MDC FilterBar: Complex filter conditions with PropertyInfo
  • MDC Value Help: Assisted data input with suggestions

Quick Example

xml
<mdc:Table
    id="mdcTable"
    delegate='{name: "my/app/delegate/TableDelegate", payload: {}}'
    p13nMode="Sort,Filter,Column"
    type="ResponsiveTable">
    <mdc:columns>
        <mdcTable:Column propertyKey="name" header="Name">
            <Text text="{name}"/>
        </mdcTable:Column>
    </mdc:columns>
</mdc:Table>

Reference: references/mdc-typescript-advanced.md for comprehensive MDC guide with TypeScript.


Testing

Unit Tests (QUnit)

Test individual functions and modules:

javascript
QUnit.module("Formatter Tests");
QUnit.test("Should format price correctly", function(assert) {
    var fPrice = 123.456;
    var sResult = formatter.formatPrice(fPrice);
    assert.strictEqual(sResult, "123.46 EUR", "Price formatted");
});

Integration Tests (OPA5)

Test user interactions and flows:

javascript
opaTest("Should navigate to detail page", function(Given, When, Then) {
    Given.iStartMyApp();
    When.onTheWorklistPage.iPressOnTheFirstListItem();
    Then.onTheObjectPage.iShouldSeeTheObjectPage();
    Then.iTeardownMyApp();
});

Mock Server

Simulate OData backend:

javascript
var oMockServer = new MockServer({
    rootUri: "/sap/opu/odata/sap/SERVICE_SRV/"
});
oMockServer.simulate("localService/metadata.xml", {
    sMockdataBaseUrl: "localService/mockdata"
});
oMockServer.start();

Reference: references/testing.md for comprehensive testing guide.


Best Practices

  1. Always Use Async - sap.ui.define, async:true in manifests
  2. Use XML Views - declarative and tooling-friendly
  3. Proper Namespacing - com.mycompany.myapp.controller.Main
  4. Internationalization - always use i18n for texts
  5. Data Binding Over Manual Updates - automatic XSS protection
  6. Security - enable CSP, validate input, use HTTPS
  7. Performance - component preload, lazy loading, batch requests
  8. Accessibility - semantic controls, labels, keyboard navigation

Common Patterns

CRUD Operations

javascript
// Create
oModel.create("/Products", oData, {success: function() {MessageToast.show("Created");}});

// Read
oModel.read("/Products", {filters: [new Filter("Price", FilterOperator.GT, 100)]});

// Update
oModel.update("/Products(1)", {Price: 200}, {success: function() {MessageToast.show("Updated");}});

// Delete
oModel.remove("/Products(1)", {success: function() {MessageToast.show("Deleted");}});

Filtering & Sorting

javascript
var oBinding = this.byId("table").getBinding("items");
oBinding.filter([new Filter("price", FilterOperator.GT, 100)]);
oBinding.sort([new Sorter("name", false)]);

Dialog Handling

javascript
if (!this.pDialog) {
    this.pDialog = this.loadFragment({
        name: "my.app.view.fragments.MyDialog"
    });
}
this.pDialog.then(function(oDialog) {oDialog.open();});

Troubleshooting Common Issues

Binding not working

  1. Check model set on view/component
  2. Verify correct binding path
  3. Confirm data loaded
  4. Debug: console.log(this.getView().getModel().getData())

OData call failing

  1. Verify service URL in manifest.json
  2. Check CORS configuration
  3. Test authentication
  4. Use browser Network tab

View not displaying

  1. Check view registration in manifest.json
  2. Verify routing configuration
  3. Match controller name
  4. Check browser console for errors

Performance problems

  1. Enable component preload
  2. Use growing lists for large datasets
  3. Implement OData paging
  4. Use one-way binding when possible

Development Tools

UI5 Tooling

bash
ui5 serve    # Development server
ui5 build    # Build for production
npm test     # Run tests

UI5 Inspector

  • Browser extension for debugging
  • View control tree and bindings
  • Performance analysis

Support Assistant

  • Press Ctrl+Alt+Shift+S
  • Built-in quality checker

Bundled Reference Files

This skill includes comprehensive reference documentation (15 files):

  1. references/glossary.md: Complete SAPUI5 terminology and concepts (100+ terms)
  2. references/core-architecture.md: Framework architecture, components, MVC, bootstrapping
  3. references/data-binding-models.md: Data binding, models, filters, sorters
  4. references/testing.md: QUnit, OPA5, mock server, test automation
  5. references/fiori-elements.md: Fiori Elements templates, annotations, configuration
  6. references/typescript-support.md: TypeScript setup, configuration, migration
  7. references/routing-navigation.md: Routing, navigation, Flexible Column Layout
  8. references/performance-optimization.md: Performance best practices, optimization
  9. references/accessibility.md: WCAG 2.1 compliance, screen readers, ARIA
  10. references/security.md: XSS prevention, CSP, authentication, CSRF
  11. references/mdc-typescript-advanced.md: MDC controls, TypeScript control libraries
  12. references/mcp-integration.md: MCP setup, troubleshooting, and fallback behavior
  13. references/code-quality-checklist.md: Review checklist for UI5 projects
  14. references/migration-patterns.md: Upgrade and modernization patterns
  15. references/scaffolding-templates.md: Project scaffolding guidance

Access these files for detailed information on specific topics while keeping the main skill concise.


Templates Included

Ready-to-use templates in templates/ directory:

  1. basic-component.js: Component.js template with best practices
  2. manifest.json: Complete application descriptor template
  3. xml-view.xml: XML view with common patterns
  4. controller.js: Controller template with lifecycle hooks
  5. formatter.js: Common formatter functions

Instructions for Claude

When using this skill:

  1. Always use async patterns - sap.ui.define, async:true
  2. Prefer XML views - more declarative and tooling-friendly
  3. Use data binding - automatic XSS protection
  4. Refer to reference files - for detailed information
  5. Use templates - copy from templates/ and replace placeholders
  6. Follow best practices - security, performance, accessibility
  7. Provide working examples - test code patterns before suggesting

Bundled Resources

Reference Documentation

  • references/accessibility.md - Accessibility best practices
  • references/core-architecture.md - Framework architecture and component patterns
  • references/data-binding-models.md - Data binding and model usage
  • references/fiori-elements.md - Fiori Elements templates and annotations
  • references/mdc-typescript-advanced.md - MDC and TypeScript guidance
  • references/mcp-integration.md - MCP setup and troubleshooting
  • references/migration-patterns.md - Migration from older versions
  • references/performance-optimization.md - Performance optimization techniques
  • references/testing.md - Testing strategies and frameworks
  • references/security.md - XSS, CSP, authentication, and CSRF guidance

Templates

  • templates/basic-component.js - Component development template
  • templates/controller.js - Controller template
  • templates/xml-view.xml - XML view template
  • templates/formatter.js - Formatter helper template
  • templates/manifest.json - Application manifest template

License: GPL-3.0 Next Review: 2026-02-27 (Quarterly)

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Sapui5?

This skill should be used when developing SAP UI5 applications, including creating freestyle apps, Fiori Elements apps, custom controls, testing, data binding, OData integration, routing, and troubleshooting. Use when building enterprise web applications with SAP UI5 framework, implementing MVC patterns, configuring manifest.json, creating XML views, writing controllers, setting up data models (JSON, OData v2/v4), implementing responsive UI with sap.m controls, building Fiori Elements apps, writing unit tests with QUnit, integration tests with OPA5, setting up mock servers, handling securit...

Навіщо використовувати Sapui5 у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Sapui5 — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Sapui5 у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/secondsky/sap-skills/tree/main/plugins/sapui5/skills/sapui5. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Sapui5?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Sapui5?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Sapui5 — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Sapui5?

Так. Навичку опубліковано на GitHub: secondsky, за ліцензією GPL-3.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇