sap-api-style — Claude Code skill: what it does, how to install
Guides developers in documenting REST, OData, and native code APIs using SAP API Style Guide rules. Useful when preparing specs for SAP API Business Hub.
npx skills add secondsky/sap-skills --skill sap-api-style -a claude-codeWhat sap-api-style does
This skill integrates official SAP API Style Guide standards across REST, OData (v2.0, v3.0, v4.01), and native libraries in Java, JavaScript, .NET, and C/C++. It covers code documentation standards using Javadoc, JSDoc, XML comments, and Doxygen.
It provides naming conventions and structural templates. REST templates follow a two-level structure, while OData uses a three-level hierarchy. The guidelines enforce strict character limits: 80 characters for the API title, 180 for x-sap-shortText, and 255 for operation summaries. Deprecation workflows demand x-sap-stateInfo metadata along with a minimum 12-month support commitment. All texts must be written in American English.
What it helps with
- format OpenAPI 3.0.3 specifications for SAP API Business Hub
- audit endpoint and parameter names against SAP naming conventions
- write standardized code comments using Javadoc or JSDoc
- document API deprecation using x-sap-stateInfo
- generate three-level documentation templates for OData services
Example prompts for the agent
- Review this OpenAPI specification against sap-api-style guidelines
- Generate JSDoc comments for this JavaScript library following SAP standards
- Check if my OData resource names comply with SAP API style rules
How to install sap-api-style
1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-api-style -a claude-code2Manually: put the files in place
~/.claude/skills/sap-api-style/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/sap-api-style/
1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-api-style -a codex2Manually: put the files in place
.agents/skills/sap-api-style/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-api-style -a cursor2Manually: put the files in place
.cursor/skills/sap-api-style/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install secondsky/sap-skills sap-api-style2Manually: put the files in place
.github/skills/sap-api-style/SKILL.md1Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-api-style -a gemini-cli2Platform CLI
gemini skills install https://github.com/secondsky/sap-skills --path plugins/sap-api-style/skills/sap-api-styleManually: put the files in place
.devin/skills/sap-api-style/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add secondsky/sap-skills --skill sap-api-style -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about sap-api-style
How to install sap-api-style in Claude Code?
Run npx skills add secondsky/sap-skills --skill sap-api-style -a claude-code in your terminal.
What is the sap-api-style skill?
It provides formatting standards, templates, and naming rules for documenting SAP REST, OData, and native APIs.
What are the lifecycle rules for deprecated APIs in this guide?
The guidelines require tracking lifecycle states with x-sap-stateInfo metadata and supporting deprecated endpoints for at least 12 months.