Feishu Backup for Openclaw

A smart automation skill that intelligently downloads files from Feishu group chats to a local directory using natural language intent.

caigang78
v1.0.0
Mar 8, 2026
0
1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install feishu-backup

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install feishu-backup using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Feishu Backup?

The Feishu Backup skill is an essential integration for teams using Feishu for collaboration, allowing users to bridge the gap between cloud-based chat and local file management. By utilizing this within the Openclaw Skills framework, developers can automate the retrieval of documents, images, and videos based on metadata like upload time, file type, or specific naming conventions.

This skill prioritizes data integrity and security by utilizing a dedicated execution script rather than generating file content. It ensures that binary files are fetched directly from the source, providing a reliable way to maintain local archives of critical project assets shared in team conversations.

Feishu Backup Use Cases

  • Automatically saving the most recent document uploaded to a Feishu group chat.
  • Filtering and downloading all PDF reports sent within the last five minutes.
  • Bulk downloading files that contain specific keywords or prefixes in their filenames.
  • Archiving media files like videos and images from chat threads directly to local storage.

How Feishu Backup Works

  1. The AI agent analyzes a natural language command to determine the user's backup intent.
  2. The agent maps specific criteria—such as file type, count, or time range—to environment variables.
  3. The agent executes the internal feishu_backup.sh script with the configured environment variables.
  4. The script interacts with the Feishu API to locate and download the requested binary files.
  5. The system performs a verification check to ensure the file exists and has a valid file size before reporting success.

Feishu Backup Setup

To utilize this skill, ensure that the execution script is available in your environment. The skill saves all data to a standardized local path.

You can invoke the basic backup functionality with the following command:

./feishu_backup.sh

To view your currently saved files, you can inspect the backup directory:

ls -lht ~/.openclaw/doc/backup/

Feishu Backup Data Schema & Taxonomy

The Feishu Backup skill manages data via a structured set of environment variables that determine which files are retrieved from the chat. All files are stored in the ~/.openclaw/doc/backup/ directory.

Variable Description Example Value
LIMIT Number of files to download 3
MINUTES Lookback window in minutes 5
FILE_TYPE Format filter pdf, image, video, doc
NAME_PREFIX Filename starts with report_
NAME_CONTAINS Filename includes keyword invoice

Feishu Backup Advanced Features

  • Smart Intent Matching: Translates natural language phrases like "just now" into precise 5-minute time filters.
  • Batch Processing: Supports the LIMIT variable to download multiple files in a single execution flow.
  • Targeted Filtering: Enables specific file type extraction to separate documents from media assets automatically.
  • Reliable Verification: Includes a strict success-checking protocol that prevents the reporting of false positives if a download fails.
  • Extension Ready: Designed to work alongside other Openclaw Skills for complex automated document workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*