social-knowledge-base CLAUDE.md

social-knowledge-base CLAUDE.md is an instructions file for Claude Code from guimatheus92/social-knowledge-base. It costs 2,490 tokens per session, scanned A, original, MIT.

Repository instructions for turning Instagram videos—including Reels, Stories, and Highlights—into searchable written knowledge using video frames, on-screen text, and speech transcripts.

In plain words
What is it for?
Use them to download videos from accounts, transcribe speech, inspect visual content, and organize the results as Markdown knowledge.
Why use it?
They describe a resumable process for downloading and analyzing many videos without reprocessing completed work.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/guimatheus92/social-knowledge-base/claude-md
Clone the repo
git clone --depth 1 https://github.com/guimatheus92/social-knowledge-base

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for social-knowledge-base CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/guimatheus92/social-knowledge-base/claude-md.svg)](https://agentmods.dev/instructions/guimatheus92/social-knowledge-base/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/guimatheus92/social-knowledge-base/claude-md"><img src="https://agentmods.dev/badge/instructions/guimatheus92/social-knowledge-base/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,490 This file is loaded in full into every session.
When invoked 2,490 The same file — it is already loaded in full.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.02490 $0.02490
Opus 5 $0.01245 $0.01245
Sonnet 5 $0.00498 $0.00498
Haiku 4.5 $0.00249 $0.00249

Measured 5d ago against content hash 81db8fc3bc3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

social-knowledge-base CLAUDE.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

There is a **Next.js 16 + TypeScript + Tailwind 4 + shadcn/ui (Base UI)** app in [`app/`](app/) that gives a UI to the download: add multiple accounts, choose media, hit Play, watch live progress (SSE), size, time, brows
CLAUDE.md · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md — social-knowledge-base

Instructions for Claude Code in this repo. Read before acting.

Project

Knowledge base built from Instagram videos (Reels, Stories, and Highlights) of one or more accounts. Opus watches (frames + OCR of what appears on screen) and listens (PT-BR transcription) to each video and records what it learned in markdown.

Goal

Download ALL videos from an account (including "Highlights"), analyze each one, and turn the content into queryable knowledge — for many videos, in a resumable way (pause and continue without reprocessing).

How it works (4 layers)

  1. Download (Python / gallery-dl) — scripts/download_instagram.py (or the app in app/) downloads the videos to downloads/<profile>/<tab>/ and records progress. Authenticates via a browser cookies.txt (instaloader is dead: its GraphQL web endpoint returns 401 since ~Jan/2025). Injects ffmpeg into PATH (otherwise the video comes out without audio).
  2. Bulk transcription (GPU) — scripts/transcribe_gpu.py runs faster-whisper medium on CUDA (~16–24× real time) with a domain glossary, and writes sidecars: downloads/<profile>/transcripts/<id>.{txt,json} + an <id>.vtt next to the video. This is the step that scales (~9.6k videos in hours, not the ~150h on CPU).
  3. Notes (Claude Code + Opus + MCP video-analyzer) — following prompts/build-notes.md, processes 1 video per iteration: reads the transcription (the MCP reuses the .vtt as a sidecar, without re-running Whisper) and watches frames + OCR via MCP, writing notes/<profile>/videos/<id>.md.
  4. Synthesis + RAGprompts/synthesize-overview.md generates notes/<profile>/OVERVIEW.md (theme-by-theme summary); scripts/index_transcripts.py + scripts/index_notes.py + scripts/query.py provide search (the library becomes searchable with the transcription alone, even before the curated note). Script details: scripts/CLAUDE.md.

Read the full file on GitHub · 90 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 90 lines · 2,490 tokens per session scan A 81db8fc3bc3f

Subscribe to this mod's changes

social-knowledge-base CLAUDE.md is an instructions file published in the GitHub repository guimatheus92/social-knowledge-base (6 stars, last pushed 2mo ago), licensed MIT. It adds 2,490 tokens to every session, about $0.0124 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.