Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计通过

sap-cap-capire树汁帽卡皮尔

Agent Skill

sap-cap-capire 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,092

周安装

174

GitHub Stars

239

下载量

1,434
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/secondsky/sap-skills --skill sap-cap-capire

简介

用于查找、检索和筛选 SAP CAP 相关技术信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位资料。
  • 通过 npx skills add 命令从 GitHub 仓库安装使用。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • 可结合原始 README 进一步核验具体用法和功能边界。

SKILL.md

SAP CAP-Capire Development Skill

Related Skills

  • sap-fiori-tools: Use for UI layer development, Fiori Elements integration, and frontend application generation
  • sapui5: Use for custom UI development, advanced UI patterns, and freestyle application building
  • sap-btp-cloud-platform: Use for deployment options, Cloud Foundry/Kyma configuration, and BTP service integration
  • sap-hana-cli: Use for database management, schema inspection, and HDI container administration
  • sap-abap: Use for ABAP system integration, external service consumption, and SAP extensions
  • sap-btp-best-practices: Use for production deployment patterns and architectural guidance
  • sap-ai-core: Use when adding AI capabilities to CAP applications or integrating with SAP AI services
  • sap-api-style: Use when documenting CAP OData services or following API documentation standards

Table of Contents

Quick Start

Project Initialization

# Install CAP development kit
npm i -g @sap/cds-dk @sap/cds-lsp

# Create new project
cds init <project-name>
cds init <project-name> --add sample,hana

# Start development server with live reload
cds watch

# Add capabilities
cds add hana          # SAP HANA database
cds add sqlite        # SQLite for development
cds add xsuaa         # Authentication
cds add mta           # Cloud Foundry deployment
cds add multitenancy  # SaaS multitenancy
cds add typescript    # TypeScript support

Basic Entity Example

using { cuid, managed } from '@sap/cds/common';

namespace my.bookshop;

entity Books : cuid, managed {
  title       : String(111) not null;
  author      : Association to Authors;
  stock       : Integer;
  price       : Decimal(9,2);
}

entity Authors : cuid, managed {
  name        : String(111);
  books       : Association to many Books on books.author = $self;
}

Basic Service

using { my.bookshop as my } from '../db/schema';

service CatalogService @(path: '/browse') {
  @readonly entity Books as projection on my.Books;
  @readonly entity Authors as projection on my.Authors;

  @requires: 'authenticated-user'
  action submitOrder(book: Books:ID, quantity: Integer) returns String;
}

MCP Integration

This skill integrates with the official CAP MCP (Model Context Protocol) server, providing AI agents with live access to your project's compiled CDS model and CAP documentation.

Available MCP Tools:

  • search_model - Fuzzy search for CDS entities, services, actions, and relationships in your compiled CSN model
  • search_docs - Semantic search through CAP documentation for syntax, patterns, and best practices

Key Benefits:

  • Instant Model Discovery: Query your project's entities, associations, and services without reading files
  • Context-Aware Documentation: Find relevant CAP documentation based on semantic similarity, not keywords
  • Zero Configuration: No credentials or environment variables required
  • Offline-Capable: All searches are local (model) or cached (docs)

Setup: See MCP Integration Guide for configuration with Claude Code, opencode, or GitHub Copilot.

Use Cases: See MCP Use Cases for real-world examples with quantified ROI (~$131K/developer/year time savings).

Agent Integration: The specialized agents (cap-cds-modeler, cap-service-developer, cap-project-architect, cap-performance-debugger) automatically use these MCP tools as part of their workflows.

Project Structure

project/
├── app/              # UI content (Fiori, UI5)
├── srv/              # Service definitions (.cds, .js/.ts)
├── db/               # Data models and schema
│   ├── schema.cds    # Entity definitions
│   └── data/         # CSV seed data
├── package.json      # Dependencies and CDS config
└── .cdsrc.json       # CDS configuration (optional)

Core Concepts

CDS Built-in Types

CDS TypeSQL MappingCommon Use
UUIDNVARCHAR(36)Primary keys
String(n)NVARCHAR(n)Text fields
IntegerINTEGERWhole numbers
Decimal(p,s)DECIMAL(p,s)Monetary values
BooleanBOOLEANTrue/false
DateDATECalendar dates
TimestampTIMESTAMPDate/time

Common Aspects

using { cuid, managed, temporal } from '@sap/cds/common';
// cuid = UUID key
// managed = createdAt, createdBy, modifiedAt, modifiedBy
// temporal = validFrom, validTo

Event Handlers (Node.js)

// srv/cat-service.js
module.exports = class CatalogService extends cds.ApplicationService {
  init() {
    const { Books } = this.entities;

    // Before handlers - validation
    this.before('CREATE', Books, req => {
      if (!req.data.title) req.error(400, 'Title required');
    });

    // On handlers - custom logic
    this.on('submitOrder', async req => {
      const { book, quantity } = req.data;
      // Custom business logic
      return { success: true };
    });

    return super.init();
  }
}

Basic CQL Queries

