Skills skill-payment-alipay

apiVersion: skill.ooder.net/v1

install
source · Clone the upstream repo
git clone https://github.com/oodercn/skills
manifest: skills/.archive/v0.x/skill-payment-alipay/skill.yaml
source content

apiVersion: skill.ooder.net/v1 kind: Skill

metadata: id: skill-payment-alipay name: 支付宝支付服务 version: 0.7.3 category: biz description: 支付宝支付服务,支持支付、退款、回调处理 author: ooder Team license: Apache-2.0 homepage: https://gitee.com/ooderCN/skills keywords: - payment - alipay - pay

spec: skillForm: DRIVER skillCategory: SERVICE sceneType: TRIGGER purposes: - PAYMENT - E_COMMERCE

ownership: independent

capability: address: 0x41 category: PAYMENT code: PAY_ALIPAY operations: [pay, refund, callback]

driverType: payment

runtime: language: java javaVersion: "8" framework: spring-boot

llmConfig: required: false defaultProvider: "deepseek" defaultModel: "deepseek-chat" capabilities: - chat - streaming - function-calling modelSelection: allowUserOverride: true availableProviders: - deepseek - openai - qianwen - volcengine - ollama functionCalling: enabled: true tools: - name: query_skill_capability description: "查询当前技能的能力和使用方法" parameters: type: object properties: capability: type: string description: "能力名称" detail: type: string enum: [brief, detailed, examples] default: "brief" - name: execute_mvel_action description: "通过MVEL表达式执行后台操作" parameters: type: object properties: expression: type: string description: "MVEL表达式" context: type: object - name: generate_ui_form description: "生成UI表单供用户填写" parameters: type: object properties: formType: type: string fields: type: array items: type: object - name: execute_batch_operation description: "执行批量操作" parameters: type: object properties: operation: type: string items: type: array items: type: object - name: convert_to_javascript description: "转换为JavaScript代码供用户使用" parameters: type: object properties: action: type: string parameters: type: object toolChoice: auto rateLimits: requestsPerMinute: 60 tokensPerMinute: 100000

supportedSceneTypes: - e-commerce - payment-processing - order-management

dynamicSceneTypes: true

autoStart: enabled: false

autoJoin: enabled: true matchSceneTypes: true maxSceneGroups: 10

dependencies: - id: skill-common version: ">=1.0.0" required: true description: "通用工具类" - id: skill-user-auth version: ">=0.7.0" required: false description: "用户认证服务(间接)"

providedInterfaces: - id: payment-service version: "1.0" description: "支付服务接口"

capabilities: - id: pay name: 支付 description: 发起支付请求 category: service - id: refund name: 退款 description: 发起退款请求 category: service - id: callback name: 回调处理 description: 处理支付回调 category: service - id: query name: 查询 description: 查询支付状态 category: service

endpoints: - path: /api/payment/alipay/pay method: POST description: 发起支付 capability: pay - path: /api/payment/alipay/refund method: POST description: 发起退款 capability: refund - path: /api/payment/alipay/callback method: POST description: 支付回调 capability: callback - path: /api/payment/alipay/query method: GET description: 查询支付 capability: query

config: required: - name: ALIPAY_APP_ID type: string description: 支付宝应用ID - name: ALIPAY_PRIVATE_KEY type: string description: 支付宝私钥 - name: ALIPAY_PUBLIC_KEY type: string description: 支付宝公钥 optional: - name: ALIPAY_GATEWAY type: string default: "https://openapi.alipay.com/gateway.do" description: 支付宝网关

resources: cpu: "50m" memory: "64Mi" storage: "10Mi"

offline: enabled: false

knowledge: documents: - id: overview name: 功能概述 path: README.md type: guide language: zh priority: high ragConfig: enabled: true indexName: "skill-payment-alipay-knowledge" embeddingModel: text-embedding-3-small chunkSize: 1000 chunkOverlap: 200 searchStrategy: hybrid topK: 5 threshold: 0.7