/ego-skills:instagram-saved-downloadfrom ego-skills
Downloads the user's own Instagram Saved posts (images and MP4) using Ego Lite browser session cookies. Checks login status each run and soft-fails with login instructions if not authenticated.
Ships in ego-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
保存你自己的 Instagram 收藏(Saved)。用 Ego Lite 里的登录态,经 ego-browser nodejs 打开。未登录则退出码 2。
Save your own Instagram Saved posts through the Ego Lite session. Images by default. MP4 when you ask. Logged out exits 2.
每次运行都要把 JSON 里的 login_tip / login_tip_zh 告诉用户:
只有在 Ego Lite 里登录 Instagram,才能读到自己的收藏。匿名模式看不到收藏夹。保持登录,下载的才是这个账号保存的帖子。
On every run, show login_tip / login_tip_zh. Signing in inside Ego Lite is what makes Saved readable. Anonymous mode cannot see that archive.
如果退出码是 2(login_required: true),把 how_to_login / how_to_login_zh 一并给用户,然后停。不要输入密码。这个技能自己检查登录,不要再加一个 cookie-healthcheck 技能。详见 references/login.md。
ego-browser nodejs 不转发 shell 参数。下面的命令会写一个临时模块,再用 ego-browser nodejs -e "await import('file://…')" 执行。
node skills/instagram-saved-download/scripts/download.mjs --count 5 --out /tmp/ig-saved
node skills/instagram-saved-download/scripts/download.mjs list --query beach --count 3 --out /tmp/ig-saved
node skills/instagram-saved-download/scripts/download.mjs saved --media any --count 2 --out /tmp/ig-saved
| Arg | Default | Notes |
|---|---|---|
saved or list | saved | Your Saved posts only. |
--query | empty | Filter caption or username after the feed loads. |
--count / --limit | 10 | 1–100 posts. |
--out | ~/Downloads/instagram-saved | Resolved to an absolute path first. |
--media | image | image saves pictures (including a video cover). video saves MP4 only. any saves both. |
--keep | off | Leave the Instagram tab open. |
Node fetch 拉 Instagram CDN(cdninstagram.com / fbcdn.net)时,可能在任何 HTTP 状态之前就抛 fetch failed。脚本会再用 HTTP/1.1(IPv4,带浏览器 User-Agent)试一次,还不行就用当前已登录页面的 page.fetch 把图片或 MP4 存下来。
Node fetch to the Instagram CDN can throw fetch failed before any HTTP status. The script retries over HTTP/1.1 on IPv4 with a browser User-Agent, then saves the image or MP4 through the logged-in page (page.fetch).
Stdout is one JSON object. Files and manifest.json go to --out. Do not commit them.
Exit 0 when at least one file is saved. Exit 2 when Instagram is logged out. Exit 1 on other failures.
Personal use only. See references/tos-notes.md.
--out. Show login_tip even when the run succeeds.2, show how_to_login and stop. Do not type the password.downloads[].path and count.agents/openai.yaml (opens in a new tab)references/login.md (opens in a new tab)references/tos-notes.md (opens in a new tab)scripts/download.mjs (opens in a new tab)scripts/download.sh (opens in a new tab)scripts/lib/ego-deps.mjs (opens in a new tab)scripts/lib/launch.mjs (opens in a new tab)scripts/lib/media-fetch.mjs (opens in a new tab)scripts/lib/pure.mjs (opens in a new tab)scripts/lib/run.mjs (opens in a new tab)scripts/test/launch.test.mjs (opens in a new tab)scripts/test/media-fetch.test.mjs (opens in a new tab)scripts/test/pure.test.mjs (opens in a new tab)scripts/test/run.test.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 skills in this plugin
/bilibili-videoPublish a local video to the Bilibili creator platform (member.bilibili.com) with Ego Lite via ego-browser. Login-check first. Bilibili wants TWO covers uploaded separately: --cover-4x3 (首页推荐) and --cover-16x9 (个人空间). Nothing is submitted without --yes: that run only prints a local plan and exits 3. --type selects a partition from the human-type list and reads it back; a missing name stops before 立即投稿. Success is 投稿成功 / 审核中, with a BV URL or identity unconfirmed. Bilibili has no private visibility on web upload: approved submissions go public. Use when the user asks to post to B站, 哔哩哔哩, B站投稿, or publish a video to bilibili./chatgpt-image-genExpand a rough image idea with the six-axis domain engine from codex-imagegen, then create one image on the free ChatGPT website inside Ego Lite. Login-check first. Soft-fail with exit 2 when ego-browser is missing, chatgpt.com is logged out, or login cannot be proven. enrich and generate without --yes are offline. --yes sends one prompt and saves the image to --out. Flowcharts and timelines are SVG, not images. Does not call codex exec and does not use an API key. Use when the user asks to generate an image, enrich a prompt, or use ChatGPT Images without a Codex subscription./douyin-videoPublish a local video to the Douyin creator center (creator.douyin.com) with Ego Lite via ego-browser. Login-check first. Title is a separate field of at most 30 characters. Success is a redirect to content management or a publish-success message. The caller supplies a local video file. This skill does not download video. Use when the user asks to post to 抖音, 抖音发视频, 发布到抖音创作者中心, or creator.douyin.com.npx claudepluginhub terryso/ego-skills --plugin ego-skillsOther plugins' skills for the same job