[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71ASGFWGNFD16KB7NENDZCZ":3,"skill-same:01M71ASGFWGNFD16KB7NENDZCZ":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":14,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":64},"01M71ASGFWGNFD16KB7NENDZCZ","ljg-x-download",null,"Download images and videos from X (Twitter) posts to ~\u002FDownloads. Use when user shares an X\u002FTwitter link and wants to save media, or says '下载', 'download', '保存图片', '保存视频', or provides a x.com\u002Ftwitter.com URL with intent to download media.","sapsapshen\u002Fai-memory-router","sapsapshen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F20347959?v=4","01M6XDQEF1DP50DKF37H81J3J5","shenmian","01M6XDQEJPE41Y3DT2763X8ZJN",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Fljg-x-download\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"download","ljg x download","save","user","下载","视频","image","URL","when","use","videos","true","twitter","link","intent","downloads","Media","posts","with","images","2026-11-10 10:12:30",false,"---\nname: ljg-x-download\ndescription: \"Download images and videos from X (Twitter) posts to ~\u002FDownloads. Use when user shares an X\u002FTwitter link and wants to save media, or says '下载', 'download', '保存图片', '保存视频', or provides a x.com\u002Ftwitter.com URL with intent to download media.\"\nversion: \"1.1.0\"\nuser_invocable: true\n---\n\n# ljg-x-download\n\n从 X (Twitter) 链接下载图片或视频到 ~\u002FDownloads。\n\n## 依赖\n\n- `yt-dlp`（已安装）\n\n## 执行流程\n\n### 1. 解析输入\n\n从用户输入中提取 X\u002FTwitter URL。支持的格式：\n- `https:\u002F\u002Fx.com\u002Fuser\u002Fstatus\u002F123456`\n- `https:\u002F\u002Ftwitter.com\u002Fuser\u002Fstatus\u002F123456`\n- `https:\u002F\u002Fmobile.twitter.com\u002Fuser\u002Fstatus\u002F123456`\n- 带查询参数的 URL（yt-dlp 自动处理 `?s=20` 等追踪参数）\n\n缩短链接（t.co）先解析：`curl -Ls -o \u002Fdev\u002Fnull -w '%{url_effective}' \"SHORT_URL\"`\n\n如果用户没有提供 URL，用 AskUserQuestion 要求提供。\n\n### 2. 尝试直接下载（视频优先）\n\n直接用 yt-dlp 下载，无需先探测：\n\n```bash\nyt-dlp -o \"~\u002FDownloads\u002F%(uploader)s_%(id)s.%(ext)s\" \"URL\"\n```\n\n如果成功（视频推文），完成。跳到步骤 4 汇报结果。\n\n### 3. 视频下载失败时，提取图片\n\nyt-dlp 对纯图片推文可能报错。此时用 `--dump-json` 提取图片 URL：\n\n```bash\nyt-dlp --dump-json \"URL\" 2>&1\n```\n\n**判断结果：**\n- JSON 中有 `thumbnails` 数组 → 提取图片 URL\n- JSON 为空或报错 `no video` → 推文无媒体，告知用户\"该推文不包含可下载的图片或视频\"\n- 报错含 `login` \u002F `authentication` → 需要登录（见故障排除）\n- 其他错误 → 报告具体错误信息\n\n**图片下载：**\n\n从 JSON 的 `thumbnails` 数组提取所有图片 URL，替换 `name=small` 或 `name=medium` 为 `name=orig` 获取原图，然后逐一下载：\n\n```bash\ncurl -L -o ~\u002FDownloads\u002Ftweet_ID_1.jpg \"https:\u002F\u002Fpbs.twimg.com\u002Fmedia\u002Fxxx?format=jpg&name=orig\"\ncurl -L -o ~\u002FDownloads\u002Ftweet_ID_2.jpg \"https:\u002F\u002Fpbs.twimg.com\u002Fmedia\u002Fyyy?format=jpg&name=orig\"\n```\n\n文件扩展名跟随 URL 中的 `format` 参数（jpg\u002Fpng\u002Fwebp）。\n\n### 4. 汇报结果\n\n下载完成后，用 `ls -lh` 列出已下载的文件：文件名、大小、路径。\n\n## 故障排除\n\n### 需要登录\n\nyt-dlp 报错含 `login` \u002F `Sign in` \u002F `age-restricted` 时，加 `--cookies-from-browser chrome`：\n\n```bash\nyt-dlp --cookies-from-browser chrome -o \"~\u002FDownloads\u002F%(uploader)s_%(id)s.%(ext)s\" \"URL\"\n```\n\n### 推文无媒体\n\n纯文字推文没有可下载的媒体。告知用户即可。\n","# ljg-x-download\n\n从 X (Twitter) 链接下载图片或视频到 ~\u002FDownloads。\n\n## 依赖\n\n- `yt-dlp`（已安装）\n\n## 执行流程\n\n### 1. 解析输入\n\n从用户输入中提取 X\u002FTwitter URL。支持的格式：\n- `https:\u002F\u002Fx.com\u002Fuser\u002Fstatus\u002F123456`\n- `https:\u002F\u002Ftwitter.com\u002Fuser\u002Fstatus\u002F123456`\n- `https:\u002F\u002Fmobile.twitter.com\u002Fuser\u002Fstatus\u002F123456`\n- 带查询参数的 URL（yt-dlp 自动处理 `?s=20` 等追踪参数）\n\n缩短链接（t.co）先解析：`curl -Ls -o \u002Fdev\u002Fnull -w '%{url_effective}' \"SHORT_URL\"`\n\n如果用户没有提供 URL，用 AskUserQuestion 要求提供。\n\n### 2. 尝试直接下载（视频优先）\n\n直接用 yt-dlp 下载，无需先探测：\n\n```bash\nyt-dlp -o \"~\u002FDownloads\u002F%(uploader)s_%(id)s.%(ext)s\" \"URL\"\n```\n\n如果成功（视频推文），完成。跳到步骤 4 汇报结果。\n\n### 3. 视频下载失败时，提取图片\n\nyt-dlp 对纯图片推文可能报错。此时用 `--dump-json` 提取图片 URL：\n\n```bash\nyt-dlp --dump-json \"URL\" 2>&1\n```\n\n**判断结果：**\n- JSON 中有 `thumbnails` 数组 → 提取图片 URL\n- JSON 为空或报错 `no video` → 推文无媒体，告知用户\"该推文不包含可下载的图片或视频\"\n- 报错含 `login` \u002F `authentication` → 需要登录（见故障排除）\n- 其他错误 → 报告具体错误信息\n\n**图片下载：**\n\n从 JSON 的 `thumbnails` 数组提取所有图片 URL，替换 `name=small` 或 `name=medium` 为 `name=orig` 获取原图，然后逐一下载：\n\n```bash\ncurl -L -o ~\u002FDownloads\u002Ftweet_ID_1.jpg \"https:\u002F\u002Fpbs.twimg.com\u002Fmedia\u002Fxxx?format=jpg&name=orig\"\ncurl -L -o ~\u002FDownloads\u002Ftweet_ID_2.jpg \"https:\u002F\u002Fpbs.twimg.com\u002Fmedia\u002Fyyy?format=jpg&name=orig\"\n```\n\n文件扩展名跟随 URL 中的 `format` 参数（jpg\u002Fpng\u002Fwebp）。\n\n### 4. 汇报结果\n\n下载完成后，用 `ls -lh` 列出已下载的文件：文件名、大小、路径。\n\n## 故障排除\n\n### 需要登录\n\nyt-dlp 报错含 `login` \u002F `Sign in` \u002F `age-restricted` 时，加 `--cookies-from-browser chrome`：\n\n```bash\nyt-dlp --cookies-from-browser chrome -o \"~\u002FDownloads\u002F%(uploader)s_%(id)s.%(ext)s\" \"URL\"\n```\n\n### 推文无媒体\n\n纯文字推文没有可下载的媒体。告知用户即可。\n",{"name":5,"version":44,"description":7,"user_invocable":45},"1.1.0",true,"main","7a38d8e7073e61c16eda85681cb32fb68a8657a5","skills-store\u002Fopenclaw\u002Fljg-x-download","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router","https:\u002F\u002Fgithub.com\u002Fsapsapshen","2026-04-14 21:12:12",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":45},[54,57,60],{"tool":55,"command":56},"npx","npx skills add sapsapshen\u002Fai-memory-router --skill ljg-x-download",{"tool":58,"command":59},"bunx","bunx skills add sapsapshen\u002Fai-memory-router --skill ljg-x-download",{"tool":61,"command":62},"pnpm","pnpm dlx skills add sapsapshen\u002Fai-memory-router --skill ljg-x-download","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fopenclaw\u002Fljg-x-download\u002FSKILL.md",[],[66,76,83,91,97,105],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":71,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":75},"01M72R8PZX1ABFHJGTYPA4CAF1","webapp-testing","To test local web applications, write native Python Playwright scripts.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fwebapp-testing\u002FSKILL.md",[],[],"2026-11-10 22:39:42",{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":75},"01M72QG37MMZNDY7X7GXPAK5W6","python-packaging","Comprehensive guide to creating, structuring, and distributing Python packages using modern packaging tools, pyproject.toml, and publishing to PyPI.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fpython-packaging\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":75},"01M72NXR0QMP9G46TW6A2DH59C","canvas-design","These are instructions for creating design philosophies - aesthetic movements that are then EXPRESSED VISUALLY. Output only .md files, .pdf files, and .png files.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fglobal\u002Fcanvas-design\u002FSKILL.md",[],[],{"skillNo":92,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":93,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":75},"01M72N55TK3EEQ4QK4AWDC2KZS","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":101,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":75},"01M72MTWC150CFAP4Y5GSNKF80","slack-gif-creator","A toolkit providing utilities and knowledge for creating animated GIFs optimized for Slack.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Fslack-gif-creator\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":70,"licenseFileUrl":109,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":75},"01M72KPT3VVNSP88MNAY466TZT","frontend-design","You are a frontend designer-engineer, not a layout generator.","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fsapsapshen\u002Fai-memory-router\u002Fblob\u002Fmain\u002Fskills-store\u002Fcursor\u002Ffrontend-design\u002FSKILL.md",[],[]]