How to Write a Video Script with GitHub Copilot
Writing a video script requires structure, creativity, and a good understanding of your audience. GitHub Copilot, the AI assistant integrated into your code editor, can help you with this task far beyond simple software development. By leveraging its text generation capabilities directly in VS Code, you can create complete video scripts — from the opening hook to the final call to action. This tutorial guides you step by step to turn a raw idea into a structured, ready-to-shoot video script using GitHub Copilot Chat and smart comments. Whether you produce YouTube videos, technical tutorials, or social media content, you'll discover how to leverage this tool to accelerate your creative process while maintaining editorial control over your content.
Prerequisites
- 1.Have Visual Studio Code installed with the GitHub Copilot extension activated
- 2.Have a GitHub Copilot subscription (Individual, Business, or Enterprise)
- 3.Have an idea for a topic or a brief for the video to script
- 4.Know the basics of using VS Code and Copilot Chat
Steps
Define the framework and brief for the video
Open a new Markdown (.md) file in VS Code. Start by setting the context of your video by writing a structured brief: topic, target audience, desired duration, tone, and main goal. This allows Copilot to have the necessary context to generate relevant suggestions throughout the process.
You are a professional video scriptwriter. I want to create a [DURATION] video on the following topic: [TOPIC]. The target audience is [AUDIENCE]. The tone should be [INFORMAL/CASUAL/PROFESSIONAL]. The goal is [GOAL]. Generate a complete brief with the key messages to convey.
Generate the structure and outline of the script
Use Copilot Chat to create a detailed outline of your script. Ask it to break the video into logical sections with estimated timecodes. This step is crucial because it defines the pace and narrative progression of your video. Review and adjust the outline before moving to full writing.
Based on the following brief, create a detailed video script outline with: 1) A catchy opening hook (15 seconds), 2) An introduction of the topic, 3) The main sections with estimated timecodes, 4) Transitions between each part, 5) A conclusion with a call to action. Target total duration: [X minutes].
Write the script section by section
Go through each section of the outline and ask Copilot to write the full text. Work section by section rather than generating everything at once to maintain control over tone and consistency. Include staging cues (B-roll, graphics, transitions) in brackets directly in the script.
Write the full text for the '[SECTION_NAME]' section of my video script. The tone should be [CHOSEN_TONE]. Include visual cues in brackets [B-ROLL: ...] and natural pauses. The text should be conversational, as if speaking directly to the camera. Duration of this section: approximately [X] seconds.
Optimize the script for speech and rhythm
A good video script reads smoothly aloud. Ask Copilot to adapt the text so it sounds natural when spoken: short sentences, simple vocabulary, strategic repetitions of key points. Also check timing by counting about 150 words per minute to estimate actual duration.
Rewrite this script so that it is optimized to be spoken out loud in front of a camera. Simplify long sentences, replace jargon with accessible terms, add breath markers (/), and ensure each sentence is at most 20 words. Also estimate the total duration in minutes (base: 150 words per minute).
Finalize with metadata and supplementary elements
Complete your script with all the elements needed for production: video title, SEO-optimized description, tags, YouTube chapters with timecodes, and suggested thumbnail. Copilot can also generate formatted subtitles or a summary for social media from your finalized script.
Based on this finalized video script, generate: 1) 5 catchy, SEO-optimized YouTube title proposals, 2) A 200-word description with relevant keywords, 3) 15 relevant tags, 4) Chapters with timecodes, 5) 3 textually described thumbnail ideas, 6) A hook post for social media.
Common mistakes to avoid
- ✗Generating the entire script in a single request, which produces generic, personality-free text — always work section by section
- ✗Not adapting the generated text for speech: a script written to be read and a script written to be spoken are very different in rhythm and vocabulary
- ✗Forgetting to provide context about the target audience, leading Copilot to produce content that is too vague or poorly calibrated in terms of technical level
- ✗Accepting the first suggestion without iterating: always ask for variations and combine the best elements from each proposal
- ✗Neglecting visual and staging cues in the script, which complicates filming and editing later
FAQ
Is GitHub Copilot suitable for writing video scripts or only code?
What is the maximum script length Copilot can handle effectively?
How to maintain a consistent and personal tone throughout the generated script?
Related tutorials
How to use this prompt
- Copy the prompt with the button above.
- Paste it into ChatGPT, Claude or your favorite AI assistant.
- Replace the bracketed variables with your details, then refine the result.
About Prompt Guide
Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.
More tutorials
How to Write a Video Script with Mistral
Writing a compelling video script requires structure, creativity, and a good understanding of your audience. Mistral, the French AI assistant,
How to Write an Email with ChatGPT
Writing a professional or personal email can sometimes be time-consuming, especially when you're looking for the right tone and ideal wording. ChatGPT is a...
How to Write an Email with GitHub Copilot
GitHub Copilot, the AI assistant developed by GitHub and OpenAI, is not limited to code generation. With its integrated chat feature in VS Code, i
How to Write an Email with Perplexity
Perplexity AI is not just a smart search engine: it is also a writing assistant that can help you compose professional, personal, or commercial emails in seconds. In this tutorial, you will learn step by step how to use Perplexity to produce effective emails, save time, and improve the quality of your written communications.
How to Write an Internal Memo with GitHub Copilot
GitHub Copilot, the AI assistant developed by GitHub and OpenAI, is not limited to code generation. It can also assist you in writing
How to Write Cold Outreach Emails with GitHub Copilot
GitHub Copilot, GitHub's AI assistant, is not limited to code generation. With its chat feature integrated into VS Code, it can help you write compelling and personalized cold outreach emails.
Get new prompts every week
Join our newsletter.