Token导航 LogoToken导航

Agent Skill · 研究检索

sap-api-style(SAP API style 搜索)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

sap-api-style 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 35,605。

总安装 2,056周安装 84GitHub Stars 239下载 665核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sap-api-style(SAP API style 搜索)
来源仓库:https://github.com/secondsky/sap-skills
仓库路径:skills/sap-api-style
安装命令:
npx skills add https://github.com/secondsky/sap-skills --skill sap-api-style
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/secondsky/sap-skills --skill sap-api-style

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于辅助 API 设计、接口文档和前后端联调说明。适合生成 OpenAPI 草稿、检查字段命名和整理错误码。使用时需确认真实业务语义、鉴权方式和分页规则。sap-api-style 属于研究检索类 Skill,可作为该场景下的辅助能力补充。涉及接口文档时应避免凭空补字段,优先提取现有代码事实。

通过 npx skills add 命令从 GitHub 仓库安装使用。

来源仓库内路径:skills/sap-api-style

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/secondsky/sap-skills --skill sap-api-style;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

sap-api-style 怎么安装?

在终端执行 npx skills add https://github.com/secondsky/sap-skills --skill sap-api-style。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

sap-api-style 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

sap-api-style 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

sap-api-style 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

sap-api-style 用的人多吗?

公开数据是累计安装 2,056 次,近一周安装 84 次,下载 665 次,GitHub 239 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

sap-api-style 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
sap-api-style

SAP API style 搜索 · 本页

2,056239需要联网MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

SAP API Style Guide

Related Skills

  • sap-cap-capire: Use for OData service documentation, CAP API patterns, and service definition standards
  • sap-fiori-tools: Use for API consumption patterns, Fiori app integration, and OData best practices
  • sap-abap: Use when documenting ABAP APIs, implementing REST services, or following API design patterns
  • sapui5: Use for frontend API integration, OData consumption, and UI service patterns
  • sap-btp-cloud-platform: Use for BTP service API documentation and integration patterns

Table of Contents

  1. Overview
  2. When to Use This Skill
  3. Quick Decision Tree
  4. Core Principles
  5. Quick Reference Tables
  6. Templates Available
  7. Reference Files
  8. Instructions for Use
  9. Common Pitfalls to Avoid
  10. External Resources
  11. Updates and Maintenance

Overview

This skill provides comprehensive guidance for documenting SAP APIs according to official SAP API Style Guide standards. It covers all major API types and documentation approaches used across the SAP ecosystem.

Documentation Source: https://github.com/SAP-docs/api-style-guide (76 files extracted)

Last Verified: 2025-11-21

When to Use This Skill

Use this skill when:

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

Quick Decision Tree

What Type of API?

REST/OData API
├─ Auto-generated (OpenAPI/Swagger)?
│  └─ references/rest-odata-openapi-guide.md
│     • OpenAPI specification standards
│     • Package, API, operation descriptions
│     • Parameters, responses, components
│     • SAP API Business Hub requirements
│
└─ Manually written?
   └─ references/manual-templates-guide.md
      • REST templates (2-level: overview → method)
      • OData templates (3-level: service → resource → operation)
      • Complete field requirements
      • templates/ directory for ready-to-use files

