/fetch:ig-postfrom fetch
Extracts Instagram reel/post data (caption, author, metrics, images), downloads the video, and transcribes its audio to capture spoken content beyond the caption.
Ships in fetch. 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.
None: SKILL.md is the whole skill.
Pull an Instagram reel or post — caption, author, metrics, media — into a directory, and transcribe the audio. This skill knows nothing about vaults; it retrieves and stops. notes:clip turns the result into a note.
On a reel, the caption is not the content. A 90-second talking-head reel carries its argument in the audio; the caption is a teaser ending in "comment INFLUENCE below". Capturing the caption and stopping produces a note that looks complete and contains none of the substance. Always transcribe.
instagram.com/reel/<id>, /p/<id>, or /tv/<id>. Strip ?igsh=… share params.Instagram shows a login wall to logged-out sessions. Critically, the wall still renders the author, caption and metrics in the OpenGraph tags, so a logged-out capture yields a plausible-looking result with no video and no transcript. That is the failure this skill exists to prevent.
B="$HOME/.claude/skills/gstack/browse/dist/browse"
"$B" status # must report `mode: headed`
"$B" connect --force-restart # only if it does not
Then confirm the Instagram session specifically — headed is necessary but not sufficient, because the user can be logged into X and not Instagram:
() => ({
loggedIn: !!document.querySelector('svg[aria-label="Home"], a[href="/direct/inbox/"]'),
loginWall: /Log in|Sign up/i.test(document.body.innerText.slice(0, 400))
})
If loggedIn is false, stop and ask the user to log in inside the gstack browser, then poll until they have. Do not fall back to a logged-out capture.
⚠️ Do NOT disconnect when done — it tears down the daemon and the user's sessions with it.
Instagram's rendered DOM is obfuscated and changes often. The og: tags are server-rendered, stable, and carry everything needed:
() => {
const og = {};
document.querySelectorAll('meta[property^="og:"]').forEach(m =>
og[m.getAttribute('property')] = m.getAttribute('content'));
const v = document.querySelector('video');
return { og, duration: v ? v.duration : null, poster: v ? v.poster : '' };
}
| Field | Where |
|---|---|
| author handle + display name | og:title — "DAVID IMONITIE on Instagram: \"…\"" |
| full caption | og:title / og:description (longer than the visible caption — it is not truncated) |
| likes, comments, date | og:description — "154K likes, 1,846 comments - davidimonitie on May 25, 2026: …" |
| canonical URL (reveals the author slug) | og:url |
| thumbnail | og:image |
| duration | the <video> element, not the meta tags |
Cross-check the date against the on-page <time datetime>. They disagree on edited posts — one is the original publication, the other the edit. Record both and say which is which rather than picking one silently.
The <video> element's src is a blob: URL and cannot be fetched. Instagram streams DASH, so there is no video_url in the page scripts and no .mp4 in the resource log — only thumbnails and avatars. Do not spend time scraping for a media URL; there isn't one.
Use yt-dlp, but it needs the gstack profile's cookies. All measured 2026-09-12 on a logged-in session:
| Attempt | Result |
|---|---|
yt-dlp <url> | login required |
yt-dlp --cookies-from-browser chrome | login required — reads Chrome's default profile; gstack uses its own |
yt-dlp --cookies-from-browser chrome:~/.gstack/chromium-profile | login required — the cookie DB is encrypted and locked while the browser runs |
browse cookies → Netscape → --cookies FILE | ✅ downloads |
So:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/gstack_cookies.py" "$OUT/cookies.txt" instagram
yt-dlp --cookies "$OUT/cookies.txt" --no-progress \
-o "$OUT/%(id)s.%(ext)s" --write-info-json "$URL"
--write-info-json is worth it: it carries like_count, comment_count, timestamp and duration as structured values, which beats parsing "154K likes" out of prose.
cookies.txt holds a live session token. The script writes it 0600. Delete it when finished, and never copy it into the vault or a repo.
ffmpeg -nostdin -loglevel error -y -i "$OUT/<id>.mp4" -vn -ac 1 -ar 16000 "$OUT/<id>.wav"
whisper "$OUT/<id>.wav" --model medium.en --language en \
--output_dir "$OUT" --output_format txt --verbose False
medium.en is the floor for this material. Reels are loud, music-backed and fast; base/small drop numbers and brand names — exactly the tokens a note will quote.Reels often carry burnt-in captions or a list that is never spoken. When the transcript is short relative to the duration, sample frames and read them:
ffmpeg -nostdin -loglevel error -i "$OUT/<id>.mp4" -vf fps=1/3 "$OUT/frame-%02d.jpg"
Then open the frames. As with fetch:linkedin-post, if the body is thin and there is an image, the image is the content.
Write the extracted fields as JSON alongside the media, then print the directory as the final stdout line:
OUTPUT_DIR:/absolute/path/to/output
The marker must be last. Callers chain on it and must never reconstruct the path.
Report the transcript's word count and the video duration together — a 90-second reel that produced 12 words means the transcription failed, and that is invisible from the transcript alone.
duration field. It reads as complete. This is the default failure if Step 3 is skipped.login required from yt-dlp while the browser is clearly logged in — you used the wrong cookie jar. See the table in Step 3.og:description and <time datetime> disagreeing — an edited post, not a bug. Record both.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub mayank-io/mstack --plugin fetch11 skills in this plugin
/alphaxiv-paperUse when user shares an arxiv or alphaxiv URL, mentions a paper ID like 2401.12345, or asks to explain, summarize, or analyze a research paper. Fetches structured AI-generated overview from alphaxiv.org instead of reading raw PDFs./blog-postThis skill should be used when the user shares a blog/article URL (Medium, Substack, personal blog, news/long-form post) and asks to "download this blog post", "save this article", "archive this post with images", "clip this medium article", or otherwise wants a self-contained local copy. Extracts clean markdown via Defuddle, recovers lazy-loaded images via the gstack browser (which Defuddle drops), and — when the article contains Vedic astrology charts — invokes the fetch:vedic-chart skill to digitize them. Saves a folder with frontmatter + an images/ subfolder./linkedin-postExtract a LinkedIn post or article — author, headline, full text, engagement metrics, images, and any URLs it shares — using the gstack browser. Use when the user says "read this linkedin post", "get this linkedin post", "extract this linkedin post", "get this linkedin article", or shares a linkedin.com/posts, linkedin.com/feed/update or linkedin.com/pulse URL. Returns content and images to a directory; it does not write notes./notion-public-siteDownload all pages from a public Notion site as Markdown files with cross-references and embedded images. Use when the user shares a public Notion site URL and wants to archive, save, mirror, or extract the contents as local markdown./pubmed-nlmFetch a PubMed/NLM biomedical article — metadata, structured abstract, MeSH terms, and PMC full text when open access. Use when the user shares a pubmed.ncbi.nlm.nih.gov URL, a PMID, a PMC id, or a journal DOI and wants to save, clip, read, or summarize the paper./scribd-documentDownload all pages from a Scribd document as images. Use when the user shares a scribd.com URL and wants to save, download, archive, or extract the pages/images of a Scribd document.