slack-backup
Back up files uploaded to a Slack channel to the local doc/backup directory. Supports smart matching: multiple files, filename prefix/keyword filter, file type (pdf/video/image), and time range ("just now" = "last 5 minutes"). Trigger when the user says things like "back up the file from Slack", "back up the PDF I just sent to Slack", "save the Slack file locally", etc.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/caigang78/slack-backupWhat This Skill Does
The slack-backup skill for OpenClaw is a specialized automation tool designed to bridge the gap between your Slack workspace and your local filesystem. It enables users to programmatically pull files uploaded to Slack channels and store them securely within the local ~/.openclaw/doc/backup/ directory. By leveraging the Slack API, this skill bypasses the need for manual downloading, renaming, and organizing of documents, images, or media files. It features an intelligent parsing engine that translates natural language requests into specific environment variable configurations, ensuring that only the relevant files are fetched.
Installation
To install this skill, run the following command in your terminal:
clawhub install openclaw/skills/skills/caigang78/slack-backup
Use Cases
This skill is ideal for professionals who use Slack as a primary communication hub but require a local archive of project assets. It serves as an excellent tool for project managers who need to maintain a record of shared reports, content creators gathering assets from team members, and developers collecting log files or documentation shared in development channels. Whether you need to grab the latest file instantly or filter your backlog by specific keywords, dates, or file extensions, this utility handles the heavy lifting without manual intervention.
Example Prompts
- "Back up the PDF I just sent to Slack about ten minutes ago."
- "Back up the last three files that have the word 'contract' in the filename."
- "Back up the latest image file I uploaded to the project channel."
Tips & Limitations
- Safety First: The script relies on direct execution of
slack_backup.sh. Ensure the script output confirmsSUCCESS: /path/to/filebefore assuming your backup is complete. - File Integrity: Always verify that the file size on disk is consistent with the original upload, as very small files may indicate a network error or API timeout.
- Naming Conventions: Use the
NAME_PREFIXorNAME_CONTAINSvariables to avoid downloading unrelated documents when working in busy channels. - Constraint: This skill is strictly designed for downloading. It does not possess, and is explicitly restricted from, capabilities to edit files, create Python scripts, or fabricate file contents. Any errors reported by the underlying script must be interpreted literally and relayed to the user to maintain full transparency in the data transfer process.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-caigang78-slack-backup": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, external-api, code-execution
Related Skills
slack-print
Print files uploaded to a Slack channel. Supports smart matching: multiple files, filename prefix/keyword filter, file type (pdf/image), and time range ("just now" = "last 5 minutes"). Trigger when the user says things like "print the file from Slack", "print the PDF I just sent to Slack", "print the Slack file", etc.
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, file type (pdf/video/image), and time range ("just now" = "last 5 minutes"). Trigger when the user says things like "back up the file from Feishu", "back up the PDF I just sent to Feishu", "save the Feishu file locally", etc.
feishu-print
Print files uploaded to a Feishu group chat. Supports smart matching: multiple files, filename prefix/keyword filter, file type (pdf/image), and time range ("just now" = "last 5 minutes"). Trigger when the user says things like "print the file from Feishu", "print the PDF I just sent to Feishu", "print the Feishu file", etc.