Feishu Doc
openclaw/openclaw
Feishu document read/write workflows. An agent skill from openclaw/openclaw.
自动为飞书文档添加用户权限。每次创建飞书文档(多维表格/文档/电子表格/文件夹/云空间文件/知识库节点等)后自动添加用户权限,或用户反馈文档无权限时补充添加权限。适用于 OpenClaw Agent。
$ npx skills add LeoYeAI/openclaw-master-skills --skill openclaw-feishu-docs-perm-auto -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills openclaw-feishu-docs-perm-auto --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/openclaw-feishu-docs-perm-auto .claude/skills/openclaw-feishu-docs-perm-auto && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "openclaw-feishu-docs-perm-auto" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/openclaw-feishu-docs-perm-auto into .claude/skills/openclaw-feishu-docs-perm-auto/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openclaw-feishu-docs-perm-auto", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/openclaw-feishu-docs-perm-autoType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add LeoYeAI/openclaw-master-skills --skill openclaw-feishu-docs-perm-auto -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills openclaw-feishu-docs-perm-auto --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/openclaw-feishu-docs-perm-auto .agents/skills/openclaw-feishu-docs-perm-auto && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "openclaw-feishu-docs-perm-auto" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/openclaw-feishu-docs-perm-auto into .agents/skills/openclaw-feishu-docs-perm-auto/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openclaw-feishu-docs-perm-auto", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill openclaw-feishu-docs-perm-auto -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills openclaw-feishu-docs-perm-auto --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/openclaw-feishu-docs-perm-auto .cursor/skills/openclaw-feishu-docs-perm-auto && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "openclaw-feishu-docs-perm-auto" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/openclaw-feishu-docs-perm-auto into .cursor/skills/openclaw-feishu-docs-perm-auto/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openclaw-feishu-docs-perm-auto", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/LeoYeAI/openclaw-master-skills.git --path skills/openclaw-feishu-docs-perm-auto--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add LeoYeAI/openclaw-master-skills --skill openclaw-feishu-docs-perm-auto -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills openclaw-feishu-docs-perm-auto --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/openclaw-feishu-docs-perm-auto .gemini/skills/openclaw-feishu-docs-perm-auto && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "openclaw-feishu-docs-perm-auto" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/openclaw-feishu-docs-perm-auto into .gemini/skills/openclaw-feishu-docs-perm-auto/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openclaw-feishu-docs-perm-auto", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install LeoYeAI/openclaw-master-skills openclaw-feishu-docs-perm-autoInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add LeoYeAI/openclaw-master-skills --skill openclaw-feishu-docs-perm-auto -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/openclaw-feishu-docs-perm-auto .github/skills/openclaw-feishu-docs-perm-auto && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "openclaw-feishu-docs-perm-auto" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/openclaw-feishu-docs-perm-auto into .github/skills/openclaw-feishu-docs-perm-auto/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openclaw-feishu-docs-perm-auto", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add LeoYeAI/openclaw-master-skills --skill openclaw-feishu-docs-perm-auto -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install LeoYeAI/openclaw-master-skills openclaw-feishu-docs-perm-auto --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/openclaw-feishu-docs-perm-auto .opencode/skills/openclaw-feishu-docs-perm-auto && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "openclaw-feishu-docs-perm-auto" agent skill from https://github.com/LeoYeAI/openclaw-master-skills/tree/main/skills/openclaw-feishu-docs-perm-auto into .opencode/skills/openclaw-feishu-docs-perm-auto/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "openclaw-feishu-docs-perm-auto", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
openclaw-feishu-docs-perm-auto自动为飞书文档添加用户权限。每次创建飞书文档(多维表格/文档/电子表格/文件夹/云空间文件/知识库节点等)后自动添加用户权限,或用户反馈文档无权限时补充添加权限。适用于 OpenClaw Agent。
Openclaw Feishu Docs Perm Auto is an agent skill from LeoYeAI/openclaw-master-skills. 自动为飞书文档添加用户权限。每次创建飞书文档(多维表格/文档/电子表格/文件夹/云空间文件/知识库节点等)后自动添加用户权限,或用户反馈文档无权限时补充添加权限。适用于 OpenClaw Agent。
Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `README.md` and `_meta.json`).
It sits in Productivity & Automation, covering Messaging and chat bots. It works with Feishu (Lark). The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
curlFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
xxx.feishu.cnopen.feishu.cnFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
FILE_TOKENAPP_SECRETTENANT_TOKENCACHED_TENANT_TOKENFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Openclaw Feishu Docs Perm Auto loads about 3.2k tokens when it runs. Until then it costs about 33 tokens; SKILL.md has 540 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 540 words, ~3,173 tokens.
.claude/skills/openclaw-feishu-docs-perm-auto/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.🎯 一句话总结:飞书应用创建的文档,用户默认无权限。这个 skill 帮你自动添加权限。
| 条件 | 说明 |
|---|---|
| 飞书开发者账号 | 需要有飞书开放平台的开发者权限 |
| 企业自建应用 | 已创建或有权创建飞书应用 |
| 应用权限 | 应用需开通 docs:permission.member:create 权限 |
| 变量名 | 来源 | 用途 |
|---|---|---|
$APP_ID | 配置文件 channels.feishu.appId | 应用标识 |
$APP_SECRET | 配置文件 channels.feishu.appSecret | 应用密钥 |
$OWNER_OPEN_ID | 配置文件或会话上下文 | 权限接收者 |
$TENANT_TOKEN | API 获取 | 请求鉴权 |
$FILE_TOKEN | 创建返回或 URL 解析 | 文档标识 |
$DOC_TYPE | URL 路径识别 | 文档类型 |
配置文件位置:~/.openclaw/openclaw.json
在 channels.feishu 下查找:
| 字段名 | 说明 | 示例值 | 必需性 |
|---|---|---|---|
appId | 飞书应用 ID | cli_xxxxxxxx | ✅ 必需 |
appSecret | 飞书应用密钥 | xxxxxxxx | ✅ 必需 |
ownerOpenId | 用户的 open_id | ou_xxx | ⚪ 可选* |
*
ownerOpenId在配置文件中可选,但执行时必须有值。若配置文件缺失,从会话上下文提取(格式user:ou_xxx→ou_xxx)。
配置示例:
{
"channels": {
"feishu": {
"enabled": true,
"appId": "cli_xxxxxxxx",
"appSecret": "xxxxxxxx",
"ownerOpenId": "ou_xxx"
}
}
}使用 feishu_app_scopes() 查询当前飞书应用已开通的权限列表。
检查返回结果中是否包含 docs:permission.member:create:
💡 如检查出有权限,后续可跳过此步骤。
根据检查结果,按以下流程处理:
┌─────────────────────────────────────────────────────────┐
│ 检查 appId + appSecret │
│ ├─ ❌ 缺失 → [配置引导流程 A] │
│ └─ ✅ 完整 ↓ │
│ 检查应用权限 docs:permission.member:create │
│ ├─ ❌ 缺失 → [配置引导流程 C] │
│ └─ ✅ 完整 ↓ │
│ 检查 ownerOpenId │
│ ├─ ✅ 配置文件有 → 进入第二步 │
│ ├─ ✅ 会话上下文有 → 提取使用,进入第二步 │
│ └─ ❌ 都没有 → [配置引导流程 B] │
└─────────────────────────────────────────────────────────┘明确每个步骤应使用的工具,确保 Agent 能正确执行
| 步骤 | 操作 | 工具 | 说明 |
|---|---|---|---|
| 1.1 | 读取配置文件 | read | 读取 ~/.openclaw/openclaw.json |
| 1.3 | 检查应用权限 | feishu_app_scopes | 查询已开通权限列表 |
| 2.2 | 获取 tenant_access_token | exec | 执行 curl 命令请求 API |
| 2.3 | 解析文档 token | 内置逻辑 | 从 URL 或返回值中提取 |
| 2.4 | 添加用户权限 | exec | 执行 curl 命令请求 API |
| 配置写入 | 保存 ownerOpenId | edit | 更新 openclaw.json |
工具调用示例:
# 读取配置文件
read("~/.openclaw/openclaw.json")
# 检查应用权限
feishu_app_scopes()
# 获取 tenant_access_token
exec('curl -s -X POST "https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal" ...')
# 添加权限
exec('curl -s -X POST "https://open.feishu.cn/open-apis/drive/v1/permissions/..." ...')
# 保存配置
edit("~/.openclaw/openclaw.json", oldText, newText)前置条件:第一步检查全部通过
工具:read
APP_ID="读取到的appId"
APP_SECRET="读取到的appSecret"
OWNER_OPEN_ID="读取到的ownerOpenId"工具:exec
进度提示:[1/4] 获取访问令牌...
请求:
curl -s -X POST "https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal" \
-H "Content-Type: application/json" \
-d "{
\"app_id\": \"$APP_ID\",
\"app_secret\": \"$APP_SECRET\"
}"成功返回:
{
"code": 0,
"msg": "ok",
"tenant_access_token": "xxxx",
"expire": 5535
}失败返回:
{
"code": 10003,
"msg": "app id or app secret is invalid"
}处理:
tenant_access_token,继续下一步token 缓存策略:
| token 类型 | 有效期 | 缓存建议 |
|---|---|---|
tenant_access_token | 约 2 小时 | 缓存至会话变量,过期前 5 分钟刷新 |
缓存实现:
CACHED_TENANT_TOKEN, TOKEN_EXPIRE_TIMEnow < TOKEN_EXPIRE_TIME - 300,直接使用缓存进度提示:[2/4] 解析文档 token...
来源:
URL 解析规则:
| 文档类型 | URL 示例 |
|---|---|
| 文件夹 | https://xxx.feishu.cn/drive/folder/【token】 |
| 文件 | https://xxx.feishu.cn/file/【token】 |
| 旧版文档 | https://xxx.feishu.cn/docs/【token】 |
| 新版文档 | https://xxx.feishu.cn/docx/【token】 |
| 电子表格 | https://xxx.feishu.cn/【token】 |
| 多维表格 | https://xxx.feishu.cn/base/【token】 |
| 知识空间 | https://xxx.feishu.cn/wiki/settings/【token】 |
| 知识库节点 | https://xxx.feishu.cn/wiki/【token】 |
⚠️ 复制 URL 时注意删除末尾多余的
#符号。
自动识别 doc_type:
| URL 路径特征 | doc_type |
|---|---|
/drive/folder/ | folder |
/file/ | file |
/docs/ | doc |
/docx/ | docx |
/base/ | bitable |
/wiki/ | wiki |
| 其他(根路径) | sheet |
识别逻辑:
? 和 # 后的内容)变量定义:
FILE_TOKEN = 获取到的云文档 tokenDOC_TYPE = 识别到的文档类型工具:exec
进度提示:[3/4] 添加用户权限...
请求:
curl -s -X POST "https://open.feishu.cn/open-apis/drive/v1/permissions/{FILE_TOKEN}/members/batch_create?type={DOC_TYPE}" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {tenant_access_token}" \
-d "{
\"members\": [{
\"member_type\": \"openid\",
\"member_id\": \"$OWNER_OPEN_ID\",
\"perm\": \"full_access\"
}]
}"参数说明:
| 参数 | 来源 | 示例 |
|---|---|---|
{FILE_TOKEN} | 创建文档时返回或 URL 解析 | xxxxx |
{DOC_TYPE} | URL 路径自动识别 | bitable |
{tenant_access_token} | 上一步获取 | t-xxx |
$OWNER_OPEN_ID | ownerOpenId | ou_xxx |
doc_type 可选值:
| 值 | 文档类型 |
|---|---|
bitable | 多维表格 |
docx | 新版文档 |
doc | 旧版文档 |
sheet | 电子表格 |
folder | 文件夹 |
file | 云空间文件 |
wiki | 知识库节点 |
成功返回:
{
"code": 0,
"msg": "Success",
"data": {
"members": [{
"member_id": "xxxx",
"member_type": "openid",
"perm": "full_access"
}]
}
}进度提示:[4/4] 完成!
成功时:
✅ 权限添加成功!
📄 文档:{文档标题或 token}
🔗 链接:{文档 URL}
👤 权限:完整权限 (full_access)
你现在可以直接访问和编辑这个文档了。
如果配置文件中没有ownerOpenId 并询问 是否需要将 ownerOpenId 写入配置文件中失败时:
❌ 权限添加失败
原因:{错误信息}
解决方案:{具体步骤}
需要帮助?请提供以上信息。用户:帮我创建一个多维表格叫「项目进度追踪」
Agent 执行流程:
[1/3] 创建多维表格...
→ 调用 feishu_bitable_create_app(name="项目进度追踪")
→ 返回 app_token: "bascnxxx"
[2/3] 添加用户权限...
→ 触发 feishu-perm-auto skill
→ 检查配置:appId ✓ appSecret ✓ ownerOpenId ✓
→ 获取 tenant_access_token
→ 调用权限 API 添加 full_access
[3/3] 完成!Agent 回复:
✅ 多维表格「项目进度追踪」已创建!
🔗 链接:https://xxx.feishu.cn/base/bascnxxx
🔐 已自动为你添加完整权限,可直接访问和编辑用户:这个文档我打不开,提示没权限 https://xxx.feishu.cn/docx/doxcnxxx
Agent 执行流程:
[1/3] 解析文档信息...
→ URL 解析:token=doxcnxxx, doc_type=docx
[2/3] 检查配置并添加权限...
→ 检查配置:appId ✓ appSecret ✓ ownerOpenId ✓
→ 获取 tenant_access_token
→ 调用权限 API 添加 full_access
[3/3] 完成!Agent 回复:
✅ 权限添加成功!
📄 文档:doxcnxxx
🔗 链接:https://xxx.feishu.cn/docx/doxcnxxx
👤 权限:完整权限 (full_access)
你现在可以直接访问和编辑这个文档了。用户:帮我创建一个飞书文档
Agent 执行流程:
[1/2] 检查配置...
→ 读取 ~/.openclaw/openclaw.json
→ 发现 channels.feishu.appId 缺失
[2/2] 引导配置...Agent 回复:
⚠️ 还没配置飞书应用凭证,需要先设置一下:
📱 获取飞书应用凭证:
1. 打开浏览器,访问:https://open.feishu.cn/app
2. 登录你的飞书账号
3. 点击「创建企业自建应用」或选择已有应用
4. 在左侧菜单找到「凭证与基础信息」
5. 复制以下内容:
- App ID(cli_ 开头的字符串)
- App Secret(点击「查看」后显示)
请把 App ID 和 App Secret 发给我,格式如下:
appId: cli_xxxxxxxx
appSecret: xxxxxxxx用户回复后:
用户:appId: cli_aabbccdd
appSecret: 1234567890abcdef
Agent:
[1/2] 验证凭证...
→ 获取 tenant_access_token 成功 ✓
[2/2] 保存配置...
→ 更新 ~/.openclaw/openclaw.jsonAgent 回复:
✅ 飞书应用配置成功!
现在可以正常使用飞书功能了。需要我帮你创建文档吗?用户:给这个文档加权限 https://xxx.feishu.cn/base/bascnxxx
Agent 执行流程:
[1/3] 解析文档信息...
→ token=bascnxxx, doc_type=bitable
[2/3] 添加权限...
→ 调用 API 返回错误码 99991661(成员已存在)
[3/3] 幂等处理...
→ 视为成功,无需重复添加Agent 回复:
✅ 权限已存在!
📄 文档:bascnxxx
🔗 链接:https://xxx.feishu.cn/base/bascnxxx
👤 权限:完整权限 (full_access)
你已经有这个文档的完整权限了。当第一步检查发现配置缺失时,按以下流程引导用户配置。
📱 获取飞书应用凭证:
1. 打开浏览器,访问:https://open.feishu.cn/app
2. 登录你的飞书账号
3. 点击「创建企业自建应用」或选择已有应用
4. 在左侧菜单找到「凭证与基础信息」
5. 复制以下内容:
- App ID(cli_ 开头的字符串)
- App Secret(点击「查看」后显示)
请把 App ID 和 App Secret 发给我,格式如下:
appId: cli_xxxxxxxx
appSecret: xxxxxxxx优先从会话上下文提取:若上下文中出现 user:ou_xxx 格式,直接提取 ou_xxx 使用。
否则引导用户获取:
user_id_type 设置为 open_id详见:https://open.feishu.cn/document/faq/trouble-shooting/how-to-obtain-openid
用户回复后:
ou_ 开头)⚠️ 在使用前,还需要给应用添加权限:
1. 在飞书开放平台,点击左侧「权限管理」
2. 搜索并开通以下权限:
- docs:permission.member:create (添加云文档协作者)
3. 点击「发布版本」使权限生效
如果权限显示「待确认」,需要联系企业管理员审批。| 权限值 | 中文名 | 能做什么 | 适用场景 |
|---|---|---|---|
view | 只读 | 只能查看,不能修改 | 分享给他人查看 |
edit | 可编辑 | 可以修改内容,不能管理权限 | 协作编辑 |
full_access | 完整权限 | 可以编辑、管理权限、删除 | 文档所有者(推荐) |
💡 建议:给用户添加
full_access权限,这样用户可以完全控制文档。
权限选择建议:
| 场景 | 推荐权限 | 原因 |
|---|---|---|
| 用户自己的文档 | full_access | 完全控制 |
| 协作编辑 | edit | 避免误删 |
| 只读分享 | view | 安全最小化 |
💡 默认使用
full_access,但可在执行时询问用户需求。
| 错误码 | 错误信息 | 原因 | 解决方案 | 处理动作 |
|---|---|---|---|---|
10003 | app id or app secret is invalid | App ID 或 App Secret 错误 | 检查配置,确保复制正确 | 重新配置后重试 |
99991661 | 成员已存在 | 用户已有权限 | 视为成功,无需处理 | 直接返回成功 |
99991663 | Invalid access token | token 过期或无效 | 重新获取 tenant_access_token | 重新执行 2.2 |
99991664 | Permission denied | 应用没有权限 | 引导配置应用权限 | 跳转配置引导 C |
99991600 | token not found | 文档 token 不存在 | 检查 file_token 是否正确 | 确认后重试 |
[1/4] [2/4] [3/4] [4/4]***)敏感信息脱敏:
| 信息类型 | 原始值 | 脱敏后 |
|---|---|---|
| App Secret | abc123xyz789 | abc1*** |
| tenant_access_token | t-xxx123456 | t-xxx*** |
| ownerOpenId | ou_abc123 | ou_abc*** |
脱敏实现:
def mask_secret(s, show=4):
return s[:show] + '***' if len(s) > show else '***'┌─────────────────────────────────────────────────────────┐
│ 飞书权限添加快速参考 │
├─────────────────────────────────────────────────────────┤
│ 1. 检查配置:~/.openclaw/openclaw.json │
│ - appId (必需) │
│ - appSecret (必需) │
│ - ownerOpenId (可选,会话上下文补充) │
│ - 应用权限: docs:permission.member:create (必需) │
├─────────────────────────────────────────────────────────┤
│ 2. 获取 tenant_access_token: │
│ POST /auth/v3/tenant_access_token/internal │
│ Body: {app_id, app_secret} │
├─────────────────────────────────────────────────────────┤
│ 3. 获取云文档 token: │
│ 创建时返回 或 从 URL 解析 │
│ 自动识别 doc_type: /base/→bitable, /docx/→docx... │
├─────────────────────────────────────────────────────────┤
│ 4. 添加权限: │
│ POST /drive/v1/permissions/{token}/members │
│ Header: Authorization: Bearer {token} │
│ Body: {members: [{member_type, member_id, perm}]} │
├─────────────────────────────────────────────────────────┤
│ 文档类型: │
│ bitable | docx | doc | sheet | folder | file | wiki │
│ 权限级别:view | edit | full_access │
└─────────────────────────────────────────────────────────┘© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files in skills/openclaw-feishu-docs-perm-auto of LeoYeAI/openclaw-master-skills.
Open the folder on GitHubat commit e5199b5
Openclaw Feishu Docs Perm Auto next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Openclaw Feishu Docs Perm Auto this skillLeoYeAI/openclaw-master-skills | 2.2k | — | ~3.2k | Automated safety check: Pass | MIT | |
| Feishu Docopenclaw/openclaw | 392k | — | ~516 | Automated safety check: Pass | MIT | |
| Feishu Docraucvr/Group-Goki | 112 | 3 repos | ~592 | Automated safety check: Pass | MIT | |
| Feishu Driveraucvr/Group-Goki | 112 | 3 repos | ~587 | Automated safety check: Pass | MIT | |
| Feishu Permraucvr/Group-Goki | 112 | 3 repos | ~630 | Automated safety check: Pass | MIT | |
| Feishu Safety GuideSafeAI-Lab-X/ClawKeeper | 1k | — | ~3.6k | Automated safety check: Pass | None |
openclaw/openclaw
Feishu document read/write workflows. An agent skill from openclaw/openclaw.
raucvr/Group-Goki
Feishu document read/write operations. An agent skill from raucvr/Group-Goki.
raucvr/Group-Goki
Feishu cloud storage file management. An agent skill from raucvr/Group-Goki.
raucvr/Group-Goki
Feishu permission management for documents and files. An agent skill from raucvr/Group-Goki.
SafeAI-Lab-X/ClawKeeper
One-click deployment Skill for Feishu security governance and message anti-data-leakage guide, responsible for Feishu message security, credential protection, permission auditing, interaction…
y49/tlive
tlive — remote approvals (Telegram/Feishu/web), live web terminal, and session monitoring for Claude Code / Codex.
LeoYeAI/openclaw-master-skills
Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.
LeoYeAI/openclaw-master-skills
Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.
LeoYeAI/openclaw-master-skills
Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.
LeoYeAI/openclaw-master-skills
Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.
LeoYeAI/openclaw-master-skills
Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.
LeoYeAI/openclaw-master-skills
Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.
Works with
Categories
自动为飞书文档添加用户权限。每次创建飞书文档(多维表格/文档/电子表格/文件夹/云空间文件/知识库节点等)后自动添加用户权限,或用户反馈文档无权限时补充添加权限。适用于 OpenClaw Agent。. Openclaw Feishu Docs Perm Auto is an agent skill from LeoYeAI/openclaw-master-skills.
Openclaw Feishu Docs Perm Auto fits situations like: tasks that involve Messaging and chat bots.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill openclaw-feishu-docs-perm-auto -a claude-code`. Or copy the skill folder (skills/openclaw-feishu-docs-perm-auto in LeoYeAI/openclaw-master-skills) into .claude/skills/openclaw-feishu-docs-perm-auto in your project. Claude Code loads it when a task matches its description.
Run `npx skills add LeoYeAI/openclaw-master-skills --skill openclaw-feishu-docs-perm-auto -a codex`. Or copy the skill folder (skills/openclaw-feishu-docs-perm-auto in LeoYeAI/openclaw-master-skills) into .agents/skills/openclaw-feishu-docs-perm-auto in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill openclaw-feishu-docs-perm-auto -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/openclaw-feishu-docs-perm-auto, .gemini/skills/openclaw-feishu-docs-perm-auto, .github/skills/openclaw-feishu-docs-perm-auto and .opencode/skills/openclaw-feishu-docs-perm-auto in your project.
Going by SKILL.md and its folder, Openclaw Feishu Docs Perm Auto needs the command-line tools its instructions call (curl) and credentials named FILE_TOKEN, APP_SECRET, TENANT_TOKEN and CACHED_TENANT_TOKEN. Our summary lists: A credential in APP_SECRET; A credential in TENANT_TOKEN.
SKILL.md names 2 domains. In commands or code: xxx.feishu.cn and open.feishu.cn; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Openclaw Feishu Docs Perm Auto is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Openclaw Feishu Docs Perm Auto: Feishu Doc (openclaw/openclaw, 392k stars), Feishu Doc (raucvr/Group-Goki, 112 stars), Feishu Drive (raucvr/Group-Goki, 112 stars) and Feishu Perm (raucvr/Group-Goki, 112 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,161 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.
Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.