Skills resources
apiVersion: skill.ooder.net/v1
git clone https://github.com/oodercn/skills
skills/_system/skill-share/src/main/resources/skill.yamlapiVersion: skill.ooder.net/v1 kind: Skill
metadata: id: skill-share name: 能力分享服务 version: 3.0.3 description: 提供能力分享、委派、接收功能,整合 SE SDK 的 ShareService 和 TodoService author: ooder Team type: system-service license: Apache-2.0
spec: skillForm: PROVIDER type: system-skill ownership: platform
capability: address: 0x3A category: SYSTEM code: SYS_SHARE operations: [share, delegate, receive, accept, reject]
runtime: language: java javaVersion: "21" framework: spring-boot
dependencies: - skillId: skill-common version: ">=3.0.5" required: true - skillId: scene-engine version: ">=3.0.3" required: true
config: shareDir: ./.ooder/shared delegatedDir: ./.ooder/delegated receivedDir: ./.ooder/received shareCodeLength: 8 defaultExpiresDays: 7
routes: - path: /api/v1/capability/share method: POST controllerClass: net.ooder.skill.share.controller.CapabilityShareController methodName: shareCapability description: 分享能力给其他用户
- path: /api/v1/capability/delegate method: POST controllerClass: net.ooder.skill.share.controller.CapabilityShareController methodName: delegateCapability description: 委派能力给其他用户 - path: /api/v1/capability/shared method: GET controllerClass: net.ooder.skill.share.controller.CapabilityShareController methodName: getSharedCapabilities description: 获取我分享的能力列表 - path: /api/v1/capability/delegated method: GET controllerClass: net.ooder.skill.share.controller.CapabilityShareController methodName: getDelegatedCapabilities description: 获取我委派的能力列表 - path: /api/v1/capability/received method: GET controllerClass: net.ooder.skill.share.controller.CapabilityShareController methodName: getReceivedCapabilities description: 获取我收到的能力列表 - path: /api/v1/capability/share/{shareId} method: GET controllerClass: net.ooder.skill.share.controller.CapabilityShareController methodName: getShareDetail description: 获取分享详情 - path: /api/v1/capability/share/{shareId} method: DELETE controllerClass: net.ooder.skill.share.controller.CapabilityShareController methodName: cancelShare description: 取消分享 - path: /api/v1/capability/share/code/{shareCode} method: GET controllerClass: net.ooder.skill.share.controller.CapabilityShareController methodName: getShareByCode description: 通过分享码获取分享详情 - path: /api/v1/capability/share/validate method: POST controllerClass: net.ooder.skill.share.controller.CapabilityShareController methodName: validateShare description: 验证分享码 - path: /api/v1/capability/received/{shareId}/accept method: POST controllerClass: net.ooder.skill.share.controller.CapabilityShareController methodName: acceptShare description: 接受分享 - path: /api/v1/capability/received/{shareId}/reject method: POST controllerClass: net.ooder.skill.share.controller.CapabilityShareController methodName: rejectShare description: 拒绝分享
permissions: - name: capability:share description: 分享能力 - name: capability:delegate description: 委派能力 - name: capability:receive description: 接收能力