Skip to main content

cap-change-workflow

Use for end-to-end CAP change workflows: modify CDS/handlers, regenerate artifacts, and run a short verification checklist for this repository.

来源信息

仓库
SAP-samples/cloud-cap-hana-swapi
最近来源活动
2026年3月13日 21:33
检测到的 SKILL.md 语言
英语
星标
89
Forks
45

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
cap-change-workflow
description
Use for end-to-end CAP change workflows: modify CDS/handlers, regenerate artifacts, and run a short verification checklist for this repository.
argument-hint
Describe the CAP change to implement and verify
user-invocable
true
disable-model-invocation
false
# CAP Change Workflow Use this skill when implementing non-trivial CAP changes (CDS, services, handlers, annotations) and you want a consistent implementation + verification flow. ## When to use - Adding/changing entities, associations, projections, or service exposure - Updating `cap/srv/*.js` handlers or event hooks - Regenerating build artifacts and validating basic runtime behavior ## Procedure 1. Clarify requested behavior and impacted files. 2. If CDS is involved: - Resolve definitions with cds-mcp first. - Check CAP docs with cds-mcp before proposing CAP API/CLI syntax. 3. Implement minimal changes in appropriate layer: - `cap/db` for domain model - `cap/srv/*-service.cds` for contracts - `cap/srv/*-fiori.cds` for UI annotations - `cap/srv/*.js` for runtime logic 4. Rebuild artifacts in `cap/` (`npm run build`) when CDS changed. 5. Run a compact verification checklist and report outcomes. 6. Document risks, assumptions, and follow-ups. ## Repository gotchas - After HANA deployment, generated folders can be cleared; run `npm run build` again. - SQLite local loading may hit `SQLITE_BUSY` with parallel loading. ## Checklist template Use this checklist after implementation: `assets/change-checklist.md`.
在 GitHub 查看