const { Books } = cds.entities;

// SELECT with conditions
const books = await SELECT.from(Books)
  .where({ stock: { '>': 0 } })
  .orderBy('title');

// INSERT
await INSERT.into(Books)
  .entries({ title: 'New Book', stock: 10 });

// UPDATE
await UPDATE(Books, bookId)
  .set({ stock: { '-=': 1 } });

Database Setup

Development (SQLite)

// package.json
{
  "cds": {
    "requires": {
      "db": {
        "[development]": {
          "kind": "sqlite",
          "credentials": { "url": ":memory:" }
        },
        "[production]": { "kind": "hana" }
      }
    }
  }
}

Production (SAP HANA)

cds add hana
cds deploy --to hana

Initial Data (CSV)

  • File location: db/data/my.bookshop-Books.csv
  • Format: <namespace>-<EntityName>.csv
  • Auto-loaded on deployment

Deployment

Cloud Foundry

# Add CF deployment support
cds add hana,xsuaa,mta,approuter

# Build and deploy
npm install --package-lock-only
mbt build
cf deploy mta_archives/<project>_<version>.mtar

Multitenancy (SaaS)

cds add multitenancy

Configuration:

{
  "cds": {
    "requires": {
      "multitenancy": true
    }
  }
}

Authorization Examples

// Service-level
@requires: 'authenticated-user'
service CatalogService { ... }

// Entity-level
@restrict: [
  { grant: 'READ' },
  { grant: 'WRITE', to: 'admin' }
]
entity Books { ... }

Bundled Resources

Reference Documentation (22 files)

  1. references/annotations-reference.md - Complete UI annotations reference (10K lines)
  2. references/cdl-syntax.md - Complete CDL syntax reference (503 lines)
  3. references/cql-queries.md - CQL query language guide
  4. references/csn-cqn-cxn.md - Core Schema Notation and query APIs
  5. references/data-privacy-security.md - GDPR and security implementation
  6. references/databases.md - Database configuration and deployment
  7. references/deployment-cf.md - Cloud Foundry deployment details
  8. references/event-handlers-nodejs.md - Node.js event handler patterns
  9. references/extensibility-multitenancy.md - SaaS multitenancy implementation
  10. references/fiori-integration.md - Fiori Elements and UI integration
  11. references/java-runtime.md - Java runtime support
  12. references/localization-temporal.md - i18n and temporal data
  13. references/nodejs-runtime.md - Node.js runtime reference
  14. references/plugins-reference.md - CAP plugins and extensions
  15. references/tools-complete.md - Complete CLI tools reference
  16. references/consuming-services-deployment.md - Service consumption patterns
  17. references/service-definitions.md - Service definition patterns
  18. references/event-handlers-patterns.md - Event handling patterns
  19. references/cql-patterns.md - CQL usage patterns
  20. references/cli-complete.md - Complete CLI reference
  21. references/mcp-integration.md - MCP server setup and usage guide *(new)*
  22. references/mcp-use-cases.md - Real-world MCP scenarios with quantified ROI *(new)*

Templates (8 files)

  1. templates/bookshop-schema.cds - Complete data model example
  2. templates/catalog-service.cds - Service definition template
  3. templates/fiori-annotations.cds - UI annotations example
  4. templates/mta.yaml - Multi-target application descriptor
  5. templates/package.json - Project configuration template
  6. templates/service-handler.js - Node.js handler template
  7. templates/service-handler.ts - TypeScript handler template
  8. templates/xs-security.json - XSUAA security configuration

Quick References

Common CLI Commands

cds init [name]           # Create project
cds add <feature>         # Add capability
cds watch                 # Dev server with live reload
cds serve                 # Start server
cds compile <model>       # Compile CDS to CSN/SQL/EDMX
cds deploy --to hana      # Deploy to HANA
cds build                 # Build for deployment
cds env                   # Show configuration
cds repl                  # Interactive REPL
cds version               # Show version info

Best Practices

DO ✓

  • Use cuid and managed aspects from @sap/cds/common
  • Keep domain models in db/, services in srv/, UI in app/
  • Use managed associations (let CAP handle foreign keys)
  • Design single-purpose services per use case
  • Start with SQLite, switch to HANA for production

DON'T ✗

  • Don't use SELECT * - be explicit about projections
  • Don't bypass CAP's query API with raw SQL
  • Don't create microservices prematurely
  • Don't hardcode credentials in config files
  • Don't write custom OData providers

Version Information

  • Skill Version: 2.1.2
  • CAP Version: @sap/cds 9.7.x
  • MCP Version: @cap-js/mcp-server 0.0.3+
  • LSP Version: @sap/cds-lsp 9.7.x
  • Last Verified: 2026-02-22
  • License: GPL-3.0

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

26.46%
按下载量换算379

Antigravity

21.66%
按下载量换算311

Gemini CLI

16.98%
按下载量换算243

windsurf

12.68%
按下载量换算182

OpenCode

8.66%
按下载量换算124

Codex

3.21%
按下载量换算46

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills