cap-upgrade
Skill1 starsChanged 4 months agoMITView on GitHub
Upgrade a CAP project to the latest CDS version. Drives the `cds upgrade` CLI for CDS 10+ (pattern detection, false-positive filtering, fix categorisation) and handles manual upgrades for earlier versions (major jumps like 7→8, 8→9 as well as minor/patch updates). Use when a developer needs to upgrade CDS in a CAP project, already has a `cds upgrade` report, or wants to move to a newer CDS version.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- capire/skillsword for word, first seen Jul 16, 2026
Other versions1 project uses a version of this.
Word for word · 1
- capire/skills★ 17100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository413 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- .cursor/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sap-router-skillCopilot instructions
- .cursor/rules/sap-router.mdcCursor rule
- abap-cloud-migrationSkill
- abap-cloudSkill
- abap-code-patternsSkill
- abap-code-reviewSkill
- abap-docs-referenceSkill
- abapgitSkill
- abapSkill
- abap-snippetSkill
- abap-sql-amdpSkill
- abap-system-infoSkill
- abap-unit-testingSkill
- arc-1-skillsSkill
- atc-cloudificationSkill
- authorization-iamSkill
- automation-pilot-catalog-explorerSkill
- automation-pilot-command-generationSkill
- automation-pilot-command-reviewSkill
- automation-pilot-content-management-via-apiSkill
- automation-pilot-debuggerSkill
- automation-pilot-executions-apiSkill
- automation-pilot-executor-executescriptSkill
- automation-pilot-executor-httprequestSkill
- automation-pilot-mcp-server-generationSkill
- automation-pilot-scheduled-executions-apiSkill
- badi-enhancementSkill
- btp-abap-environmentSkill
- btp-best-practicesSkill
- btp-build-work-zoneSkill
- btp-business-application-studioSkill
- btp-ciasSkill
- btp-cloud-foundrySkill
- btp-cloud-identitySkill
- btp-cloud-loggingSkill
- btp-cloud-platformSkill
- btp-cloud-transport-managementSkill
- btp-connectivitySkill
- btp-developer-guideSkill
- btp-diagram-generatorSkill
- btp-integration-suiteSkill
- btp-job-schedulingSkill
- btp-master-data-integrationSkill
- btp-service-managerSkill
- cap-add-remote-serviceSkill
- cap-developerSkill
- cap-triviaSkill
- capture-answerSkill
- cds-view-entitiesSkill
- claude-abap-skillsSkill
- claude-memSkill
- clean-abapSkill
- context-modeSkill
- cpi-iflow-developmentSkill
- engine-cap-developmentSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 56
Before starting any workflow, detect the current CDS major version:
- Very specific: line 75
Run cds upgrade --fix from scratch:
- Very specific: line 78
Run cds upgrade --fix (Step 1) – upgrades dependencies AND scans
- Distinctive: line 79
Read and interpret output (Steps 2–5)
- Very specific: line 91
Detection: Check if UPGRADE_REPORT.md or findings.json exists in the project root.
- Very specific: line 105
Run cds upgrade to scan for remaining migration items.
- Distinctive: line 133
Do not load both: Only the file matching the detected scenario is relevant.
- Distinctive: line 134
After loading, follow that file's instructions from the beginning.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
What I do
I drive the cds upgrade CLI, interpret its findings, and walk the developer
through each migration item with concrete fix instructions and links to the
official CAP migration documentation on capire.
What cds upgrade does
cds upgrade is a deterministic command-line tool shipped with @sap/cds-dk.
It is the foundation this skill works on top of.
With --fix it:
- Updates CDS-related dependencies in
package.jsonto the target version - Runs
npm install - Rebuilds the project with the new compiler
- Sets compatibility flags that preserve previous behaviour where applicable
Without flags it scans only — no changes to project sources or dependencies (the report files below are still written).
With --dry nothing is written to disk at all — all output goes to stdout.
In every mode it scans the project for breaking-change patterns and produces:
findings.json— structured per-rule matches with file positions, guidance, severity, compat flags, OpenRewrite recipes, and coverage signalsUPGRADE_REPORT.md— human-readable report grouping findings by scopeUPGRADE_OVERVIEW.md— short summary with scan numbers and quick wins
What this skill adds
The CLI's outputs are dense — many rules, many matches per rule, many of which may be false positives in any given codebase. This skill:
- Filters false positives using per-rule
guidanceand generic FP rules - Reads source files to verify ambiguous matches
- Searches for occurrences the patterns may have missed
- Categorises each finding by fix type (deterministic, OpenRewrite, manual)
- Offers to apply deterministic fixes directly
Version routing
Before starting any workflow, detect the current CDS major version:
cds versionParse the @sap/cds line (e.g. @sap/cds: 9.8.0). Extract the major number.
| Current major | Target | Workflow |
| < 9 | Ask the developer: "What target version? (9 or 10)" | If target < 10 → Manual upgrade path (appendix). If target = 10 → multi-major: upgrade to 9 first (manual path), then run cds upgrade for 9→10. |
| 9 | 10 (default) | Main workflow (Steps 0–6 below) |
| 10 | 10 (re-check) | Mode C (see Trigger modes below) |
Trigger modes
Mode A – Fresh run
The developer asks to upgrade (e.g. "migrate my project", "run cds upgrade").
Run cds upgrade --fix from scratch:
- Verify preconditions (Step 0)
- Run
cds upgrade --fix(Step 1) – upgrades dependencies AND scans - Read and interpret output (Steps 2–5)
- Apply manual fixes, review compat flags (Step 6)
Mode B – Existing report
The developer already ran cds upgrade and has UPGRADE_REPORT.md and/or
findings.json in the project root. This is the common case when:
- The developer ran the tool first and now wants help interpreting findings
- A teammate, IDE integration, or CI job produced the report
- A previous session ended after Step 1 and is being resumed
Detection: Check if UPGRADE_REPORT.md or findings.json exists in the
project root. If present, check whether any source file tracked by the project
has been modified after .cdsupgrade.json was written. If no relevant changes
occurred, reuse the existing report. Otherwise, suggest re-running cds upgrade.
Skip to Step 2 (Read the report).
Mode C – Already on target (re-check)
The project already upgraded to CDS 10 but may have:
- Unresolved findings from a previous run
- Compat flags set by
--fixthat should eventually be removed - New migration rules added in a cds-dk patch
Run cds upgrade to scan for remaining migration items. If
UPGRADE_REPORT.md or findings.json already exist and are recent
(Mode B detection applies), skip directly to Step 2.
Out of scope
This skill assumes a developer-type environment where cds upgrade can run
(globally installed cds-dk with upgrade support, or via npx @sap/cds-dk@latest) and agent
capabilities are present. It does not cover:
- NO-AI mode – if the developer runs
cds upgradewithout an AI agent,UPGRADE_REPORT.mdis the human deliverable. The skill is unnecessary. - CI / headless –
findings.jsoncan be consumed by a custom pipeline (e.g. SARIF conversion for IDE Problems Panel). The skill is invoked only when an agent walks a developer through findings interactively.
Load the relevant workflow
Based on the version routing above, load exactly one of the following files from this skill's directory and follow its instructions:
| Scenario | File to load |
| Mode A, B, or C (target is CDS 10, or already on 10) | workflow-cds10.md |
| Manual upgrade path (target < 10, or first leg of multi-major) | manual-upgrade.md |
Do not load both. Only the file matching the detected scenario is relevant. After loading, follow that file's instructions from the beginning.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

