Index of every page on this site: llms.txt
All skills
devhims avatar

/youtube-ctx

@4217771
Run it yourself

Personal, local-machine YouTube context for one-off, low-to-moderate usage. Use for public YouTube search, transcripts, metadata, comments, channels, playlists, storyboard inspection, and optional exact-frame verification without an account or hosted service. Also use to check suspected transcript misspellings, misheard names or terms, and inaccuracies against video context or on-screen evidence. Requires Node.js 18.17+; FFmpeg is optional and needed only for exact frames.

Use this Skill: https://skilld.dev/gh/devhims/video2ctx/youtube-ctx

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesdirect.md

≈814 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Direct context workflow

Run the bundled executable for stateless YouTube search and extraction. It sends requests from the user's machine directly to YouTube and requires no video2ctx account, API key, hosted service, or npm installation.

Run an operation

Resolve scripts/youtube.mjs relative to the parent skill directory containing SKILL.md, then invoke it with Node.js. Use its absolute path when the user's working directory is elsewhere.

node <skill-directory>/scripts/youtube.mjs --help

Search before extraction when the user supplied a topic rather than a known resource ID:

node <skill-directory>/scripts/youtube.mjs search \
  --query "agent skills" \
  --type video \
  --captions-only

Extract a transcript from a known video:

node <skill-directory>/scripts/youtube.mjs transcript \
  --video-id dQw4w9WgXcQ \
  --format text

Use --format text when the task needs transcript content or a summary rather than timestamps. Use --format segments for segment timing and --format words only for word-level timing. The legacy --granularity segment|word flag remains supported, but do not combine it with --format.

The executable writes one JSON value to stdout. Parse that value and use it to answer the request. Treat stderr as a JSON error payload and inspect error.message alongside error.code and error.retryable; preserve the classified failure instead of converting it to an empty result. For blocked network requests, follow the parent skill's network-failure guidance before switching to the hosted fallback.

Choose the operation

  • search — videos, channels, or playlists matching a query
  • tracks — source caption tracks and translation targets
  • transcript — compact text, timed segments, or timed words
  • comments — one page, or a bounded multi-page collection with --all --max-pages <n>
  • details — video metadata and availability
  • endscreen — interactive end-screen elements
  • channel-info — channel identity and public About information
  • channel-videos — one Videos-tab page
  • channel-playlists — one Playlists-tab page
  • playlist — playlist metadata and one video page

Use --help as the source of truth for flags and accepted values.

Bound and verify

  • Give pagination an explicit request or page budget. Reuse a continuation only with the same operation and query that produced it.
  • Inspect meta.partial and meta.warnings whenever the returned resource provides them and the answer implies completeness. endscreen returns an array without meta.
  • Call tracks first when transcript success depends on a particular source or translation language.
  • Use OUTBOUND_PROXY_URL for an HTTP(S) proxy when the user's network requires one. Prefer the environment variable over --proxy so credentials do not appear in the process list.
  • Expect YouTube's undocumented response shapes and client profiles to change. Report classified upstream failures accurately.

Completion criteria

The requested local operation completed within an explicit pagination budget; JSON output was parsed; partial-result warnings were reflected where relevant; and any failure retained its error code and retryability.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning8d3 checks · Risk SAFE
  • Gen Agent Trust Hub8d

    The skill facilitates local searching and data extraction from YouTube using Node.js scripts. It possesses a high attack surface for indirect prompt injection as it processes untrusted YouTube content like transcripts and comments, though it includes explicit instructions for the AI to treat this data as untrusted.

  • Socket8d

    No alerts

  • Snyk8d

    Risk: MEDIUM · 1 issue

Signed by skilld at 4217771. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 weeks ago

README badge

README badge for devhims/video2ctx/youtube-ctx