Native Library API
├─ Java → references/java-javascript-dotnet-guide.md
├─ JavaScript → references/java-javascript-dotnet-guide.md
├─ .NET (C#) → references/java-javascript-dotnet-guide.md
└─ C/C++ → references/java-javascript-dotnet-guide.md
    • Documentation comments structure
    • Language-specific tags
    • Templates for classes, methods, enums
    • Complete code examples

What Task?

Naming
└─ references/naming-conventions.md
   • REST/OData naming (resources, parameters, URIs)
   • Native library naming (classes, methods, constants)
   • Common mistakes to avoid

Writing Descriptions
└─ references/rest-odata-openapi-guide.md
   • Package descriptions
   • API details (info object)
   • Operations, parameters, responses

Quality Assurance
└─ references/quality-processes.md
   • Complete API Quality Checklist
   • Review workflows
   • Development team guidelines

Deprecating APIs
└─ references/deprecation-policy.md
   • Lifecycle states (beta, active, deprecated, decommissioned)
   • Timeline requirements (12+ months support)
   • Required metadata (x-sap-stateInfo)

Developer Guides
└─ references/developer-guides.md
   • Structure guidelines
   • Content selection
   • Code sample standards

Core Principles

1. Consistency Across SAP APIs

All SAP API documentation follows consistent conventions:

  • Naming: Language-specific (camelCase, PascalCase, kebab-case)
  • Structure: Hierarchical with clear navigation
  • Formatting: Sentences start with capitals, end with periods
  • Language: American English

2. API-Type-Specific Standards

API TypeStandardToolDocumentation
RESTOpenAPI 3.0.3SwaggerSpec
ODatav4.01, v3.0, v2.0VariousOData.org
JavaJavadocjavadocOracle
JavaScriptJSDoc 3jsdocJSDoc.app
.NETXML CommentsDocFXMicrosoft
C/C++DoxygendoxygenDoxygen.nl

3. Progressive Disclosure

Documentation organized hierarchically:

  • High-level overviews provide context and navigation
  • Detailed references cover specific APIs, methods, operations
  • Examples and templates demonstrate practical usage

4. Quality Standards

All documentation must:

  • ✅ Be reviewed by User Assistance (UA) developers
  • ✅ Use consistent naming and terminology
  • ✅ Include complete parameter and response descriptions
  • ✅ Avoid sensitive data in examples
  • ✅ Provide working code examples
  • ✅ Maintain accurate links and cross-references

Quick Reference Tables

Character Limits

ElementLimitUse Case
API Title80info.title in OpenAPI
API Short Text180x-sap-shortText
Package Short Desc250Package tile description
Operation Summary255Operation summary line
Description1024General descriptions

API Naming Rules

General Rules (all API types):

  • ❌ Don't include "API" in name: "Custom Forms API" → ✅ "Custom Forms"
  • ❌ Don't include "SAP" prefix: "SAP Document Approval" → ✅ "Document Approval"
  • ❌ Don't use verbs: "Configuring Portal" → ✅ "Portal Configuration"
  • ✅ Capitalize words properly
  • ✅ Avoid technical specifics (REST, OData, etc.)

See references/naming-conventions.md for complete language-specific rules.

Common Documentation Tags

Java/JavaScript:

  • @param <name> <description> - Parameter documentation
  • @return <description> - Return value
  • @throws <class> <description> - Exception
  • @deprecated <description> - Deprecation notice

.NET:

  • <summary> - Brief description
  • <param name=""> - Parameter
  • <returns> - Return value
  • <exception cref=""> - Exception

See references/java-javascript-dotnet-guide.md for complete tag reference.

API Lifecycle States

StateDefinitionSupportMetadata Required
BetaPre-production testingNo guaranteesstate: beta
ActiveProduction-ready (default)Full supportOptional
DeprecatedReplaced by successor12+ monthsstate, deprecationDate, successorApi
DecommissionedFully retiredNoneDocument removal

See references/deprecation-policy.md for complete timeline and process requirements.

Templates Available

Ready-to-use templates in templates/ directory:

REST API Templates (2-Level)

  1. rest-api-overview-template.md - Resource-level overview
  2. rest-api-method-template.md - Individual endpoint details

OData API Templates (3-Level)

  1. odata-service-overview-template.md - Complete service overview
  2. odata-resource-template.md - Individual resource/entity set
  3. odata-operation-template.md - Specific operation details

All templates include:

  • Clear "How to Use" instructions
  • [Placeholder text] for customization
  • Complete section structure
  • Working examples
  • Inline guidance

Reference Files

Complete Guides Available

  1. rest-odata-openapi-guide.md (2,800 lines)

- Complete OpenAPI specification guidelines - Package, API, operation descriptions - Parameters, responses, components - Security schemes, tags, external docs - Character limits and anti-patterns

  1. manual-templates-guide.md (2,765 lines)

- REST API templates (2-level hierarchy) - OData API templates (3-level hierarchy) - Complete template structures - Field-by-field requirements - Best practices and examples

  1. naming-conventions.md (2,059 lines)

- REST/OData naming rules (resources, parameters, URIs) - Native library naming (classes, methods, constants, packages) - Language-specific conventions - Common mistakes with fixes - Decision trees and reference tables

  1. quality-processes.md (1,774 lines)

- Complete API Quality Checklist - Review workflows (developer + UA collaboration) - Development team guidelines - Common review findings and solutions - Process flowcharts

  1. java-javascript-dotnet-guide.md (1,517 lines)

- Documentation comments structure - Language-specific tags (Java, JavaScript,.NET, C/C++) - Templates for classes, methods, enums - Complete code examples - Best practices by language

  1. developer-guides.md (704 lines)

- Guide structure standards - Topic types (concept, reference, task) - Content selection criteria - Code sample standards (compilable, concise, commented) - Best practices

  1. deprecation-policy.md (664 lines)

- API lifecycle states (beta, active, deprecated, decommissioned) - Timeline requirements (12+ months support, 24+ months lifespan) - Required metadata (x-sap-stateInfo, artifact.json) - Decommission process - Complete examples

  1. glossary-resources.md (472 lines)

- Complete terminology definitions (API, OData, OpenAPI, etc.) - External resource links (standards, tools, SAP resources) - Quick reference tables - Tool documentation links - Content extraction and organization tracking - Source file mapping from SAP documentation - Consolidation and adaptation notes

Bundled Resources

This skill includes comprehensive documentation and templates organized for optimal use:

Reference Guides (references/)

  • 9 detailed reference files (10,861 total lines)
  • Complete coverage of SAP API Style Guide standards
  • Progressive disclosure architecture for efficient loading

Template Files (templates/)

  1. rest-api-overview-template.md (217 lines) - Level 1 REST overview
  2. rest-api-method-template.md (477 lines) - Level 2 REST method details
  3. odata-service-overview-template.md (411 lines) - Level 1 OData service
  4. odata-resource-template.md (557 lines) - Level 2 OData resource
  5. odata-operation-template.md (681 lines) - Level 3 OData operation

Total: 2,343 lines of ready-to-use templates

Instructions for Use

Step 1: Identify API Type

Determine if you're documenting REST, OData, Java, JavaScript,.NET, or C/C++ API.

Step 2: Choose Approach

Auto-Generated: Write documentation comments in source code → Use appropriate tags → Submit for review

Manual: Select template from templates/ → Customize [placeholders] → Follow hierarchy → Validate with checklist

Step 3: Apply Standards

Consult appropriate reference file:

  • Naming: naming-conventions.md
  • Descriptions: rest-odata-openapi-guide.md or java-javascript-dotnet-guide.md
  • Quality: quality-processes.md
  • Deprecation: deprecation-policy.md

Step 4: Quality Check

Before publishing:

  1. Review against API Quality Checklist (quality-processes.md)
  2. Verify naming conventions (naming-conventions.md)
  3. Check character limits (see Quick Reference Tables above)
  4. Validate no sensitive data in examples
  5. Test all code examples
  6. Verify links work
  7. Obtain UA developer review

Step 5: Publish

  • REST/OData: Submit to SAP API Business Hub
  • Java/JavaScript/.NET: Generate with appropriate tool (Javadoc, JSDoc, DocFX)
  • Developer Guides: Publish to SAP Help Portal or product documentation

Common Pitfalls to Avoid

Naming:

  • ❌ Including "API": "Custom Forms APIs" → ✅ "Custom Forms"
  • ❌ Using "SAP" prefix: "SAP Document Approval" → ✅ "Document Approval"
  • ❌ Using verbs: "Configuring Portal" → ✅ "Portal Configuration"

Descriptions:

  • ❌ Second person: "This operation creates..." → ✅ "Creates a new user"
  • ❌ Generic responses: "No content" → ✅ "Product is out of stock"
  • ❌ Repeating summary in description

Documentation:

  • ❌ Skipping UA review
  • ❌ Including sensitive data in examples
  • ❌ Missing required tags
  • ❌ Inconsistent terminology

See individual reference files for complete anti-patterns and fixes.

External Resources

Standards

SAP Resources

Source

Updates and Maintenance

Source Version: SAP API Style Guide 2025.01 (verified against commit 902247f)

Recent Changes:

  • Source repository updated 2025-10-28
  • Reference file line counts verified and updated
  • Added comprehensive Table of Contents for navigation
  • Added Bundled Resources section for content discovery

To Update This Skill:

  1. Check source repository for changes: https://github.com/SAP-docs/api-style-guide
  2. Review "What's New in the Style Guide"
  3. Update affected reference files
  4. Update templates if standards changed
  5. Update "Last Verified" date

Quarterly Review Recommended: Check for updates every 3 months

Next Review: 2026-02-27


Skill Version: 1.1.0 Last Updated: 2025-11-27 License: GPL-3.0 Maintainer: SAP Skills Team | https://github.com/secondsky/sap-skills

平台分布

Claude Code

29.35%
按下载量换算195

Antigravity

20.77%
按下载量换算138

Gemini CLI

16.35%
按下载量换算109

windsurf

11.34%
按下载量换算75

trae

7.58%
按下载量换算50

OpenCode

3.42%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills