P

How to Write LinkedIn Posts with GitHub Copilot

GitHub Copilot, GitHub's AI assistant, is not limited to code generation. With its natural language processing capabilities, it can help you write impactful LinkedIn posts directly from your code editor. Whether you're a developer, entrepreneur, or content creator, Copilot helps you structure your ideas, generate captivating hooks, and optimize your posts for maximum engagement. In this tutorial, you'll learn how to use GitHub Copilot Chat to create professional LinkedIn posts, from initial brainstorming to final publication. You'll discover how to formulate effective prompts, iterate on drafts, and adapt the tone to your target audience.

Prerequisites

  • 1.Have an active GitHub Copilot subscription (Individual, Business, or Enterprise)
  • 2.Have Visual Studio Code installed with the GitHub Copilot and GitHub Copilot Chat extensions
  • 3.Have an active LinkedIn account
  • 4.Have an idea or topic you want to publish about

Steps

1

Define Your Goal and Audience

Before soliciting Copilot, clarify the purpose of your LinkedIn post. Open a new file in VS Code (e.g., post-linkedin.md) and start by describing your context in the Copilot chat. Specify your industry, target audience, and the post's objective (generate leads, share expertise, tell an experience). This contextual step allows Copilot to produce well-targeted content from the start.

I am [YOUR_ROLE] in the [YOUR_INDUSTRY] sector. I want to write a LinkedIn post for [YOUR_TARGET_AUDIENCE] on the following topic: [YOUR_TOPIC]. The goal is to [GOAL: inspire / educate / generate engagement / share an experience]. Propose 3 different angles for this post.

Tip: The more context you give Copilot, the more relevant the result will be. Don't hesitate to mention your usual tone (formal, casual, humorous) and examples of posts that inspire you.
2

Generate a Compelling Hook

The hook is the most important element of a LinkedIn post: it determines whether users will click "see more." Use Copilot Chat to generate multiple hook variants based on the angle you've chosen. The best LinkedIn hooks use numbers, ask a provocative question, or start with a surprising statement. Ask Copilot to propose different styles so you can choose the one that resonates best.

Generate 5 different hooks for a LinkedIn post about [YOUR_TOPIC]. Use these varied styles: 1) A provocative question, 2) A striking figure or statistic, 3) A counterintuitive statement, 4) A one-sentence personal story, 5) A teaser bullet list. Each hook must be a maximum of 2 lines and make people want to click 'see more'.

Tip: On LinkedIn, only the first 3 lines are visible before the "see more" button. Test your hooks by reading them aloud: if they don't grab attention immediately, rework them.
3

Structure and Write the Post Body

Once your hook is selected, ask Copilot to develop the post body. A good LinkedIn post follows a clear structure: hook, development in 3-5 key points, and a call to action. Favor short sentences, frequent line breaks, and moderate emoji use. Copilot can help transform raw ideas into fluid, engaging text that respects platform conventions.

From this hook: [YOUR_CHOSEN_HOOK], write a complete LinkedIn post of 150 to 200 words. Structure the post with: short sentences (max 15 words), line breaks between each idea, 3 to 5 key points, a tone that is [professional yet approachable / inspiring / educational]. End with an engaging call to action that invites comments. Use no more than 3 emojis in the entire post.

Tip: LinkedIn posts between 1200 and 1500 characters generate the most engagement. Ask Copilot to check the length and adjust if necessary.
4

Optimize the Post for the LinkedIn Algorithm

The LinkedIn algorithm favors certain formats and practices. Use Copilot to optimize your post: add relevant hashtags, rephrase to encourage comments rather than simple likes, and ensure the post contains no external links (which LinkedIn penalizes). Copilot can also help identify the best hashtags in your niche and rephrase your call to action for maximum interaction.

Optimize this LinkedIn post to maximize engagement: [PASTE_YOUR_POST]. Check the following points: 1) Does the call to action invite comments? 2) Propose 5 relevant hashtags (mix of popular and niche), 3) Are there external links to move to comments? 4) Is the post visually airy enough? 5) Suggest a final question that generates debate. Return the optimized post with your modifications.

Tip: Avoid placing links in the post body: the LinkedIn algorithm reduces reach for posts containing URLs. Place your links in the first comment.
5

Iterate and Personalize the Final Result

Copilot's first draft is rarely perfect. Reread the post and identify what sounds too generic or too "AI." Use Copilot for targeted iterations: add a personal anecdote, replace clichéd phrasing, adjust the language level. The goal is to get a post that reflects you and that your network will recognize as authentic. Then copy the final result into LinkedIn and publish at the optimal time.

