sap-fiori-create-cli — скилл для Claude Code: CLI для SAP Fiori
Даёт агенту доступ к CLI @sap-ux/create: генерация приложений SAP Fiori, добавление конфигов, конвертация проектов. Пригодится, если вы ведёте Fiori-проект и не хотите держать в голове флаги.
npx skills add SAP/open-ux-tools --skill sap-fiori-create-cli -a claude-codeЧто делает sap-fiori-create-cli
Скилл описывает команды CLI @sap-ux/create и подсказывает агенту, как их вызывать. Группы команд: generate (например, adaptation-project, opa5-tests), add (mockserver, eslint, deploy-config, system и другие), convert, remove, update, change, list. Полные опции по каждой группе лежат в связанных файлах-справочниках.
Запуск всегда идёт через npx -y @sap-ux/create@latest — глобальную установку скилл советует не предлагать. Для команд, которые пишут файлы, сначала стоит прогнать --simulate или -s, если пользователь ещё не подтвердил изменения. Пароли передаются как --password env:MY_VAR, а не открытым текстом в командной строке.
Есть ограничения, о которых лучше знать заранее. add annotations, change data-source и change inbound не работают для проектов Cloud Foundry, а add adp-cf-config помечен как экспериментальный и может измениться или исчезнуть. Команды generate adaptation-project, add model и add component-usages задают вопросы в интерактивном режиме — без -y или заранее заполненных флагов они не отработают в неинтерактивном запуске.
Какие задачи решает
- сгенерировать adaptation-project для SAPUI5 без ручного ввода флагов
- добавить mockserver-config и локально мокать OData
- перевести ESLint-конфиг проекта на flat config
- обновить metadata.xml сервиса с живого бэкенда
- сохранить и обновить бэкенд-системы в
~/.fioritools
Примеры запросов агенту
- Добавь в проект mockserver-config для локального мока OData
- Сгенерируй adaptation-project, сначала прогони с
--simulate - Обнови service-metadata для приложения Fiori с бэкенда
Как установить sap-fiori-create-cli
1Через Skills CLI (Vercel)
npx skills add SAP/open-ux-tools --skill sap-fiori-create-cli -a claude-code2Вручную: положить файлы
~/.claude/skills/sap-fiori-create-cli/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/sap-fiori-create-cli/
1Через Skills CLI (Vercel)
npx skills add SAP/open-ux-tools --skill sap-fiori-create-cli -a codex2Вручную: положить файлы
.agents/skills/sap-fiori-create-cli/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add SAP/open-ux-tools --skill sap-fiori-create-cli -a cursor2Вручную: положить файлы
.cursor/skills/sap-fiori-create-cli/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install SAP/open-ux-tools sap-fiori-create-cli2Вручную: положить файлы
.github/skills/sap-fiori-create-cli/SKILL.md1Через Skills CLI (Vercel)
npx skills add SAP/open-ux-tools --skill sap-fiori-create-cli -a gemini-cli2Командой платформы
gemini skills install https://github.com/SAP/open-ux-tools --path plugins-coding-agents/fiori/skills/sap-fiori-create-cliВручную: положить файлы
.devin/skills/sap-fiori-create-cli/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add SAP/open-ux-tools --skill sap-fiori-create-cli -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Из того же набора5
Похожие
Рядом в теме «Фронтенд и UI»
Всё по теме «Фронтенд и UI» →Вопросы о sap-fiori-create-cli
Как установить sap-fiori-create-cli в Claude?
Выполните npx skills add SAP/open-ux-tools --skill sap-fiori-create-cli -a claude-code. После этого файл скилла появится по пути ~/.claude/skills/sap-fiori-create-cli/SKILL.md.
Что делает sap-fiori-create-cli?
Описывает команды CLI @sap-ux/create и подсказывает агенту, как их вызывать: генерация, добавление конфигов, конвертация, удаление, обновление и изменение в проектах SAP Fiori.
Какие команды требуют интерактивного ввода?
generate adaptation-project, add model и add component-usages задают вопросы. Чтобы они отработали без диалога, нужен -y или все обязательные флаги, заполненные заранее.
Исходный текст
SKILL.md · Apache-2.0
--- name: sap-fiori-create-cli description: Invokes the @sap-ux/create CLI — generate, add, convert, remove, update, change, list, get commands for SAP Fiori projects. Use when asked to run sap-ux, invoke create CLI, add config to a project, generate adaptation-project, or use any sap-ux/create subcommand. Full options for each command group are in the linked references. argument-hint: command and subcommand (e.g., add mockserver-config, generate adaptation-project) metadata: author: sap-fiori-tools version: "1.4.18" --- ## How to use this CLI - Always invoke via `npx -y @sap-ux/create@latest` — never suggest a global install. - Run with `--simulate` / `-s` first for any write command when the user has not confirmed they want files changed. It implies `--verbose` on most subcommands. - Pass passwords via `--password env:MY_VAR` — never plain-text in the shell command. - Commands that prompt interactively (`generate adaptation-project`, `add model`, `add component-usages`) require either `-y` / `--yes` or all required flags pre-filled to run non-interactively. - `add annotations`, `change data-source`, and `change inbound` are not supported for Cloud Foundry projects. - `add adp-cf-config` is experimental and may change or be removed without notice. --- # Commands ## `generate` Command group for generating SAP Fiori applications. A subcommand is required. | Subcommand | Description | |---|---| | `adaptation-project` | Generate a new SAPUI5 adaptation project with optional prompts and configuration. | | `opa5-tests` | Generate OPA5 integration tests for an existing SAP Fiori elements (OData V4) application. | > Full options and flags: `references/generate.md` -------------------------------- ## `add` Command group for adding features to existing SAP Fiori applications. A subcommand is required. | Subcommand | Description | |---|---| | `mockserver-config` | Add the necessary configuration for the `@sap-ux/ui5-middleware-fe-mockserver` mockserver module to enable local OData mocking. | | `smartlinks-config` | Add a `smartLinks` configuration to a project for cross-app navigation. | | `eslint-config` | Add an ESLint configuration to a project including the SAP Fiori tools lint plugin (`@sap-ux/eslint-plugin-fiori-tools`). | | `cds-plugin-ui5` | Add the `cds-plugin-ui5` module and all prerequisites to a CAP project for UI5 server integration. | | `inbound-navigation` | Add SAP Fiori launchpad inbound navigation configuration to a project. | | `cards-editor` | Add the necessary configuration to an existing YAML file and the script to the `package.json` file for cards generation. It uses the configuration from the YAML file passed by the CLI or default to `ui5.yaml`, as provided by the `fiori-tools-preview` or `preview-middleware`. | | `model` | Add a new OData service and SAPUI5 model to an existing adaptation project. | | `annotations` | Adds an annotation to the OData Source of the base application in an adaptation project. | | `html` | Add HTML files for local preview and testing to the project. It uses the configuration from the `ui5.yaml` file as default, as provided by the `fiori-tools-preview` or `preview-middleware`. | | `component-usages` | Add the component usages to an adaptation project. | | `deploy-config` | Prompt for ABAP deployment configuration details and adds and updates the project files accordingly. | | `variants-config` | Add the necessary configuration to an existing YAML file and the script to the `package.json` file for variants creation. It uses the configuration from the YAML file passed by the CLI or default to `ui5.yaml`, as provided by the `fiori-tools-preview` or `preview-middleware`. | | `adp-cf-config` | Configure an existing Cloud Foundry adaptation project for local preview by fetching reusable libraries, building the project, and configuring ui5.yaml file middlewares. | | `system` | Add a new back-end system to the saved systems store (`~/.fioritools`). Credentials are stored securely in the OS keychain. | | `flp-embedded-config` | Add the necessary configuration for running a Fiori app in FLP Embedded Mode. | > Full options and flags: `references/add.md` -------------------------------- ## `convert` Command group for converting existing SAP Fiori applications. A subcommand is required. | Subcommand | Description | |---|---| | `preview-config` | Executed in the root folder of an app, it converts the respective app to the preview with virtual endpoints. It uses the configuration from the scripts in the `package.json` file to adjust the UI5 configuration YAML files accordingly. The obsolete JS and TS sources are deleted and the HTML files previously used for the preview are renamed to `*_old.html`. | | `eslint-config` | Executed in the root folder of an app, it converts the ESLint configuration of the respective app to flat config format (used since ESLint version 9). It also introduces specific ESLint checks for SAP Fiori applications (using the `@sap-ux/eslint-plugin-fiori-tools` plugin), and deletes the deprecated `eslint-plugin-fiori-custom` plugin. To avoid dependency resolution conflicts, it deletes the `package-lock.json` file as well as the `@sap-ux/eslint-plugin-fiori-tools` module from the `node_modules` folder before running `npm install`. | > Full options and flags: `references/convert.md` -------------------------------- ## `remove` Command group for removing features from existing SAP Fiori applications. A subcommand is required. | Subcommand | Description | |---|---| | `mockserver-config` | Removes the configuration for the `@sap-ux/ui5-middleware-fe-mockserver` mockserver module. | | `system` | Remove a saved back-end system from the saved system store (`~/.fioritools`). Also deletes any stored credentials in the OS keychain. | > Full options and flags: `references/remove.md` -------------------------------- ## `update` Command group for updating saved resources. A subcommand is required. | Subcommand | Description | |---|---| | `system` | Update an existing backend system in the saved systems store (`~/.fioritools`). The system is identified by its URL and optional SAP client. | | `service-metadata` | Refresh the local OData service metadata.xml from the live backend for a Fiori application. | > Full options and flags: `references/update.md` -------------------------------- ## `change` Command group for changing existing SAP Fiori applications. A subcommand is required. | Subcommand | Description | |---|---| | `data-source` | Replace the OData Source of the base application in an adaptation project. | | `inbound` | Replace the inbound FLP configurations of the base application in an adaptation project. | > Full options and flags: `references/change.md` -------------------------------- ## `list` Command group for listing saved resources. A subcommand is required. | Subcommand | Description | |---|---| | `system` | List all back-end systems in the saved system store (`~/.fioritools`). Sensitive data, such as passwords and tokens, is never included in the output. | > Full options and flags: `references/list.md` -------------------------------- ## `get` Command group for retrieving saved resources. A subcommand is required. | Subcommand | Description | |---|---| | `system` | Retrieve details of a saved back-end system by URL. Sensitive data (passwords, tokens) is never included in the output. | > Full options and flags: `references/get.md` -------------------------------- ## `migrate` Migrate legacy WebIDE Fiori project to modern Fiori tools format. In BAS, a destination is required. Outside BAS, hostname and client are required; destination is optional. | Option | Description | |---|---| | `-d, --destination <name>` | SAP System destination name (required in BAS) | | `-s, --sap-system-name <name>` | SAP System name (alias for destination) | | `-H, --hostname <host>` | Backend hostname (required outside BAS unless resolved from a saved system) | | `-c, --client <client>` | SAP Client (required outside BAS unless resolved from destination or saved system) | | `-u, --ui5-version <version>` | UI5 version (defaults to source project version) | | `-f, --force` | Force migration even if project is already a Fiori tools project | | `-n, --skip-install` | Skip the `npm install` step after migration | > Full options and flags: `references/migrate.md`
© sap-fiori-tools · Apache-2.0 · SAP/open-ux-tools