← Back to Skills Marketplace
caigang78

Feishu Backup

by caigang78 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
341
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install feishu-backup
Description
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...
README (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/
Capability Analysis
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install feishu-backup
  3. After installation, invoke the skill by name or use /feishu-backup
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug feishu-backup
Version 1.0.0
License
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 341 downloads so far.

How do I install Feishu Backup?

Run "/install feishu-backup" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Feishu Backup free?

Yes, Feishu Backup is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Feishu Backup support?

Feishu Backup is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Feishu Backup?

It is built and maintained by caigang78 (@caigang78); the current version is v1.0.0.

💬 Comments