channel-to-kb-supadata
Build an OKF (Open Knowledge Format) knowledge base from any YouTube channel. Uses Google's OKF standard so any AI can read the output with zero setup. Uses Supadata (managed API, paid). Invoke with /channel-to-kb-supadata @ChannelHandle
- License 许可
- MIT
- 最近更新
- 2026-10-29
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- channel-to-kb-supadata
- description
- Build an OKF (Open Knowledge Format) knowledge base from any YouTube channel. Uses Google's OKF standard so any AI can read the output with zero setup. Uses Supadata (managed API, paid). Invoke with /channel-to-kb-supadata @ChannelHandle
- argument-hint
- <@ChannelHandle or channel-URL>
02 资源文件 1
- 脚本scripts/fetch_transcripts.py6.8 KB
03 SKILL.md 正文
Build an OKF Knowledge Base from a YouTube Channel (Supadata)
Turn any YouTube channel into a synthesized, cross-linked knowledge base in Open Knowledge Format (OKF). OKF is Google's open standard for LLM-readable knowledge bases: plain markdown + YAML frontmatter, navigated by index and relative links, no database or embeddings required. Any AI can read the output with zero setup.
Uses Supadata's managed API for transcript fetching.
Trade-offs: cleanest API, no IP blocking worries, AI fallback for uncaptioned videos. Requires a Supadata API key (free tier: 100 credits, then $17+/month at supadata.ai).
Before you start
Read the OKF contract this bundle obeys:
- Read
SCHEMA.mdin this repo (the maintainer contract: page types, frontmatter schemas, linking rules) - Skim the OKF SPEC for the hard rules (every page needs
typein frontmatter,index.mdis reserved, cross-links are relative markdown paths)
Step 0: Set your API key
export SUPADATA_API_KEY=your_key_here
Or pass --api-key your_key to the script.
Step 1: Fetch transcripts
uv run .claude/skills/channel-to-kb-supadata/scripts/fetch_transcripts.py $ARGUMENTS --output-dir ./raw
This enumerates all videos via the Supadata channel API and fetches native English transcripts. Output: raw/<slug>.md files (each with type: raw-transcript frontmatter, OKF-conformant) + raw/manifest.json.
Flags:
--limit Nto cap the number of videos (start here for testing)--delay 1.0to adjust request spacing
Credit usage: 1 credit per video (native mode). A 200-video channel costs ~200 credits.
Wait for the script to complete before proceeding.
Step 2: Build the OKF knowledge base
Read .claude/references/pipeline-guide.md for the full process. It produces an OKF-conformant bundle with the structure defined in SCHEMA.md. The stages:
- Extract - read each raw transcript, extract concepts/entities/quotes as JSON to
scripts/extractions/ - Canonicalize - merge all extractions into a frozen taxonomy (
scripts/manifest.json+scripts/taxonomy.json) - Write - write OKF concept/entity/source pages from the manifest (each with proper
type,title,descriptionfrontmatter per SCHEMA.md) - Index - build
index.mdfiles for each directory (OKF's navigation layer) - Validate - run
python lint.pyto enforce OKF conformance, link integrity, and index coverage
Process in batches per the guide. For channels under ~30 videos, this fits in one session. For larger channels, save your extraction JSONs and resume across sessions.
Step 3: Validate OKF conformance
python lint.py
This enforces the OKF contract: every .md has type frontmatter (E1), every relative link resolves (E2), every page appears in its directory's index.md (E3), sources/raw parity (E4). Fix all errors. The knowledge base is ready when lint passes clean.
04 同仓库更多 Skills
anti-sleep
Keep the Windows machine awake from WSL for a set duration or while a process runs.
anti-sleep
Keep the user's MacBook awake reliably with macOS caffeinate for a set duration or while a process runs. Use for "don't let my Mac sleep", "keep the screen on", "anti-sleep", "caffeinate", overnight work, or long builds. Unlike a normal background job, it survives temporary agent-shell cleanup.
security-audit
Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.
storm-research
Use when someone asks to run Storm Research, use the storm-research skill, run the STORM method on a topic, says "storm research this" / "storm report on X" / "give me a STORM briefing on X", or wants a multi-perspective, citation-verified HTML research briefing on a topic. Runs a 4-phase pipeline: five expert lenses (Practitioner, Academic, Skeptic, Economist, Historian) -> contradiction map -> synthesized HTML report -> adversarial peer review + primary-source verification. Best for topics where multiple viewpoints and fact-checked claims matter; overkill for a simple factual lookup.
research
Investigate a question against high-trust primary sources and capture the findings as a Markdown file in the repo. Use when the user wants a topic researched, docs or API facts gathered, or reading legwork delegated to a background agent.
last30days
Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube, TikTok, Hacker News, Polymarket, GitHub, and the web. Includes a doctor health check to diagnose broken or missing sources.