All skills
secondsky avatar

/sap-api-style

@620a19a
by Eddiesecondsky/sap-skills456 stars
120

This skill provides comprehensive guidance for documenting SAP APIs following the SAP API Style Guide standards. It should be used when creating or reviewing API documentation for REST, OData, Java, JavaScript, .NET, or C/C++ APIs. The skill covers naming conventions, documentation comments, OpenAPI specifications, quality checklists, deprecation policies, and manual documentation templates. It ensures consistency with SAP API Business Hub standards and industry best practices. Keywords: SAP API, REST, OData, OpenAPI, Swagger, Javadoc, JSDoc, XML documentation, API Business Hub, API naming, API deprecation, x-sap-stateInfo, Entity Data Model, EDM, documentation tags, API quality, API templates

Use this Skill: https://skilld.dev/gh/secondsky/sap-skills/sap-api-style

This session only. Nothing lands on disk.

README.md

≈3.3k tokens on demand. Your agent reads this file only when SKILL.md points to it.

SAP API Style Guide – Skill

Version: 1.1.0 Last Updated: 2025-11-27


Capability Index

Capability Status
Commands 1: /api-style-review
Agents 1: api-style-reviewer
Hooks No
MCP No
LSP No
Source Freshness last_verified: 2026-02-25; large reference routing added, upstream re-verification pending.
Verification npm run validate; API owner/runtime catalog checks pending unless documented.

Attribution & License

Upstream Content

This skill incorporates content from the SAP API Style Guide:

  • Upstream Repository: SAP-docs/api-style-guide
  • Source Commit: main branch as of 2025-11-21
  • Upstream License: CC BY 4.0 (Creative Commons Attribution 4.0 International)
  • License Summary: Permits sharing and adaptation with attribution; requires attribution to SAP and indication of changes

Content Usage

Verbatim Content (directly copied from upstream):

  • Core documentation examples and patterns from SAP API Style Guide
  • Code sample structures and formatting guidelines
  • Terminology definitions and standards references

Adapted Content (modified from upstream):

  • All reference files in references/ - consolidated from multiple upstream files, reorganized for progressive disclosure
  • All template files in templates/ - enhanced with additional examples and Claude Code-specific guidance
  • SKILL.md - restructured from upstream documentation into decision trees and quick references

Original Content (created for this skill):

  • Progressive disclosure architecture and file organization
  • Claude Code skill-specific metadata and trigger keywords
  • Cross-references and navigation structure optimized for LLM consumption

SPDX License Identifiers

  • Upstream SAP content: CC-BY-4.0
  • Skill packaging and structure: MIT

Full License Text


Overview

Documents SAP APIs following official SAP API Style Guide standards for REST, OData, Java, JavaScript, .NET, and C/C++ APIs.

Auto-Trigger Keywords

This skill automatically activates when you mention:

API Types

  • REST API documentation
  • OData API documentation
  • OData service documentation
  • Java API documentation
  • JavaScript API documentation
  • .NET API documentation
  • C# API documentation
  • C++ API documentation
  • OpenAPI specification
  • Swagger documentation
  • Javadoc
  • JSDoc
  • XML documentation comments
  • Doxygen documentation

SAP-Specific

  • SAP API Business Hub
  • SAP API naming
  • SAP API standards
  • SAP API deprecation
  • SAP API quality
  • SAP API review
  • SAP developer guide
  • SAP service guide
  • SAP REST API
  • SAP OData service
  • SAP Cloud Platform API
  • SAP BTP API
  • SAP Integration Suite

Documentation Tasks

  • API naming conventions
  • API documentation comments
  • API reference documentation
  • API parameter documentation
  • API response documentation
  • OpenAPI info object
  • OpenAPI components
  • OpenAPI paths
  • OpenAPI security
  • OData entity model
  • OData EDM
  • OData metadata
  • Entity Data Model

Quality & Processes

  • API quality checklist
  • API review process
  • API documentation standards
  • API deprecation policy
  • API lifecycle management
  • x-sap-stateInfo
  • API versioning
  • API decommission

Documentation Elements

  • @param tag
  • @return tag
  • @throws tag
  • @deprecated tag
  • summary tag
  • description tag
  • package description
  • method documentation
  • class documentation
  • interface documentation
  • operation documentation
  • endpoint documentation
  • parameter description
  • response description
  • error code documentation
  • status code documentation

