SkillsGrove
SkillsGrove/Productivité/cklxx/elephant.ai/feishu-troubleshoot

feishu-troubleshoot

Installation

$npx skills add https://github.com/cklxx/elephant.ai --skill feishu-troubleshoot
$git clone --depth 1 https://github.com/cklxx/elephant.ai.git /tmp/elephant.ai && mkdir -p ~/.claude/skills && cp -r /tmp/elephant.ai/skills/feishu-troubleshoot ~/.claude/skills/feishu-troubleshoot
Installe pour moi cette Agent Skill : https://github.com/cklxx/elephant.ai/tree/bc94628f41b7daba20825b86069ae8e0fa83dc5e/skills/feishu-troubleshoot — lis d’abord son SKILL.md et ses scripts, et ne l’installe dans mon dossier de compétences qu’après avoir vérifié qu’elle est sûre.

Résumé

Description d’origine · MITWhen 飞书 plugin errors or auth failures occur → troubleshoot with FAQ and authorization diagnostics.
Le SKILL.md ci-dessous est reproduit depuis cklxx/elephant.ai (commit bc94628) sous licence MIT. Le texte est inchangé ; seules les métadonnées d’en-tête du fichier sont omises, les images sont affichées sous forme de liens et les fichiers très longs sont tronqués. Copyright 2025 cklxx. Licence : LICENSE. Seul le fichier d’instructions est affiché ; consultez le dépôt d’origine pour les éventuels scripts.

飞书问题排查

常见问题(FAQ)

授权相关

Token 过期

  • 现象:API 调用返回 99991668 或 99991672
  • 解决:重新执行 OAuth 授权流程

权限不足

  • 现象:API 返回 99991400 或 99991403
  • 解决:检查应用是否开通了所需的 API 权限,参考下方权限对照表

Refresh Token 过期

  • 现象:刷新 token 时返回错误
  • 解决:需要重新走完整 OAuth 流程

权限对照表

功能模块 所需权限 scope
日历读写 calendar:calendar, calendar:calendar:readonly
文档读写 docx:document, docx:document:readonly
多维表格 bitable:app, bitable:app:readonly
任务管理 task:task, task:task:readonly
通讯录 contact:user.base:readonly, contact:department.base:readonly
消息读写 im:message, im:message:readonly
云盘 drive:drive, drive:drive:readonly
Wiki wiki:wiki, wiki:wiki:readonly
邮件 mail:mailgroup, mail:mailgroup:readonly

API 调用问题

频率限制

  • 飞书 API 有频率限制,通常 100 次/秒
  • 批量操作建议串行 + 延迟 0.5-1 秒

字段值格式错误

  • 参考 skills/feishu-bitable/references/record-values.md

诊断命令

# 查看授权状态
python3 skills/feishu-cli/run.py '{"action":"auth","subcommand":"status"}'

# 查看可用模块
python3 skills/feishu-cli/run.py '{"action":"help","topic":"modules"}'
Voir le texte intégral de la licence (MIT)
MIT License

Copyright (c) 2025 cklxx

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.