Rephrase this LinkedIn post to sound more authentic and personal: [PASTE_YOUR_POST]. Replace generic phrasing with more natural expressions. Add a space for me to insert a personal anecdote (indicate [YOUR_ANECDOTE_HERE]). Remove anything that looks like AI-generated content. Keep the same message and structure, but make it unique.

Tip: Publish your LinkedIn posts between 8am and 10am on weekdays to maximize visibility. Tuesday and Thursday are the days with the highest engagement on the platform.

Common mistakes to avoid

  • Using the default prompt without context: simply asking 'write a LinkedIn post' produces generic, unengaging content. Always provide your role, audience, and goal.
  • Publishing Copilot's text without personalizing it: AI-generated posts are often detectable by your audience. Always add personal anecdotes and your unique writing style.
  • Ignoring LinkedIn format constraints: writing dense paragraphs without line breaks or exceeding 3000 characters drastically reduces engagement and readability on mobile.
  • Overloading the post with hashtags: using more than 5 hashtags is counterproductive and gives a spammy impression. Favor 3 to 5 targeted, relevant hashtags.
  • Including external links in the post body: LinkedIn's algorithm penalizes posts containing URLs, reducing their reach by 40-50%. Always place your links in the comments.

FAQ

Can GitHub Copilot write LinkedIn posts in languages other than French?
Yes, GitHub Copilot supports many languages. Simply specify your desired language in your prompt (e.g., "Write this post in English"). Copilot can also translate an existing post while adapting it to the cultural norms of the platform in the target country. For best results, write your prompt in the desired output language.
Copilot Chat or inline completion: which feature should I use to write posts?
For writing LinkedIn posts, prioritize Copilot Chat. The chat window allows for iterative exchanges, rewording, and natural dialogue to refine your content. Inline completion is better suited for code and short texts. With Copilot Chat, you can request variants, adjust the tone, and iterate easily without losing context.
Does LinkedIn penalize AI-generated content?
LinkedIn does not explicitly penalize AI-generated content, but its algorithm favors authenticity and engagement. A post that seems generic or impersonal will naturally receive fewer interactions. The key is to use Copilot as a writing assistant, not as the sole author: always personalize the content with your experiences, voice, and opinions to maintain the authenticity your network expects.

Related tutorials

How to use this prompt

  1. Copy the prompt with the button above.
  2. Paste it into ChatGPT, Claude or your favorite AI assistant.
  3. 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 Product Descriptions with Gemini

Writing convincing product descriptions is a challenge for any e-commerce merchant. Each product requires a unique, SEO-optimized description that is persuasive enough to trigger a purchase. In this tutorial, you'll learn how to use Gemini to produce professional product descriptions in minutes.

How to Write Product Sheets with GitHub Copilot

Writing compelling product sheets is a major challenge for e-commerce professionals and marketing teams. GitHub Copilot, well known to developers, proves to be a formidable ally for structured content creation as well.

How to Write Subtitles with DALL-E

DALL-E, the artificial intelligence image generator developed by OpenAI, can be a valuable ally for creating visuals that include impactful subtitles.

How to Write Subtitles with GitHub Copilot

GitHub Copilot, the AI-powered coding assistant, is not limited to code generation. It can also help you write impactful subtitles

How to Draft a Contract with GitHub Copilot

GitHub Copilot, Microsoft's AI assistant integrated into Visual Studio Code, is not limited to code generation. Thanks to its advanced natural language processing capabilities, it can help you draft structured legal documents like contracts. Whether you are a freelancer, entrepreneur, or project manager, Copilot allows you to quickly create a first draft of a contract while respecting essential clauses. In this tutorial, you will learn how to use GitHub Copilot to generate a professional contract step by step, customizing each section to your needs. Note: the result must always be reviewed by a legal professional before signing.

How to Draft Terms of Service with GitHub Copilot

Terms of Service (ToS) are a legal document essential for any website or application. They define the rules for using your service, protect your interests, and inform users of their rights and obligations. Drafting complete and compliant ToS can seem complex, but GitHub Copilot simplifies this process significantly. With artificial intelligence, you can generate a solid structure, cover essential clauses, and adapt the document to your specific context. This tutorial guides you step by step to create professional ToS using GitHub Copilot as a writing assistant, while keeping in mind that legal validation is still recommended.

Get new prompts every week

Join our newsletter.