SkillSkilltypeA procedure an agent follows. Indexed here, never written here.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

cap-mtx-scaffold

An agent skill for CAP multitenancy 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 it reads the versions declared in package.json and pins every @sap/cds-dk 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

Last pushLicenceApache-2.0

Where it sits

Lives in
Provides
Agent guidanceCAPAgent guidancecapabilityPackaged knowledge you hand a coding agent so it gets a framework right unprompted — skills, rule files, instruction packs. Distinct from agent tooling, which is about building agentic features into your application, and from [agent access to your code](capability:agent-code-access), where the agent reads the real project instead of being handed a file about it.
Requires
@sap/cds-dk@sap/cds-dkartifactThe scaffolding step is the real cds init and cds add commands, invoked either from a global install or through npx pinned to the version the project declares.Node.jsNode.jsoutside the atlasThe detection script and every scaffolding command run through Node and npm on the developer's own machine.

Who is behind it

Fernando Meregali XavierFernando Meregali XavierPersonMaintains this
In the atlas: maintains 1, contributes to 1
@fermeregali
maintainer

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 skillOverflow by Daniel Krompaß, 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

Connections3

Install

git clone <this-repository-url>
mkdir -p ~/.claude/skills
ln -s "$(pwd)/cap-mtx-scaffold/skills/cap-mtx-scaffold" ~/.claude/skills/cap-mtx-scaffold

Copied from cap-mtx-scaffold — README, Quickstart, read . Not run by the atlas.

README

quoted from fermeregali/cap-mtx-scaffold under Apache-2.0, read
fermeregali/cap-mtx-scaffold/README.mdOn GitHub

cap-mtx-scaffold

License: Apache 2.0 SAP CAP Multitenancy

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:

AgentSkills 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:

  1. Greenfield — no existing CAP project. Asks which @sap/cds major version to target (defaulting to the most recent version available on the machine, never invented) and runs cds init + cds add multitenancy + cds add <db-kind>.
  2. Existing project, current @sap/cds-mtxs — reads the versions already declared in package.json and pins every cds-dk invocation to exactly those versions via npx --package=@sap/cds-dk@<version>. It never suggests, and cannot silently fall into, an upgrade.
  3. 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-mtx to @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.