Templates

  • REST API template
  • OData API template
  • API overview template
  • API method template
  • OData service template
  • OData resource template
  • OData operation template
  • manual API documentation
  • API documentation template

When to Use

Use this skill when:

  • Creating REST or OData API documentation for SAP systems
  • Writing OpenAPI specifications for SAP API Business Hub
  • Documenting Java, JavaScript, .NET, or C/C++ APIs with proper tags
  • Reviewing API names for SAP naming convention compliance
  • Writing documentation comments in source code (Javadoc, JSDoc, XML)
  • Creating manual API documentation using SAP templates
  • Implementing API deprecation following SAP policies
  • Performing quality checks on API documentation
  • Publishing APIs to SAP API Business Hub
  • Developing developer guides for SAP services

Key Features

Comprehensive Coverage

  • ✅ REST API Documentation (OpenAPI 3.0.3)
  • ✅ OData API Documentation (v4.01, v3.0, v2.0)
  • ✅ Java API Documentation (Javadoc)
  • ✅ JavaScript API Documentation (JSDoc)
  • ✅ .NET API Documentation (XML comments)
  • ✅ C/C++ API Documentation (Doxygen)

Reference Files (8 Comprehensive Guides)

  1. REST/OData OpenAPI Guide (73KB, 2,794 lines)

    • Complete OpenAPI specification guidelines
    • Package, API, operation descriptions
    • Parameters, responses, components
    • SAP API Business Hub requirements
  2. Manual Templates Guide (79KB, 2,761 lines)

    • REST API templates (2-level hierarchy)
    • OData API templates (3-level hierarchy)
    • Complete template structures
    • Field-by-field requirements
  3. Naming Conventions (53KB, 2,042 lines)

    • REST/OData naming rules
    • Native library naming standards
    • Language-specific conventions
    • Common mistakes to avoid
  4. Quality & Review Processes (53KB, 1,769 lines)

    • API Quality Checklist
    • Review workflows
    • Development team guidelines
    • Common review findings
  5. Java/JavaScript/.NET Guide (Comprehensive)

    • Documentation comments structure
    • Language-specific tags
    • Templates for classes, methods, enums
    • Complete code examples
  6. Deprecation Policy (Complete)

    • API lifecycle states
    • Timeline requirements
    • Metadata specifications
    • Decommission process
  7. Developer Guides (Complete)

    • Guide structure standards
    • Content selection criteria
    • Code sample requirements
    • Topic type conventions
  8. Glossary & Resources (Complete)

    • Complete terminology
    • External resource links
    • Tool references
    • Quick reference tables

Template Files (5 Ready-to-Use Templates)

  1. REST API Overview Template (Level 1)
  2. REST API Method Template (Level 2)
  3. OData Service Overview Template (Level 1)
  4. OData Resource Template (Level 2)
  5. OData Operation Template (Level 3)

Progressive Disclosure

  • SKILL.md: Quick decision trees and overview
  • References: Detailed guidelines loaded when needed
  • Templates: Ready-to-customize documentation templates

Quick Start

For REST APIs

1. Choose template: REST API Overview (Level 1)
2. Customize: Replace [placeholders] with your API info
3. Create methods: Use REST API Method template (Level 2)
4. Review: Check against API Quality Checklist
5. Publish: Submit to SAP API Business Hub

For OData Services

1. Choose template: OData Service Overview (Level 1)
2. Document resources: Use OData Resource template (Level 2)
3. Document operations: Use OData Operation template (Level 3)
4. Review: Verify Entity Data Model (EDM)
5. Publish: Submit with $metadata endpoint

For Java/JavaScript/.NET APIs

1. Write documentation comments in source code
2. Use appropriate tags (@param, @return, @throws, etc.)
3. Follow naming conventions for language
4. Submit for UA review early
5. Generate and verify output

Skill Structure

