Slack Print Skill for Openclaw

A specialized skill for fetching and printing files directly from Slack channels using smart filtering and shell-based print commands.

caigang78
v1.0.0
Mar 8, 2026
0
926
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install slack-print

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 slack-print 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 Slack Print Skill?

The Slack Print Skill enables AI agents to bridge the gap between digital messaging and physical documentation. By integrating with local print systems via Openclaw Skills, it allows users to trigger print jobs for documents, images, and reports shared in Slack using simple natural language commands. It avoids complex file manipulations by relying on direct shell execution, ensuring a secure and efficient pathway from a Slack message to a printed page.

This skill is built for developers and teams who need to streamline their office operations. It interprets user intent to apply smart filters, such as selecting only PDFs or files uploaded within a specific timeframe, making it more than just a simple print relay—it is an intelligent document handler for modern workspaces.

Slack Print Skill Use Cases

  • Automatically printing the latest report or invoice uploaded to a Slack channel.
  • Batch printing all PDF documents sent to a channel in the last 10 minutes.
  • Locating and printing specific files by searching for keywords or prefixes in the filename.
  • Checking printer status or clearing the print queue via natural language commands during a development session.

How Slack Print Skill Works

  1. The AI agent receives a user request such as "print the last two PDFs from Slack."
  2. The agent maps this intent to specific environment variables like LIMIT=2 and FILE_TYPE=pdf.
  3. The agent executes the slack_fetch_and_print.sh script located within the Openclaw Skills directory.
  4. The script interacts with the Slack API to download the requested files and pipes them to the local printer using the lp command.
  5. Success or failure status is returned to the agent, which then informs the user.

Slack Print Skill Setup

To set up this skill, ensure your local printer is configured and accessible via CUPS/lp commands. Identify your printer name first:

lpstat -a

Configure the PRINTER environment variable and execute the fetch script:

PRINTER=YourPrinterName <SKILL_DIR>/slack_fetch_and_print.sh

Slack Print Skill Data Schema & Taxonomy

The skill utilizes environment variables to filter metadata from Slack before sending jobs to the system spooler. The following schema defines how the Openclaw Skills integration handles data filtering:

Variable Type Description
LIMIT Integer Sets the maximum number of files to process.
NAME_PREFIX String Filters files starting with a specific string.
NAME_CONTAINS String Filters files containing a keyword.
FILE_TYPE String Restricts to pdf, image, video, doc, or file.
MINUTES Integer Filters files uploaded within the last X minutes.

Slack Print Skill Advanced Features

  • Smart Time Interpretation: Understands relative time ranges like "just now" to mean the last 5 minutes.
  • Direct Text Printing: Supports printing raw text content piped directly to the lp command without creating permanent local files.
  • Printer Management: Includes built-in capabilities to check print queues (lpq) and cancel active jobs (cancel -a).
  • Smart Matching: Automatically handles multiple file types and complex filename filters through pre-defined environment variable logic.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*