Youtube to docs

From DoIT-Artificial-Intelligence/youtube-to-docs · View interactive version

Youtube to docs is an AI agent skill from the GitHub repository DoIT-Artificial-Intelligence/youtube-to-docs. Process YouTube videos, playlists and channels with the youtube-to-docs MCP server. Use this when the user wants to: (1) get a transcript, (2) summarize a video or generate Q&A, speakers and tags, (3) make an infographic, (4) make an audio or video summary, (5) translate the outputs, (6) make the vi

How to use this skill

Skill file

YouTube to Docs

You have the process_video tool from the youtube-to-docs MCP server. One call handles a video, a playlist, a channel or a comma-separated list of IDs. Each call writes a row per video to a CSV, with links to the files it creates.

If this skill was run with arguments ($ARGUMENTS), take the URL from them, pick the matching workflow below, and call process_video without asking for confirmation. Otherwise, work out the workflow from the request. Ask only about what you can't infer:

Model shorthand

| User says | model | tts_model | infographic_model | all_suite |

| :---------------------------- | :----------------------- | :------------------------------- | :----------------------- | :------------- |

| "gemini", "gemini flash", "flash" | gemini-3.5-flash-lite | gemini-3.8-flash-lite-tts-Kore | gemini-nano-banana-2.1 | gemini-flash |

| "gemini pro", "pro" | gemini-4-carbon | gemini-3.8-flash-tts-Kore | gemini-3-pro-image | gemini-pro |

| "aws" | bedrock-nova-2-lite-v1 | aws-polly-Ruth | gemini-3-pro-image | - |

| "gcp" | - | - | - | gcp-pro |

Workflows

Transcript only

"Get the transcript", "ytt".

process_video(url='...') fetches the YouTube captions. No model is needed.

Summary and infographic

"Make an infographic", "summarize this".

The tool also writes multimodal alt text for each infographic with the summary model. Set alt_text_model to use a different model.

Kitchen sink

"Everything", "kitchen sink", "ks", "video summary".

Accessible video: corrected captions and audio description (WCAG 2.1 / Section 508)

"Fix the captions", "make this compliant", "audio description", "best captions", "cc".

One run writes:

A 3-hour meeting takes about 20 minutes and costs about $3.

From the video itself

"Summarize from the video", "get the speakers' names right".

from_video='agentic' also generates the summary, one-sentence summary, speakers and Q&A with Gemini video understanding. agentic lets the model move through the video and needs Gemini 3.5 Flash-Lite or later. static samples frames at 1 FPS and works with any Gemini model. 'agentic,static' runs both.

AI transcription

Set transcript_source='default' (uses mai-transcribe-2) or an explicit STT model, e.g. 'mai-transcribe-2', 'gemini-3.5-transcribe', 'gemini-3.5-flash-lite' or 'gcp-chirp3'. mai-transcribe-2 and gemini-3.5-transcribe return word-level timestamps and add [Speaker N] labels on speaker changes. mai-transcribe-2 needs AZURE_TRANSCRIPTION_ENDPOINT and AZURE_TRANSCRIPTION_API_KEY. gcp- models need GOOGLE_CLOUD_PROJECT, and YTD_GCS_BUCKET_NAME is recommended. With an AI transcript, the tool also summarizes the YouTube transcript; set no_youtube_summary=True to skip that.

Output locations

Tool reference: `process_video`

| Argument | Description | Examples |

| :-------------------------- | :------------------------------------------------------------------------------------------------------------------ | :------------------------------------------------------------------- |

| url | Required. YouTube URL, video ID, playlist ID, channel handle, or comma-separated IDs. | https://youtu.be/..., PL..., @channel |

| model | LLM(s) for the summary, Q&A, speakers and tags. Comma-separated for more than one. | gemini-3.5-flash-lite |

| infographic_model | Image model(s) for infographics. Comma-separated for one infographic per model. | gemini-nano-banana-2.1, gemini-3-pro-image |

| alt_text_model | Model for the infographic alt text. Defaults to the summary model. | gemini-3.5-flash-lite |

| tts_model | Text-to-speech model and voice. | gemini-3.8-flash-lite-tts-Kore, gcp-chirp3-Kore, aws-polly-Ruth |

| all_suite | Model suite for everything. | gemini-flash, gemini-pro, gemini-flash-pro-image, gcp-pro |

| combine_infographic_audio | Combine the infographic and audio summary into an MP4. Needs tts_model and infographic_model. | True |

| translate | Translate all outputs: {model}-{language}, aws-translate-{language} or gcp-translate-{language}. | gemini-3.5-flash-lite-es, aws-translate-es, gcp-translate-es |

| corrected_captions | Make the video accessible (see above). 'default' for the best, or {model} / {model}-{source}. | default, gemini-4-carbon-youtube |

| from_video | Also generate outputs from the video itself. | agentic, static, agentic,static |

| transcript_source | Transcript source. Defaults to youtube when omitted, mai-transcribe-2 for 'default', or the STT model that corrected_captions corrects. | default, mai-transcribe-2, gemini-3.5-transcribe, gcp-chirp3 |

| no_youtube_summary | Skip the extra summary of the YouTube transcript when an AI transcript is used. | True |

| post_process | JSON operations on the transcript. The results become CSV columns. | '{"word count": "apple"}', '{"word count": ["apple", "banana"]}' |

| output_file | Where the CSV goes (see above). | workspace, sharepoint, hf, memory, none |

| hugging_face_dataset | Dataset for output_file='hf'. | username/my-dataset |

| verbose | Verbose logging. | True |

Where the files go

Files are saved in folders next to the CSV, and each one is linked from a CSV column:

Examples

| Request | Call |

| :---------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------------------------- |

| "Get me a transcript of this video." | process_video(url='...') |

| "Make an infographic for this video using Gemini Pro." | process_video(url='...', model='gemini-4-carbon', infographic_model='gemini-3-pro-image') |

| "Do a kitchen sink run on this video in Spanish." | process_video(url='...', all_suite='gemini-pro', combine_infographic_audio=True, verbose=True, translate='gemini-3.5-flash-lite-es') |

| "Summarize this playlist and save it to Drive." | process_video(url='PL...', model='gemini-3.5-flash-lite', output_file='workspace') |

| "Make the best accessible captions for this video." | process_video(url='...', corrected_captions='default') |

| "Correct the YouTube captions for this video for accessibility." | process_video(url='...', corrected_captions='gemini-4-carbon-youtube') |

| "Make an audio-described version of this video." | process_video(url='...', corrected_captions='default') |

| "Count how many times 'apple' appears in the transcript." | process_video(url='...', post_process='{"word count": "apple"}') |

| "Summarize this hearing from the video and get the names right." | process_video(url='...', model='gemini-4-carbon', from_video='agentic') |

Without the MCP server

If the process_video tool isn't available, run the CLI with uv. The URL or ID is a positional argument, so don't use --url:

uvx --from "youtube-to-docs[all]" youtube-to-docs B0x2I_doX9o                  # transcript
uvx --from "youtube-to-docs[all]" youtube-to-docs B0x2I_doX9o --all gemini-pro # kitchen sink
uvx --from "youtube-to-docs[all]" youtube-to-docs B0x2I_doX9o -cc              # accessible video

See docs/usage.md for every option.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.