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 50 on the Agent guidance page →- abap2UI5 for VS Codeabap2UI5 for VS CodeA VS Code extension for abap2UI5 apps: F9 starts the app class in a preview beside the source, Ctrl+F3 activates the class and reloads it, and the abap2UI5 linter runs in the editor while you type.community org, abapVS Code extension to preview, activate and lint abap2UI5 appsfrom ABAP
- 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 errorsfrom SAP Commerce
- sap-basis-opssap-basis-opsBasis and technical operations at the OS and database layer — the sysadmin plane every other SAP skill set skips — as runbook skills that emit a source-cited command sequence with its pre- and post-checks.independent, abapRunbook skills for Basis operations at the OS and database layerfrom ABAP
- abap-offstack-aunitabap-offstack-aunitAn agent skill that bootstraps off-stack ABAP Unit tests and an abaplint gate onto an abapGit-serialised repository, with no live SAP system.independent, abapAgent skill for off-stack ABAP Unit tests and an abaplint gatefrom ABAP
- ARC-1 SkillsARC-1 SkillsTwenty-two SKILL.md files shipped in arc-1's own skills/ directory for RAP scaffolding, unit test generation, clean-core audits and migration paths, loaded on demand by description and namespaced /arc-1:<skill> when installed through the Claude Code plugin.independent, abapTwenty-two agent skills shipped with arc-1from ABAP
- sapskillssapskillsThree agent skills in one repository: Clean ABAP guidance, ADT in VS Code against the Private Cloud Edition, and general guardrails for a coding agent.independent, abapAgent skills for Clean ABAP, ADT in VS Code and guardrailsfrom ABAP
- SuperClaude for SAPSuperClaude for SAPA Claude Code plugin that installs and wires its own ABAP MCP server, then puts a two-layer write guard between the agent and any system profile marked QA or production.independent, abapClaude Code plugin with an ABAP MCP server and write guardsfrom ABAP
- sap-dm-pod2-mcp-serversap-dm-pod2-mcp-serverAn MCP server for SAP Digital Manufacturing POD 2.0 extension development: 23 tools over POD2 pattern docs, the POD2 class API, SAP DM REST and MDO specs and the SAPUI5 API, with five code-generation prompts.independent, digital-manufacturingMCP server for SAP Digital Manufacturing POD 2.0 extensionsfrom SAP Digital Manufacturing
- 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 referencesfrom CAP
- sap-cloud-integration-pipeline-assistantsap-cloud-integration-pipeline-assistantAn agent skill for the Pipeline Concept framework in SAP Integration Suite Cloud Integration, covering implementation, the Partner Directory, XSLT and Groovy examples and troubleshooting.independent, btpAgent skill for the Pipeline Concept in SAP Cloud Integrationfrom BTP/BAIP
- claude-abap-devclaude-abap-devFive ABAP workflows for Claude Code — ATC fixing, a clean-core audit, a Clean ABAP review, ABAP Unit and debugging — that ship no system access of their own and run on whichever community MCP servers are already configured.independent, abapFive ABAP workflows for Claude Code on existing MCP serversfrom ABAP
- 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 tasksfrom CAP
- sap-commerce-skillsap-commerce-skillAn agent skill for SAP Commerce Cloud 2211-jdk21.1 and later: 21 reference guides, 58 code templates and three shell scripts, installed through the skills CLI.independent, commerceAgent skill for SAP Commerce Cloud 2211-jdk21.1 and laterfrom SAP Commerce
- ARC-DRAWARC-DRAWAn MCP server that draws BTP solution diagrams onto a live draw.io canvas, with 111 SAP BTP icons as native shapes and SAP's diagram guidelines handed to the client as drawing rules.independent, btpMCP server drawing BTP solution diagrams on a draw.io canvasfrom BTP/BAIP
- sap-ai-dev-toolkitsap-ai-dev-toolkitAn MCP proxy that pins an agent's ABAP tools to one SAP system: setup reads the BAS destinations or the local SAP GUI landscape and writes one stdio server per system, leaving the credentials in the destination or in the editor's own login prompts.independent, abapMCP proxy pinning an agent's ABAP tools to one SAP systemfrom ABAP
- scaffold-fiori-ai-bridgescaffold-fiori-ai-bridgeAn agent skill that makes a UI5 or Fiori app AI-callable: it generates the JavaScript bridge and the SAP Joule Frontend Actions YAML the app needs before an agent can reach into it.independent, ui5Agent skill generating a Joule Frontend Actions bridge for UI5 appsfrom UI5
- sapcli Claude Code Pluginsapcli Claude Code PluginTwo agents and two skills for Claude Code that drive sapcli, the long-standing command line to SAP products, to explore and develop classic ABAP objects rather than speaking ADT directly.independent, abapAgents and skills that drive sapcli instead of ADTfrom ABAP
- 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 prohibitionsfrom CAP
- sap-odata-explorersap-odata-explorerA Rust CLI and desktop app for exploring and testing SAP OData services against real systems — catalog discovery, metadata browsing, an F4 value-help picker and a Fiori-readiness linter — with an agent skill shipped beside it.independent, btpRust CLI and desktop app for exploring SAP OData servicesfrom BTP/BAIP
- btp-solution-diagram-generatorbtp-solution-diagram-generatorA Claude plugin that writes BTP solution diagrams as .drawio files in the style of the SAP BTP Solution Diagram Guidelines.independent, btpClaude plugin writing BTP solution diagrams as .drawio filesfrom BTP/BAIP
- abap-skillsabap-skillsSeventeen agent skills for ABAP development in one repository: RAP, CDS view entities, ABAP SQL and AMDP, unit testing, authorisation, eventing, abapGit, ABAP Cloud and the clean core levels.independent, abapSeventeen agent skills for ABAP developmentfrom ABAP
- drawio-skill-sapdrawio-skill-sapA GitHub Copilot agent skill that writes BTP solution diagrams as uncompressed draw.io XML against the SAP BTP Solution Diagram Design Guideline, with SAP's own shape library bundled.independent, btpGitHub Copilot skill writing BTP solution diagrams as draw.io XMLfrom BTP/BAIP
- sap-mdk-appssap-mdk-appsAn agent skill for Mobile Development Kit projects: the project layout, the metadata syntax, and the rules that prevent the failures those two produce on iOS, Android and the web.independent, btpAgent skill for Mobile Development Kit projectsfrom BTP/BAIP
- ABAP remote filesystemABAP remote filesystemA Visual Studio Code extension that opens an ABAP system over ADT as an editable filesystem and exposes system tools to GitHub Copilot and external MCP clients.independent, abapVS Code extension editing ABAP systems over ADT as a filesystemfrom ABAP
- sap-architecturesap-architectureA Claude Code plugin and portable agent skill that turns a plain-English description into a BTP diagram in SAP Architecture Center style, checked by a validator before it is handed over.independent, btpClaude Code plugin and skill drawing validated BTP diagramsfrom BTP/BAIP
- 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 connectorsfrom Across stacks
- SAP Datasphere Plugin for ClaudeSAP Datasphere Plugin for ClaudeEighteen Datasphere skills over a bundled 45-tool MCP server — exploration, view and analytic-model design, BW Bridge migration, security architecture and catalog governance.independent, btpEighteen Datasphere skills over a bundled MCP serverfrom BTP/BAIP
- claude-abap-skillsclaude-abap-skillsTwo Claude Code plugins of always-on Clean ABAP rules, templates and slash commands — deliberately not an MCP server, and explicit about routing each capability to the server that should answer it.independent, abapClaude Code plugins with Clean ABAP rules and templatesfrom ABAP
- 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 IDEfrom BTP/BAIP
- drawio-btp-diagram-skillsdrawio-btp-diagram-skillsTwo Claude Code skills that take a BTP architecture described in words through a Mermaid sketch to draw.io XML, with a structural and a visual review after the drawing.independent, btpClaude Code skills for BTP architecture diagrams in draw.iofrom BTP/BAIP
- @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 agentfrom CAP
- pod2-configpod2-configAn agent skill that turns a described POD change into an importable SAP Digital Manufacturing POD 2.0 export, built from standard plugins and actions only.independent, digital-manufacturingAn agent skill that turns a described POD change into an importable [SAP Digital Manufacturing](external:sap-digital-manufacturing) POD 2.0 export, built from standard plugins and actions only.from SAP Digital Manufacturing
- aicore-skillsaicore-skillsFour agent skills for SAP AI Core, published as a plugin inside SAP's AI Skills Library: admin resources, the deployment lifecycle, the foundation models in the Generative AI Hub, and the Context Registry behind tabular prediction.sap official, btpFour agent skills for SAP AI Core in SAP's AI Skills Libraryfrom BTP/BAIP
- SAP/automation-pilot-agent-skillsSAP/automation-pilot-agent-skillsEight skills for writing, reviewing and operating SAP Automation Pilot content — command generation, catalogue exploration, code review, the content and executions APIs, debugging, schedules, and generating an MCP server from a command.sap official, btpEight skills for writing and operating SAP Automation Pilot contentfrom BTP/BAIP
- 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 missionsfrom Across stacks
- sap-fiori-guidelinessap-fiori-guidelinesAn agent skill SAP publishes in its AI Skills Library, built from the Fiori Design Guidelines at v1.145: eighteen reference files an agent reads before it picks a control, a page type or an AI pattern.sap official, ui5Agent skill built from the Fiori Design Guidelinesfrom UI5
- sap-fiori-iossap-fiori-iosAn agent skill SAP publishes for SAP Fiori for iOS: it maps a node of the Fiori iOS UI Kit in Figma onto SwiftUI code, and answers which Fiori component a Figma variant becomes.sap official, btpAgent skill mapping Fiori iOS UI Kit nodes in Figma to SwiftUIfrom BTP/BAIP
- SAP/leanix-ai-pluginsSAP/leanix-ai-pluginsOne Claude Code plugin, sap-leanix, bundling two skills that build and debug LeanIX automation scripts and create and manage calculations, both working through the LeanIX MCP server.sap official, btpClaude Code plugin with two skills for SAP LeanIX scriptingfrom BTP/BAIP
- SAP-samples/html5-applications-migration-skills-for-sap-btpSAP-samples/html5-applications-migration-skills-for-sap-btpA Claude Code plugin with migrate, validate and cleanup skills that move an HTML5 app from SAP Neo, html5-apps-repo or a standalone approuter to the SAP BTP Application Frontend (appFront) service.sap official, btpClaude Code plugin with skills migrating HTML5 apps to appFrontfrom BTP/BAIP
- SAP-samples/joule-a2a-agent-toolkitSAP-samples/joule-a2a-agent-toolkitFour skills for building an agent that talks to SAP Joule over A2A and getting it onto Cloud Foundry — the agent itself, and the three CLIs the deployment goes through.sap official, btpSkills for building an A2A agent for Joule and deploying it to CFfrom BTP/BAIP
- SAP-samples/sap-devs-cliSAP-samples/sap-devs-cliA CLI that injects current SAP developer knowledge packs into an AI coding tool's context and wires up SAP's own MCP servers for it, shipped as a single binary through Homebrew, Scoop or GitHub Releases.sap official, btpCLI adding SAP developer knowledge and MCP servers to AI coding toolsfrom BTP/BAIP
- sap-tutorials-contentsap-tutorials-contentAn agent skill that maps the public developers.sap.com content API: the catalogue, the navigation, a tutorial's HTML or JSON, and full-text search, all anonymous and read-only.sap official, btpAgent skill mapping the developers.sap.com content APIfrom BTP/BAIP
- SAP/ui-theme-designer-plugins-for-coding-agentsSAP/ui-theme-designer-plugins-for-coding-agentsOne plugin that teaches a coding agent the SAP Design System, Fiori design tokens, and which theming parameters a given control actually reads, installed into Claude Code or GitHub Copilot.sap official, ui5Agent plugin on the SAP Design System and theming parametersfrom UI5
- 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 agentsfrom BTP/BAIP
- claude-sap-kitclaude-sap-kitA Claude Code plugin of three skills that extends arc-1 with five Custom_* tools for an on-premise ABAP system: running a report and reading its ALV as JSON, previewing a NAST message as PDF, and reading, writing and replacing SmartForms as XML.independent, abapClaude Code plugin adding Custom_* tools to arc-1from ABAP
- UI5/plugins-coding-agentsUI5/plugins-coding-agentsUI5's own plugins for coding agents, three of them: everyday development, modernising a legacy project, and converting one to TypeScript, each installed into Claude Code or GitHub Copilot.sap official, ui5UI5 plugins for coding agentsfrom UI5
- UI5 Web Components agent skillsUI5 Web Components agent skillsTwo skills shipped inside the UI5 Web Components repository itself, under skills/: one for accessibility, covering ARIA and keyboard behaviour, and one for styling through shadow parts and custom properties.sap official, ui5Two agent skills for accessibility and styling of web componentsfrom UI5
- rap-skillsrap-skillsRAP skills delivered branch-per-target, so the playbook you check out only references patterns valid for your deployment — managed on BTP, unmanaged with BAPI wrappers, and S/4HANA Cloud editions planned.independent, abapRAP skills delivered branch-per-target for each deploymentfrom ABAP
- KlystronKlystronAn MCP server written in ABAP that runs inside the application server behind an ICF service and exposes typed tools for ABAP development, quality, transports, customizing, roles, Basis operations and integration, with a client-side plugin of SAP skills.independent, abapMCP server in ABAP inside the application server, with agent skillsfrom ABAP
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