sap-api-style/
├── SKILL.md                           # Main skill file
├── README.md                          # This file
│
├── references/                        # Detailed reference guides
│   ├── rest-odata-openapi-guide.md   # REST/OData OpenAPI docs
│   ├── manual-templates-guide.md     # Manual template reference
│   ├── java-javascript-dotnet-guide.md # Native library docs
│   ├── naming-conventions.md         # Naming standards
│   ├── quality-processes.md          # Quality & review processes
│   ├── deprecation-policy.md         # API lifecycle management
│   ├── developer-guides.md           # Developer guide standards
│   ├── glossary-resources.md         # Glossary & external resources
│
└── templates/                         # Ready-to-use templates
    ├── rest-api-overview-template.md
    ├── rest-api-method-template.md
    ├── odata-service-overview-template.md
    ├── odata-resource-template.md
    └── odata-operation-template.md

Examples

Example 1: REST API Naming

❌ Incorrect:

  • "SAP Document Approval REST API"
  • "Get Customer Data"
  • "employee-service"

✅ Correct:

  • "Document Approval"
  • "getCustomerData"
  • "employeeService"

Example 2: Operation Description

❌ Incorrect:

description: "This operation creates a new customer in the system"

✅ Correct:

summary: "Create customer"
description: "Creates a new customer with provided details. Returns customer ID on success."

Example 3: Deprecation

x-sap-stateInfo:
  state: deprecated
  deprecationDate: "2024-01-15"
  successorApi: "Customer Management API v2.0"

Character Limits Quick Reference

Element Limit Use Case
API Title 80 info.title
API Short Text 180 x-sap-shortText
Package Short Desc 250 Package tile description
Operation Summary 255 Operation summary line
Description 1024 General descriptions

External Resources

Standards

SAP Resources

Source


Token Efficiency

This skill saves massive token overhead by:

  • Preventing trial-and-error in API documentation formatting
  • Providing templates instead of generating from scratch
  • Progressive disclosure loading only relevant content
  • Reference lookup instead of explaining standards repeatedly

Estimated Savings: 60-70% reduction in tokens vs. manual documentation creation


Compliance

✅ Follows SAP official standards (verified 2025-11-21) ✅ Aligned with OpenAPI Specification 3.0.3 ✅ Supports OData v4.01, v3.0, v2.0 ✅ Compatible with SAP API Business Hub requirements ✅ Includes SAP-specific extensions (x-sap-stateInfo)


Updates

Version 1.1.0 (2025-11-27)

Enhancements:

  • Added comprehensive Table of Contents to SKILL.md for improved navigation
  • Added Bundled Resources section listing all reference files and templates with accurate line counts
  • Verified and updated all reference file line counts (total: 10,861 lines)
  • Verified source repository commit (902247f3) and updated source version to 2025.01
  • Enhanced metadata with source license information (CC-BY-4.0)
  • Improved content discoverability and progressive disclosure architecture

Version 1.0.0 (2025-11-21)

Initial Release:

  • Complete extraction from SAP API Style Guide (16 source files verified)
  • 9 comprehensive reference guides (consolidated and adapted)
  • 5 ready-to-use templates (enhanced with examples)
  • Full coverage of REST, OData, Java, JavaScript, .NET, C/C++
  • Progressive disclosure structure optimized for Claude Code
  • Production-tested templates and examples

Next Quarterly Review: 2026-02-27


Contributing

This skill is maintained as part of the SAP Skills repository:


License

GPL-3.0 License - See LICENSE file for details


Maintainer: Eduard Jiglau | hello@sap-ai-skills.com | sap-ai-skills.com | https://github.com/secondsky/sap-skills Skill Version: 1.1.0 Last Verified Against SAP Standards: 2026-02-25

Source: SKILL.md on GitHub

1 warning16d5 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The skill is a comprehensive documentation repository for SAP API Style Guide standards. It provides detailed reference guides and templates for documenting REST, OData, and native library APIs. No malicious patterns, prompt injections, or unauthorized data access were identified during analysis.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer6mo

    5/16 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 620a19a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 months ago
Other metadata
metadata
{
  "maintainer": "Eduard Jiglau",
  "maintainer_email": "hello@sap-ai-skills.com",
  "website": "https://sap-ai-skills.com",
  "version": "2.4.1",
  "last_verified": "2026-02-25",
  "source_version": "2025.01",
  "source_commit": "902247f3afb6a0cb3fa110b284bb5d93a65c1268",
  "source_license": "CC-BY-4.0"
}

README badge

README badge for secondsky/sap-skills/sap-api-style