← 返回
开发者工具 中文

Sm Saver

Save and digest resources from social media posts (X/Twitter, LinkedIn) or any URL. Use when the user shares a tweet URL, a LinkedIn post, or any link they w...
保存并摘要社交媒体帖子(X/Twitter、LinkedIn)或任意网址的内容。当用户分享推文、LinkedIn帖子或链接时使用。
spideystreet
开发者工具 clawhub v0.0.0-pr-check 1 版本 99863 Key: 无需
★ 0
Stars
📥 729
下载
💾 7
安装
1
版本
#latest

概述

SM Saver

Extracts, summarizes, and logs resources from social media posts or direct URLs.

Output log

Append all saved entries to ~/workspace/resources.md (create if missing).

Workflow

1. Detect source type

PatternType
---------------
x.com/ or twitter.com/Twitter/X post
linkedin.com/*LinkedIn post
Anything elseDirect URL

2. Fetch content

Twitter/X — use xurl:

{
  "tool": "exec",
  "command": "xurl read <tweet_url>"
}

Parse the JSON response:

  • Extract data.text (tweet body)
  • Extract data.entities.urls[].expanded_url (linked resources, skip t.co self-references and pic.twitter.com)
  • Extract data.author_id or author handle if available

LinkedIn / Direct URL — skip to step 3 directly with the URL itself as the resource.

3. Summarize each resource

For each extracted URL (or the URL itself if direct):

{
  "tool": "exec",
  "command": "summarize \"<url>\" --length short"
}

If summarize is not installed, fall back to:

{
  "tool": "exec",
  "command": "python3 -c \"\nimport urllib.request, sys\nreq = urllib.request.Request('<url>', headers={'User-Agent': 'Mozilla/5.0'})\nwith urllib.request.urlopen(req, timeout=10) as r:\n    html = r.read().decode('utf-8', errors='ignore')\nimport re\ntitle = re.search(r'<title>(.*?)</title>', html, re.I)\nprint(title.group(1).strip() if title else '<url>')\n\""
}

If a URL is inaccessible (auth wall, timeout), note it as [inaccessible] and continue.

4. Append to resources.md

Format — strict, no deviation:

## {YYYY-MM-DD} · {source_label}
> {tweet text or first sentence of post — max 120 chars, truncate with …}

{For each resource:}
- [{title}]({url}) — {1-line summary, max 80 chars}

---

source_label:

  • Twitter: @{handle} if extractable, else X
  • LinkedIn: LinkedIn
  • Direct: domain name (e.g. github.com)

5. Confirm to user

Respond with exactly:

💾 {N} resource(s) saved · {source_label}
{title of first resource, truncated to 60 chars}

If nothing was extractable: ⚠️ No resources found in this link.

Examples

User saysSource typeResult
-------------------------------
"https://x.com/karpathy/status/123456"Twitter/XExtract tweet text + linked URLs, summarize each, append to resources.md
"https://linkedin.com/posts/someone-123"LinkedInFetch page, summarize, append to resources.md
"Save this: https://github.com/anthropics/claude-code"Direct URLFetch title + summary, append to resources.md
"https://x.com/elonmusk/status/789 garde ça"Twitter/XExtract tweet + linked resources, summarize, append to resources.md

版本历史

共 1 个版本

  • v0.0.0-pr-check 当前
    2026-03-30 10:03 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,636
communication-collaboration

Remind Myself

spideystreet
在特定时间或延迟后通过 Telegram 发送一次性提醒。当用户要求提醒、设置闹钟或...
★ 0 📥 874
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,553