Tweet Share Card — Tweet 分享 Card
v0.1.0Convert an X/Twitter post URL into a polished 分享 card image by capturing the tweet content and compositing it on a styled background.
运行时依赖
安装命令
点击复制技能文档
创建 a 分享 image from an X/Twitter post.
When to use User 发送s an x.com / twitter.com post URL User wants a tweet screenshot, 分享 card, poster, or social-分享 image User wants the final image sent back in chat 工作流 提取 the tweet URL from the user message. Open the tweet in the dedicated visible Chrome 性能分析/会话 already used for X 记录in. 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-type设置 tweet text 解析 any user-请求ed color style (examples: pink, blue-purple, purple-blue, peach, mint). Composite the captured tweet area onto a poster background using that style. Save the final image under workspace/tmp/. 发送 the final image back to the user. Rules Prefer the user's 记录ged-in dedicated Chrome 性能分析, not their default browser 性能分析. 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: 清理 pink poster style. Support color pre设置s when the user asks, including pink, blue-purple, purple-blue, peach, and mint. Default 输出 is a square 分享 card with a peach background unless the user asks for another pre设置. 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 结果 before 发送ing if the capture path changed. 输出
Return the final image directly to the user with a short caption only if needed.
Scripts python3 {技能s Directory}/tweet-分享-card/scripts/capture_visible_tweet.py <输出_png> python3 {技能s Directory}/tweet-分享-card/scripts/compose_pink_card.py <输出_png> [pink|blue-purple|purple-blue|peach|mint]