Send pdf to slack

From stevehuang0115/crewly · View interactive version

Send pdf to slack is an AI agent skill from the GitHub repository stevehuang0115/crewly. Convert a markdown file to a styled PDF (with embedded local images) and upload it to a Slack channel. Supports markdown image syntax ![alt](/path/to/image.png) \u2014 local absolute and relative image paths are automatically resolved and embedded in the PDF.

How to use this skill

Skill file

Send PDF to Slack

Converts a markdown file to a styled PDF and uploads it to a Slack channel via the /api/slack/upload-file endpoint. Supports embedding local images referenced in the markdown.

Image Support

The skill automatically handles local images referenced in markdown:

Images are rendered at full width (max 100% of page) with auto height scaling, centered with a subtle border.

Prerequisites

Usage

bash config/skills/orchestrator/send-pdf-to-slack/execute.sh \
  --channel C0123ABC \
  --file /path/to/document.md \
  --title "Weekly Report" \
  --text "Here is the report" \
  --thread 1707123456.789000

Parameters

| Parameter | Required | Description |

|-----------|----------|-------------|

| --channel, -c | Yes | Slack channel ID to upload the PDF to |

| --file, -f | Yes | Path to the markdown file to convert |

| --title, -T | No | Title for the uploaded PDF (defaults to filename) |

| --text, -t | No | Initial comment to include with the upload |

| --thread, -r | No | The Slack thread timestamp the PDF answers. Without it the harness picks the thread of your work, or the upload is refused (409 thread_unresolved) — it is never posted at the top level by default |

| --allow-new-thread | No | Post at the channel's top level on purpose (a new thread) |

Example: Daily Report with Infographics

Create a markdown file with embedded images:

# AI Daily Report - 2026-02-21

## 1. Paper Title
Summary of the paper.

![Paper Infographic](/path/to/output/infographic-1.png)

## 2. Another Paper
Summary here.

![Another Infographic](/path/to/output/infographic-2.png)

Then send it:

bash config/skills/orchestrator/send-pdf-to-slack/execute.sh \
  --channel D0AC7NF5N7L \
  --file /path/to/daily-report.md \
  --title "AI Daily Report 2026-02-21" \
  --text "Today's AI report with infographics" \
  --thread 1771651155.079579

PDF Styling

Output

JSON response from the upload API with fileId on success. Also emits a [NOTIFY] block for chat service integration.

Error Handling

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.