cap-mtx-scaffold
An agent skill for CAP multitenancyMultitenancyServing many tenants from one deployment — onboarding, tenant-isolated data, per-tenant schema deployment and the operational tooling around it. It is decided once, before anything is built, and narrows the artifacts in almost every capability downstream: most sharply in caching and anything else holding state in process.SAP and community, narrow by design scaffolding that reads what a project already declares before it runs a single cds command.
It runs scripts/detect-env.sh first and then picks one of three flows from what it found. On a greenfield project it asks which @sap/cds major version to target, defaulting to the newest one on the machine rather than an invented number, and runs cds init, cds add multitenancy and cds add <db-kind>. On a project already using @sap/cds-mtxs@sap/cds-mtxsMultitenancy, tenant provisioning and model extensibility for CAP.sap official, cap it reads the versions declared in package.json and pins every @sap/cds-dk@sap/cds-dkThe command line client and development toolkit for CAP projects, with the commands cds build, cds deploy, cds watch and cds add among them.sap official, cap call to exactly those with npx --package=@sap/cds-dk@<version>, so it cannot fall into an upgrade. On a project still on the deprecated @sap/cds-mtx it warns, stops for a decision, and offers either code compatible with the legacy setup or a pointer to SAP's migration guide. The skill is a markdown instruction file symlinked into an agent's skills folder, and the repository states there is no automated test harness: verification is manual, against fixture projects outside the repository.
Facts
Where it sits
Who is behind it
In the atlas: maintains 1, contributes to 1@fermeregalimaintainer
Before choosing this
Conditions
PracticalFunctional boundary
Local scaffolding only. Its own Out of Scope list names deployment to Cloud Foundry or Kyma, XSUAA and IAS configuration or any other BTP service binding, the SaaS Registry and subscription flow to real tenants, and automatic migration from the legacy @sap/cds-mtx. For the concepts rather than the scaffolding step, the README points at the multitenancy skill in skillOverflowDanKromp/skillOverflowA collection of 41 agent skills, 37 for CAP, Fiori, BTP, UI5, ABAP, Integration Suite and HANA work and four for creating, reviewing and retiring skills, each with its own eval.independent, cap by Daniel KrompaßDanKrompmaintains 1 entry, contributed to 1 entry, which covers the MTX sidecar, xs-security.json, tenant lifecycle hooks and the deployment path and runs no commands at all.
What it declares
Every artifact
- Type
- Skill
- Origin
- Independently maintained
As a skill
- Distributed through
- Copied into the project
Connections
Packaged knowledge that teaches a coding agent a framework
Command line client and development toolkit for CAP
A cross-platform JavaScript runtime that servers, command line tools and scripts written in JavaScript are run with. For the things here, the prerequisite a repository names when its build is a set of npm scripts.
Download
Install
git clone <this-repository-url>
mkdir -p ~/.claude/skills
ln -s "$(pwd)/cap-mtx-scaffold/skills/cap-mtx-scaffold" ~/.claude/skills/cap-mtx-scaffoldCopied from cap-mtx-scaffold — README, Quickstart, read . Not run by the atlas.
README
quoted from fermeregali/cap-mtx-scaffold under Apache-2.0, readcap-mtx-scaffold
An AI agent skill for SAP CAP multitenancy scaffolding. cap-mtx-scaffold is a
markdown instruction file that AI coding agents — Claude Code, GitHub Copilot,
OpenCode, and any other tool that follows the emerging agents-spec skill convention —
load automatically when you're setting up multitenancy in a CAP project, encoding a
detect-first, execute-second scaffolding practice so every developer gets a
consistent, correct local setup without having to remember the exact cds-dk
incantations themselves.
It scaffolds the same way a careful developer would do it by hand — by running the
real cds init/cds add commands — after first looking at what's actually installed
and declared in your project. It never guesses a package version, never quietly
upgrades a dependency, and never migrates you off a legacy toolkit without asking.
That distinction matters because multitenancy setup differs materially between the
current @sap/cds-mtxs toolkit and the deprecated @sap/cds-mtx one, and an AI agent
that hardcodes versions from its training data — or falls back to whatever cds-dk
happens to be globally installed — can silently scaffold a project against the wrong
toolchain. This skill exists to close that gap: detect first, then execute, using
exactly what the project (or the user, for a new project) declares.
Quickstart
Skills are plain files an agent loads from a well-known folder — no build step, no install, just a file in the right place. Clone this repository once, then copy or symlink the skill into whichever agent(s) you use:
| Agent | Skills folder |
|---|---|
| Claude Code | ~/.claude/skills/ |
| GitHub Copilot | ~/.copilot/skills/ |
| OpenCode | ~/.config/opencode/skills/ |
| Other agents-spec-compatible | ~/.agents/skills/ |
# 1. Clone this repository
git clone <this-repository-url>
# 2. Symlink the skill into your agent's skills folder (repeat per agent you use;
# a symlink keeps it updatable with `git pull`, unlike a plain copy)
mkdir -p ~/.claude/skills
ln -s "$(pwd)/cap-mtx-scaffold/skills/cap-mtx-scaffold" ~/.claude/skills/cap-mtx-scaffold
Then, in any CAP project — existing or brand new — just ask naturally:
"set up multitenancy for this CAP project"
"scaffold a new multitenant CAP app"
Your agent loads SKILL.md automatically when the request matches, detects your
environment first, and only then scaffolds.
Requirements: Node.js + npm, @sap/cds-dk (global install or resolvable via
npx), git, and a bash-capable shell (Git Bash on Windows, any POSIX shell on
macOS/Linux).
What It Does
The skill runs scripts/detect-env.sh first, then picks one of three flows based on
what it finds — never the other way around:
- Greenfield — no existing CAP project. Asks which
@sap/cdsmajor version to target (defaulting to the most recent version available on the machine, never invented) and runscds init+cds add multitenancy+cds add <db-kind>. - Existing project, current
@sap/cds-mtxs— reads the versions already declared inpackage.jsonand pins everycds-dkinvocation to exactly those versions vianpx --package=@sap/cds-dk@<version>. It never suggests, and cannot silently fall into, an upgrade. - Existing project, legacy
@sap/cds-mtx(or a mix of legacy and current) — warns explicitly and stops for a decision, offering only two options: generate code compatible with the existing legacy setup, or point to SAP's official migration guide. It never migrates automatically, and never touches the project's existing multitenancy wiring.
Out of Scope
This skill only performs local scaffolding. It does not handle:
- Deployment to Cloud Foundry or Kyma (
mta.yaml,manifest.yml, Helm charts) - XSUAA/IAS configuration or any other BTP service binding
- SaaS Registry / subscription flow to real BTP tenants
- Automatic migration from legacy
@sap/cds-mtxto@sap/cds-mtxs
Relationship to Other Skills
cap-mtx-scaffold focuses exclusively on the executable scaffolding step:
detecting a project's CAP/multitenancy setup and running the official cds init/cds add commands to produce a working local project. It deliberately does not
teach multitenancy concepts — for that, it complements skills such as
multitenancy (by Daniel Krompaß) in the
SAP AI Skills Library catalog, which covers MTX sidecar architecture,
xs-security.json, tenant lifecycle hooks, Service Manager, and production deployment
concerns conceptually, without running any commands itself.
In short: reach for cap-mtx-scaffold to get a multitenant CAP project running
locally with cds watch; reach for multitenancy to understand the production
concepts, security model, and deployment path that this skill deliberately leaves out
of scope.
Testing
There is no automated test harness — verification is manual, by running the skill
against fixture projects in a temporary directory outside this repo and checking the
generated output and the agent's responses. See CLAUDE.md for the test scenarios and
pass criteria.
Contributing
Contributions are welcome under the Apache License 2.0 (see LICENSE). If you intend
to submit this skill to the SAP AI Skills Library catalog, note that it requires a
Developer Certificate of Origin (DCO) sign-off and review via a "Register a New Skill"
issue in SAP/ai-skills-library.
References
License
Apache License 2.0 — Copyright (c) 2026 Fernando Meregali Xavier
See LICENSE for the full text. Free to use, fork, and contribute.
Others providing
Compare all 10 on the Agent guidance page →- sap-cx-developer-companionsap-cx-developer-companionAn agent skill for SAP Customer Experience work that routes a request to one of three jobs: finding a Commerce Cloud, Sales Cloud or Service Cloud API, writing CDS for a CX extension, or explaining an error.independent, commerceAgent skill for SAP Customer Experience APIs, CDS and errors
- capire/skillscapire/skillsSAP's own skill set for coding agents working on CAP — cap-developer, cap-add-remote-service, cap-upgrade and cap-trivia, each a SKILL.md with references beside it.sap official, capAgent skills for CAP development, each a SKILL.md with references
- DanKromp/skillOverflowDanKromp/skillOverflowA collection of 41 agent skills, 37 for CAP, Fiori, BTP, UI5, ABAP, Integration Suite and HANA work and four for creating, reviewing and retiring skills, each with its own eval.independent, capCollection of 41 agent skills, 37 for SAP development tasks
- CAP GuardianCAP GuardianA CAP review skill for coding agents with hard gates, red flags and prohibitions across nine reference modules, each rule citing the capire page behind it in an evidence ledger.independent, capCAP review skill for coding agents with gates and prohibitions
- WerkbankWerkbankA local desktop workspace for AI conversations, attached files and generated HTML Spaces, run by a goose agent and offering a catalog of SAP MCP connectors and ABAP, CAP and UI5 skills.independent, umbrellaLocal desktop workspace for AI conversations with SAP connectors
- SAP Power for KiroSAP Power for KiroA set of thirty-five-plus SAP skills packaged as a power for Kiro IDE rather than Claude Code, spanning BTP, UI5, data and analytics, ABAP, CAP and CLI tooling, with automatic context activation in Kiro.independent, btpSAP skills for the Kiro IDE
- @patimweb/pi-cap-bestpractices@patimweb/pi-cap-bestpracticesA package for the pi coding agent that distributes SAP's capire/skills, carrying the upstream repository as a git submodule since version 2.0.0 replaced the author's own skill.independent, capSAP's capire/skills packaged for the pi coding agent
- SAP Developers MCPSAP Developers MCPThe hosted MCP server of developers.sap.com, over which an agent searches SAP's tutorials, reads missions and queries the site's knowledge graph of tutorials and concepts.sap official, umbrellaHosted MCP server of developers.sap.com tutorials and missions
- secondsky/sap-skillssecondsky/sap-skillsForty SAP development plugins installed through the skills command line or the Claude Code and Codex marketplaces, with a record per plugin of what its claims were checked against.independent, btpForty SAP development plugins for coding agents
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
History in the atlas
- A new repository in the SAP AI Skills Library registry snapshot of 2026-10-09, registering one skill at skills/cap-mtx-scaffold. Written from the repository's own README; hard rule 7: skills are indexed, never authored here. No flavor is stated: the repository badge reads SAP CAP Node.js and the toolkits it names are Node ones, but no sentence states a flavor, so the entry says nothing rather than inferring node.
- First seen.
For your agent
- Ref
artifact:fermeregali-cap-mtx-scaffold- JSON
- /artifacts/fermeregali-cap-mtx-scaffold.json
- MCP
- Connecting an agent