Agent skill
twitter-image-downloader
从 Markdown 文件中自动提取并下载 Twitter 图片,生成可直接发布的版本。 当用户说"下载推文图片"、"提取Twitter图片"、"download twitter images"时触发。
Install this agent skill to your Project
npx add-skill https://github.com/ttmouse/skills/tree/main/twitter-image-downloader
SKILL.md
Twitter 图片下载技能
从 Markdown 文件中自动提取并下载 Twitter 图片
用途
当你的 Markdown 文章中包含 Twitter 图片链接(https://pbs.twimg.com/media/...),需要将这些图片下载到本地并替换路径时使用。
核心价值
- 效率提升:从 5-10 分钟缩短到 15-20 秒
- 自动化:一行命令完成所有操作
- 可靠性:使用系统自带 curl 工具,100% 可用
使用方式
基本用法
~/.claude/skills/twitter-image-downloader/scripts/download.sh "文章.md"
指定输出目录
~/.claude/skills/twitter-image-downloader/scripts/download.sh "文章.md" "custom_images"
工作流程
- 自动提取图片 URL:从 Markdown 中提取所有
pbs.twimg.com图片链接 - 创建图片目录:自动创建
[文件名]_images/目录 - 批量下载图片:使用 curl 批量下载,文件命名为
01.jpg,02.jpg... - 生成发布版文件:自动替换 Markdown 中的图片路径
- 输出报告:显示成功/失败统计和图片清单
技术细节
- User-Agent 模拟浏览器,避免被拦截
- 30秒连接超时 + 120秒下载超时
- 自动检查文件有效性
- 跨平台兼容(macOS/Linux)
创建时间:2026-02-01 版本:v1.0 状态:已实现
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
template-skill
Replace with description of the skill and when Claude should use it.
prompt-analyzer
提示词分析与洞察 - 查看Prompt详情、对比差异、推荐相似提示词、元素库统计
meta-skill
元技能 - 对话复盘与技能进化。在对话结束后分析:已用技能是否可优化、未形成技能的流程是否值得沉淀。当用户说"复盘"、"回顾对话"、"优化技能"、"沉淀经验"、"这个流程可以复用吗"、"技能体系复盘"、"技能健康检查"等关键词时触发,或用户显式调用 /meta-skill。
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision docs, or similar structured content. This workflow helps users efficiently transfer context, refine content through iteration, and verify the doc works for readers. Trigger when user mentions writing docs, creating proposals, drafting specs, or similar documentation tasks.
downloads-organizer
Automatically organize and clean up downloads folder by categorizing files, removing duplicates, and optimizing storage space
gemini-gen
Generates images using Google's Gemini model. Prioritizes standard resolution to save quota. Automatically opens images on macOS.
Didn't find tool you were looking for?