
这个仓库展示了如何构建一个由Claude驱动的机器人,创建自定义的Slackmoji GIF。
概览
这个仓库展示了如何构建一个由Claude驱动的机器人,创建自定义的Slackmoji GIF。 该机器人运行在Modal上,使用Claude Agent SDK和Anthropic的slack-gif-creator技能。 - : 描述你想要的内容,Claude 会创建一个 128x128 的表情优化 GIF - : 每个 Slack 线程都会创建一个对话上下文,并持续存在于 Modal 上 - : 上传图片到机器人中,将它们融入你的 GIF 中 - : 用 rembg 工具移除背景,这样你可以制作朋友的 GIF - : 查看 Slack 讨论串中 Claude 工具的使用情况 该机器人由三个主要组件组成:Slack 机器人服务器、Claude 代理沙盒和 Anthropic API 代理。 这个组件处理 Slack 事件(提及和线程回复),并管理 Modal 沙箱。这是一个托管在 Modal 上的简单 FastAPI ASGI 应用。 该组件运行 Claude 客户端,执行 Claude 技能,如 Bash 执行和 GIF 创建。
概述(AI 翻译)
这个仓库 展示如何建造 这是一个由Claude驱动的机器人,可以创建自定义的Slackmoji GIF。
或者,用GIF形式写成:
该机器人运行在Modal上,使用Claude代理SDK
拥有人类学的slack-gif-creator技能。
特色
- 自然语言GIF生成:描述你想要的内容,Claude将生成一个128x128的表情优化GIF。
- 持久线程:每个Slack线程创建对话上下文,在Modal上持久化
- 图片上传支持:将图片上传到机器人中,以便融入你的GIF。
- 背景移除:使用
rembg工具移除背景,以便制作朋友的GIF。 - 实时工具日志:查看Claude工具在Slack讨论串中的使用情况
建筑
该机器人由三个主要组成部分组成: 一个Slack机器人服务器, 一个克劳德特工沙盒, 以及Anthropic API代理。
Slack 机器人服务器
该组件处理 Slack 事件(提及和帖子回复)并管理模态沙箱。 这是一个托管在Modal上的简单FastAPI ASGI应用。
克劳德特工沙盒
该组件运行 Claude 客户端并执行 Claude 技能, 比如Bash的执行和GIF制作。
本页由 AI 翻译,技术细节请以原文为准。
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