feishu-create-openclaw-app
简介
feishu-create-openclaw-app
原始描述
Automates creating and configuring a Feishu enterprise app for OpenClaw, including login, app setup, permission import, and credential extraction via browser...
通过你的 Agent 添加
安装目录:feishu-create-openclaw-app/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
Feishu App Creator Skill
Automates the creation of a Feishu (Lark) enterprise self-built application for OpenClaw integration via browser automation.
When to Use
- User wants to create a new Feishu application for OpenClaw
- Need to automate the Feishu developer console setup
- Requires browser-based OAuth login and app configuration
Important: Personal Account Limitations
⚠️ 飞书个人版权限限制
飞书个人版账号(非企业认证)只能开通有限的权限:
- ✅
docx:document:readonly- 文档只读权限 - ✅
im:message:send_as_bot- 机器人发消息权限 - ❌ 其他企业权限(如通讯录、审批、日历等)需要企业认证
解决方案:
- 使用个人版可用权限创建应用
- 如需完整权限,需要企业认证或联系管理员
Complete Workflow
Step 1: Open Feishu Developer Console
browser action=open url=https://open.feishu.cn/app
Step 2: Check Login Status
Take snapshot and check for "创建企业自建应用" button. If visible, user is logged in.
Step 3: Create App
Click "创建企业自建应用" button
Wait for dialog to open.
Fill form using real user input simulation:
// Click name input, type app name
browser action=act kind=click ref=<name_input_ref>
browser action=act kind=type ref=<name_input_ref> text="openclaw"
// Click description textarea, type description
browser action=act kind=click ref=<desc_textarea_ref>
browser action=act kind=type ref=<desc_textarea_ref> text="OpenClaw integration app"
// Click an icon (RobotFilled)
browser action=act kind=click ref=<icon_ref>
// Click Create button
browser action=act kind=click ref=<create_button_ref>
Step 4: Navigate to Permission Management
After app created, click "权限管理" in sidebar.
Step 5: Import Permissions
For Personal Account (Limited):
{
"scopes": {
"tenant": [
"docx:document:readonly",
"im:message:send_as_bot"
],
"user": [
"docx:document:readonly"
]
}
}
For Enterprise Account (Full):
{
"scopes": {
"tenant": [
"aily:file:read",
"aily:file:write",
"application:application.app_message_stats.overview:readonly",
"application:application:self_manage",
"application:bot.menu:write",
"cardkit:card:write",
"contact:user.employee_id:readonly",
"corehr:file:download",
"docs:document.content:read",
"event:ip_list",
"im:chat",
"im:chat.access_event.bot_p2p_chat:read",
"im:chat.members:bot_access",
"im:message",
"im:message.group_at_msg:readonly",
"im:message.group_msg",
"im:message.p2p_msg:readonly",
"im:message:readonly",
"im:message:send_as_bot",
"im:resource",
"sheets:spreadsheet",
"wiki:wiki:readonly"
],
"user": [
"aily:file:read",
"aily:file:write",
"im:chat.access_event.bot_p2p_chat:read"
]
}
}
Import Process:
-
Click "批量导入/导出权限" button
-
Clear editor using Ctrl+A then fill:
browser action=act kind=evaluate fn="() => {
const ta = document.querySelector('textarea[aria-label*=\"Editor\"]');
if(ta) {
ta.value = ''; // Clear first
const json = 'YOUR_JSON_HERE';
ta.value = json;
ta.dispatchEvent(new Event('input', {bubbles:true, composed:true}));
ta.dispatchEvent(new Event('change', {bubbles:true, composed:true}));
return 'done:' + ta.value.length;
}
return 'err';
}"
-
Click "下一步,确认新增权限"
-
Review permissions dialog:
- Shows "以下权限已申请,本次不会重复申请 (X)" for existing permissions
- Shows new permissions to be added
-
Click "申请开通"
Step 6: Extract Credentials
Navigate to "凭证与基础信息" page.
- App ID: Visible directly (e.g.,
cli_xxxxxxxxxxxx) - App Secret: Click eye icon to reveal, display full secret to user
Key Points
Form Elements
- 应用名称:
input[type="text"]in dialog - usetypeaction - 应用描述:
textareain dialog - usetypeaction - 图标:
[aria-label*="Filled"]icons in dialog - click to select
Permission Editor
- JSON Editor:
textarea[aria-label*="Editor"] - can use direct value assignment
- Clear First: Always clear with
ta.value = '' before filling
- Trigger Events: Must dispatch
input and change events
Account Type Detection
- Personal Account: Only 2-3 permissions can be enabled
- Enterprise Account: All permissions can be enabled
- Detection: Check permission list after import - if only 3 permissions show, it's personal account
Output
textarea[aria-label*="Editor"] - can use direct value assignmentta.value = '' before fillinginput and change events- Personal Account: Only 2-3 permissions can be enabled
- Enterprise Account: All permissions can be enabled
- Detection: Check permission list after import - if only 3 permissions show, it's personal account
Output
After successful creation:
✅ 应用创建成功!
应用名称:openclaw
App ID: cli_xxxxxxxxxxxx
App Secret: <FULL_SECRET>
状态:待上线
权限说明:
- 个人版账号:仅支持基础权限(文档只读、机器人发消息)
- 企业版账号:支持完整权限列表
下一步:
1. 复制 App Secret(立即保存,只显示一次)
2. 在 OpenClaw 配置中填入 App ID 和 App Secret
3. 创建应用版本并发布
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。