Overview
- Skill Key
- evan966890/feishu-app-setup
- Author
- evan966890
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/evan966890/feishu-app-setup
- Latest Commit SHA
- f2b60ece4848ce60609a39f5fb4fbae89a980b2d
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Feishu App Setup 技能。 若已安装,则直接安装 Feishu App Setup 技能。
# feishu-app-setup — 飞书开放平台应用自动化配置
> 用 agent-browser 自动完成飞书企业自建应用的创建、权限配置、事件订阅、改名和版本发布。
在飞书开放平台上配置一个 OpenClaw bot 应用需要大量重复的点击操作。这个技能把整个流程自动化了:创建应用、添加机器人能力、批量导入权限、配置事件订阅、修改应用名称、发布版本——全部通过 `agent-browser` 在浏览器中自动完成。
## 前置条件
- 已安装 `agent-browser` 技能
- 已登录飞书开放平台(https://open.feishu.cn)
- OpenClaw Gateway 正在运行(事件订阅需要活跃的 WebSocket 连接)
## 连接浏览器
### 方式一:连接已有浏览器(推荐)
OpenClaw Gateway 运行时通常已启动 Chrome debug 实例。直接连接已登录的浏览器,无需重新登录:
```bash
# 连接到已有 Chrome 实例(已有飞书 session)
agent-browser --cdp-endpoint http://localhost:9223 open "https://open.feishu.cn/app"
```
**优势**:无需扫码登录,直接可用。适合批量操作。
### 方式二:启动新浏览器
```bash
agent-browser --headed open "https://open.feishu.cn/app"
# 用户扫码登录后,后续操作均可自动化
```
## 完整配置流程
```
创建应用 → 添加机器人能力 → 权限导入 → 事件订阅 → 改名(可选)→ 版本发布 → OpenClaw 配置 → 配对审批
```
---
## Step 1: 创建应用
```bash
agent-browser find role button click --name "创建企业自建应用"
sleep 2
```
### 填写表单(React 受控组件)
飞书开放平台使用 React。`agent-browser fill @ref` 通常可以正常工作,但在 fill 失败时需要回退到原生 setter:
```javascript
// React 受控 input 的可靠填写方式
const s = Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, 'value').set;
s.call(inputElement, '目标值');
inputElement.dispatchEvent(new Event('input', {bubbles: true}));
```
### 提取凭证
```javascript
// App ID
const m = document.body.innerText.match(/cli_[a-f0-9]+/);
// App Secret — 先点眼睛图标显示
const eyeBtn = document.querySelectorAll('[data-icon="VisibleOutlined"]');
```
**注意**: App Secret 旁边有 3 个图标按钮:复制(CopyOutlined)、显示(VisibleOutlined)、重置(RefreshOutlined)。**千万别点重置**。
## Step 2: 添加机器人能力
```bash
agent-browser find text "...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.