← 返回 Skills 市场
caigang78

Feishu Backup

作者 caigang78 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
341
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install feishu-backup
功能描述
Back up files uploaded to a Feishu group chat to the local doc/backup directory. Supports smart matching: multiple files, filename prefix/keyword filter, fil...
使用说明 (SKILL.md)

Feishu Backup Skill

Backup directory: ~/.openclaw/doc/backup/

Strict rules (must be followed — violations are treated as critical errors):

  • Do not use write/edit tools to create or modify any files
  • Do not create Python scripts, test scripts, or any auxiliary files
  • Do not generate, guess, or fabricate file contents and write them to disk — even if the filename is known
  • Only run feishu_backup.sh via exec to download real files
  • Must verify that the script outputs SUCCESS: /path/to/file and that the file exists with size > 0
  • If the script reports ERROR, inform the user honestly — do not fabricate a success status

Smart Matching: Interpret Intent → Set Variables → Call Script

The agent interprets the user's natural language, determines intent, sets the corresponding environment variables, then calls the script.

User says Environment variables
"Back up the latest file" / "Back up this file" (default, no variables needed)
"Back up the last two files" / "Back up these two files" LIMIT=2
"Back up files starting with report" NAME_PREFIX=report
"Back up files with contract in the name" NAME_CONTAINS=contract
"Back up the PDF I just uploaded" / "Back up the PDF from just now" MINUTES=5 FILE_TYPE=pdf
"Back up the video I just uploaded" MINUTES=5 FILE_TYPE=video
"Back up the image I just uploaded" MINUTES=5 FILE_TYPE=image
"Back up the last three files" LIMIT=3 MINUTES=10
"Back up all PDFs from the last 5 minutes" MINUTES=5 FILE_TYPE=pdf LIMIT=5

FILE_TYPE values: pdf / image / video / doc / file (default — matches all)


Invocation

# Default: back up latest file
\x3CSKILL_DIR>/feishu_backup.sh

# Back up the latest 2 files
LIMIT=2 \x3CSKILL_DIR>/feishu_backup.sh

# Back up files whose name starts with "report"
NAME_PREFIX=report \x3CSKILL_DIR>/feishu_backup.sh

# Back up PDFs uploaded in the last 5 minutes
MINUTES=5 FILE_TYPE=pdf \x3CSKILL_DIR>/feishu_backup.sh

# Back up up to 3 files from the last 10 minutes
LIMIT=3 MINUTES=10 \x3CSKILL_DIR>/feishu_backup.sh

Script prints SUCCESS: /path/to/file for each file on success.

Important: The script downloads real binary files from the Feishu API. The downloaded file size should match the original. If a backup file is unexpectedly small (e.g. a few KB), something went wrong — report the error to the user honestly.


List Backups

ls -lht ~/.openclaw/doc/backup/
功能分析
Type: OpenClaw Skill Name: feishu-backup Version: 1.0.0 The skill relies on external dependencies (feishu_downloader.py and feishu_args.sh) located in a shared directory outside the analyzed bundle, which prevents a complete security assessment of the execution logic. Furthermore, the design pattern of mapping natural language user input directly to environment variables (e.g., NAME_PREFIX, NAME_CONTAINS) that are then sourced and executed within a shell script (feishu_backup.sh) creates a high risk of command injection if the shared scripts do not strictly sanitize these inputs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install feishu-backup
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /feishu-backup 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the Feishu Backup skill. - Allows users to back up files from Feishu group chats to a local backup directory. - Supports smart matching with multiple filters: file amount, filename prefix/keyword, file type (pdf/image/video), and recent time ranges. - Activated by user requests such as "back up the PDF I just sent to Feishu". - Downloads files only via `feishu_backup.sh`, with strict verification of successful output. - Provides clear feedback in case of backup errors or failed downloads.
元数据
Slug feishu-backup
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Feishu Backup 是什么?

Back up files uploaded to a Feishu group chat to the local doc/backup directory. Supports smart matching: multiple files, filename prefix/keyword filter, fil... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 341 次。

如何安装 Feishu Backup?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install feishu-backup」即可一键安装,无需额外配置。

Feishu Backup 是免费的吗?

是的,Feishu Backup 完全免费(开源免费),可自由下载、安装和使用。

Feishu Backup 支持哪些平台?

Feishu Backup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Feishu Backup?

由 caigang78(@caigang78)开发并维护,当前版本 v1.0.0。

💬 留言讨论