
modal-projects/claude-slack-gif-creator
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
This repo shows how to build a bot powered by Claude that creates custom Slackmoji-ready GIFs.
概要
This repo shows how to build a bot powered by Claude that creates custom Slackmoji-ready GIFs. The bot runs on Modal and uses the Claude Agent SDK with the slack-gif-creator skill from Anthropic. - : Describe what you want and Claude will create a 128x128 emoji-optimized GIF - : Each Slack thread creates a conversation context, persisted on Modal - : Upload images to the bot to incorporate them into your GIFs - : Backgrounds removed using the rembg tool, so you can make GIFs of your friends - : See Claude's tool usage in the Slack thread as it works The bot consists of three main components: a Slack Bot Server, a Claude Agent Sandbox, and an Anthropic API Proxy. This component handles Slack events (mentions and thread replies) and manages Modal Sandboxes. It's a simple FastAPI ASGI app hosted on Modal. This component runs a Claude client and executes Claude skills, like Bash execution and GIF creation.
README
以下は原文 README の抜粋です。原文を見る。
Claude Slack GIF Creator
This repo shows how to build a bot powered by Claude that creates custom Slackmoji-ready GIFs.
Or, in GIF form:

The bot runs on Modal and uses the Claude Agent SDK
with the slack-gif-creator skill from Anthropic.
Features
- Natural Language GIF Generation: Describe what you want and Claude will create a 128x128 emoji-optimized GIF
- Persistent Threads: Each Slack thread creates a conversation context, persisted on Modal
- Image Upload Support: Upload images to the bot to incorporate them into your GIFs
- Background Removal: Backgrounds removed using the
rembgtool, so you can make GIFs of your friends - Real-time Tool Logging: See Claude’s tool usage in the Slack thread as it works
Architecture
The bot consists of three main components: a Slack Bot Server, a Claude Agent Sandbox, and an Anthropic API Proxy.
Slack Bot Server
This component handles Slack events (mentions and thread replies) and manages Modal Sandboxes. It’s a simple FastAPI ASGI app hosted on Modal.
Claude Agent Sandbox
This component runs a Claude client and executes Claude skills, like Bash execution and GIF creation.
Because these skills are tantamount to giving the agent total control over the computing environment and we are going to allow anyone who can access the bot to prompt the agent, we need to isolate and secure this component. To that tend, it runs inside a Modal Sandbox. Modal can readily scale to hundreds or thousands of Sandboxes.
Each Slack thread gets its own persistent Modal Sandbox with a dedicated Volume for storing generated GIFs and session data.
Anthropic API Proxy
This component proxies requests to the Anthropic API.
The proxy keeps the API key out of the Sandbox. It’s included so that Claude can’t leak your API key when a naughty prompt hacker asks for a GIF containing it, as in the (mock) example below.

Prerequisites
推奨ツール
別のキーワードを試すか、フィルタを外してください。
インストール
npx skillfish add modal-projects/claude-slack-gif-creator