Skills skill-org-feishu
apiVersion: skill.ooder.net/v1
git clone https://github.com/oodercn/skills
skills/_drivers/org/skill-org-feishu/skill.yamlapiVersion: skill.ooder.net/v1 kind: Skill
metadata: id: skill-org-feishu name: Feishu Organization Service version: "3.0.1" description: 飞书组织数据集成服务,包括组织架构同步、用户认证、扫码登录,支持飞书CLI集成 author: Ooder Team license: Apache-2.0 homepage: https://gitee.com/ooderCN/skills/tree/main/skills/_drivers/org/skill-org-feishu repository: https://gitee.com/ooderCN/skills.git keywords: - feishu - lark - organization - enterprise - authentication - qrcode-auth - cli
spec: skillForm: DRIVER skillCategory: SERVICE sceneType: TRIGGER purposes: - TEAM - ORG_INTEGRATION
ownership: platform
capability: category: org code: ORG_FEISHU operations: [auth, org-sync, user-query, qrcode-login, cli-integration]
runtime: language: java javaVersion: "8" framework: spring-boot mainClass: net.ooder.skill.org.feishu.FeishuOrgSkillApplication
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: sync_organization description: "从飞书同步组织架构" parameters: type: object properties: syncType: type: string enum: [full, users, departments] default: "full" - name: search_user description: "搜索飞书用户" parameters: type: object properties: keyword: type: string description: "搜索关键词(姓名/邮箱/手机号)" departmentId: type: string description: "部门ID(可选)" - name: generate_auth_qrcode description: "生成飞书扫码登录二维码" parameters: type: object properties: withRecommend: type: boolean default: true description: "是否使用推荐权限范围"
capabilities: - id: org-data-read name: Org Data Read description: 组织数据读取 category: organization - id: user-auth name: User Authentication description: 用户认证 category: authentication - id: qrcode-login name: QR Code Login description: 扫码登录 category: authentication - id: org-sync name: Organization Sync description: 组织架构同步 category: organization - id: user-search name: User Search description: 用户搜索 category: organization
scenes: - name: auth description: 认证场景 capabilities: - user-auth - qrcode-login - name: org-sync description: 组织同步场景 capabilities: - org-data-read - org-sync - name: user-search description: 用户搜索场景 capabilities: - org-data-read - user-search
dependencies: - id: skill-org-base version: ">=2.3.0" required: true description: "组织基础服务" - id: skill-user-auth version: ">=2.3.0" required: false description: "用户认证服务(间接)" - id: skill-common version: ">=2.3.0" required: false description: "通用工具类(间接)"
config: required: - name: FEISHU_APP_ID type: string description: 飞书应用ID - name: FEISHU_APP_SECRET type: string secret: true description: 飞书应用Secret optional: - name: FEISHU_API_BASE_URL type: string default: https://open.feishu.cn/open-apis description: 飞书API基础URL - name: FEISHU_AUTH_REDIRECT_URI type: string default: http://localhost:8083/api/v1/org/feishu/auth/callback description: 扫码登录回调地址
endpoints: - path: /api/v1/org/feishu/auth/qrcode method: POST description: 生成扫码登录二维码 capability: qrcode-login - path: /api/v1/org/feishu/auth/login method: POST description: 生成推荐权限扫码二维码 capability: qrcode-login - path: /api/v1/org/feishu/auth/callback method: GET description: 扫码登录回调 capability: qrcode-login - path: /api/v1/org/feishu/sync/all method: POST description: 全量同步组织架构 capability: org-sync - path: /api/v1/org/feishu/sync/users method: POST description: 同步用户 capability: org-sync - path: /api/v1/org/feishu/sync/departments method: POST description: 同步部门 capability: org-sync - path: /api/v1/org/feishu/users method: GET description: 获取用户列表 capability: org-data-read - path: /api/v1/org/feishu/users/search method: GET description: 搜索用户 capability: user-search - path: /api/v1/org/feishu/departments method: GET description: 获取部门列表 capability: org-data-read - path: /api/v1/org/feishu/tree method: GET description: 获取组织树 capability: org-data-read