返回顶部
t

tweet-share-card

Turn an X/Twitter post link into a share image. Use when the user sends an X/Twitter URL and wants a polished share card image: detect the tweet URL, capture the tweet content area, place it onto a pink poster-style background, and send the final image back.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
81
下载量
0
收藏
概述
安装方式
版本历史

tweet-share-card

Create a share image from an X/Twitter post. ## When to use - User sends an `x.com` / `twitter.com` post URL - User wants a tweet screenshot, share card, poster, or social-share image - User wants the final image sent back in chat ## Workflow 1. Extract the tweet URL from the user message. 2. Open the tweet in the dedicated visible Chrome profile/session already used for X login. 3. Capture the **tweet content area only**: - keep avatar/name/text/link preview - exclude right sidebar - exclude reply/action counts when possible - do not rewrite or re-typeset tweet text 4. Parse any user-requested color style (examples: `pink`, `blue-purple`, `purple-blue`, `peach`, `mint`). 5. Composite the captured tweet area onto a poster background using that style. 6. Save the final image under `workspace/tmp/`. 7. Send the final image back to the user. ## Rules - Prefer the user's logged-in **dedicated Chrome profile**, not their default browser profile. - Do **not** use headless/embed screenshots if they produce blank/incorrect tweet content. - The tweet content must be a real screenshot, not re-rendered fake text. - Default background style: clean pink poster style. - Support color presets when the user asks, including `pink`, `blue-purple`, `purple-blue`, `peach`, and `mint`. - Default output is a square share card with a peach background unless the user asks for another preset. - The white content card should adapt to content height instead of using a fixed internal height. - Preserve the tweet content area without cropping away core text. - Always inspect the result before sending if the capture path changed. ## Output Return the final image directly to the user with a short caption only if needed. ## Scripts - `python3 {Skills Directory}/tweet-share-card/scripts/capture_visible_tweet.py <tweet_url> <output_png>` - `python3 {Skills Directory}/tweet-share-card/scripts/compose_pink_card.py <tweet_capture_png> <output_png> [pink|blue-purple|purple-blue|peach|mint]`

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 tweet-share-card-1776099728 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 tweet-share-card-1776099728 技能

通过命令行安装

skillhub install tweet-share-card-1776099728

下载 Zip 包

⬇ 下载 tweet-share-card v0.1.0

文件大小: 4.54 KB | 发布时间: 2026-4-14 10:09

v0.1.0 最新 2026-4-14 10:09
Initial release: generate tweet share cards with peach default and color presets

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部