Apache-2.0, read
Agent guidance
  1. abap2UI5 for VS CodeVS Code extension to preview, activate and lint abap2UI5 appsfrom ABAP
  2. sap-cx-developer-companionAgent skill for SAP Customer Experience APIs, CDS and errorsfrom SAP Commerce
  3. sap-basis-opsRunbook skills for Basis operations at the OS and database layerfrom ABAP
  4. abap-offstack-aunitAgent skill for off-stack ABAP Unit tests and an abaplint gatefrom ABAP
  5. ARC-1 SkillsTwenty-two agent skills shipped with arc-1from ABAP
  6. sapskillsAgent skills for Clean ABAP, ADT in VS Code and guardrailsfrom ABAP
  7. SuperClaude for SAPClaude Code plugin with an ABAP MCP server and write guardsfrom ABAP
  8. sap-dm-pod2-mcp-serverMCP server for SAP Digital Manufacturing POD 2.0 extensionsfrom SAP Digital Manufacturing
  9. capire/skillsAgent skills for CAP development, each a SKILL.md with referencesfrom CAP
  10. sap-cloud-integration-pipeline-assistantAgent skill for the Pipeline Concept in SAP Cloud Integrationfrom BTP/BAIP
  11. claude-abap-devFive ABAP workflows for Claude Code on existing MCP serversfrom ABAP
  12. DanKromp/skillOverflowCollection of 41 agent skills, 37 for SAP development tasksfrom CAP
  13. sap-commerce-skillAgent skill for SAP Commerce Cloud 2211-jdk21.1 and laterfrom SAP Commerce
  14. ARC-DRAWMCP server drawing BTP solution diagrams on a draw.io canvasfrom BTP/BAIP
  15. sap-ai-dev-toolkitMCP proxy pinning an agent's ABAP tools to one SAP systemfrom ABAP
  16. scaffold-fiori-ai-bridgeAgent skill generating a Joule Frontend Actions bridge for UI5 appsfrom UI5
  17. sapcli Claude Code PluginAgents and skills that drive sapcli instead of ADTfrom ABAP
  18. CAP GuardianCAP review skill for coding agents with gates and prohibitionsfrom CAP
  19. sap-odata-explorerRust CLI and desktop app for exploring SAP OData servicesfrom BTP/BAIP
  20. btp-solution-diagram-generatorClaude plugin writing BTP solution diagrams as .drawio filesfrom BTP/BAIP
  21. abap-skillsSeventeen agent skills for ABAP developmentfrom ABAP
  22. drawio-skill-sapGitHub Copilot skill writing BTP solution diagrams as draw.io XMLfrom BTP/BAIP
  23. sap-mdk-appsAgent skill for Mobile Development Kit projectsfrom BTP/BAIP
  24. ABAP remote filesystemVS Code extension editing ABAP systems over ADT as a filesystemfrom ABAP
  25. sap-architectureClaude Code plugin and skill drawing validated BTP diagramsfrom BTP/BAIP
  26. WerkbankLocal desktop workspace for AI conversations with SAP connectorsfrom Across stacks
  27. SAP Datasphere Plugin for ClaudeEighteen Datasphere skills over a bundled MCP serverfrom BTP/BAIP
  28. claude-abap-skillsClaude Code plugins with Clean ABAP rules and templatesfrom ABAP
  29. SAP Power for KiroSAP skills for the Kiro IDEfrom BTP/BAIP
  30. drawio-btp-diagram-skillsClaude Code skills for BTP architecture diagrams in draw.iofrom BTP/BAIP
  31. @patimweb/pi-cap-bestpracticesSAP's capire/skills packaged for the pi coding agentfrom CAP
  32. pod2-configAn 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
  33. aicore-skillsFour agent skills for SAP AI Core in SAP's AI Skills Libraryfrom BTP/BAIP
  34. SAP/automation-pilot-agent-skillsEight skills for writing and operating SAP Automation Pilot contentfrom BTP/BAIP
  35. SAP Developers MCPHosted MCP server of developers.sap.com tutorials and missionsfrom Across stacks
  36. sap-fiori-guidelinesAgent skill built from the Fiori Design Guidelinesfrom UI5
  37. sap-fiori-iosAgent skill mapping Fiori iOS UI Kit nodes in Figma to SwiftUIfrom BTP/BAIP
  38. SAP/leanix-ai-pluginsClaude Code plugin with two skills for SAP LeanIX scriptingfrom BTP/BAIP
  39. SAP-samples/html5-applications-migration-skills-for-sap-btpClaude Code plugin with skills migrating HTML5 apps to appFrontfrom BTP/BAIP
  40. SAP-samples/joule-a2a-agent-toolkitSkills for building an A2A agent for Joule and deploying it to CFfrom BTP/BAIP
  41. SAP-samples/sap-devs-cliCLI adding SAP developer knowledge and MCP servers to AI coding toolsfrom BTP/BAIP
  42. sap-tutorials-contentAgent skill mapping the developers.sap.com content APIfrom BTP/BAIP
  43. SAP/ui-theme-designer-plugins-for-coding-agentsAgent plugin on the SAP Design System and theming parametersfrom UI5
  44. secondsky/sap-skillsForty SAP development plugins for coding agentsfrom BTP/BAIP
  45. claude-sap-kitClaude Code plugin adding Custom_* tools to arc-1from ABAP
  46. UI5/plugins-coding-agentsUI5 plugins for coding agentsfrom UI5
  47. UI5 Web Components agent skillsTwo agent skills for accessibility and styling of web componentsfrom UI5
  48. rap-skillsRAP skills delivered branch-per-target for each deploymentfrom ABAP
  49. KlystronMCP server in ABAP inside the application server, with agent skillsfrom ABAP

Details

Sources3
SAP AI Skills Librarydiscovered here, skills.cloud.sapchecked
github.com/fermeregali/cap-mtx-scaffoldtree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

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
discovered viaSAP AI Skills Library · skills.cloud.sap
first seen in the atlas
ecosystem and domaincap, ai-and-agents
History in the atlas2
  1. 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.
  2. First seen.
For your agent
Ref
artifact:fermeregali-cap-mtx-scaffold
JSON
/artifacts/fermeregali-cap-mtx-scaffold.json
MCP
Connecting an agent