Skip to content

Social share cards for every platform

Make every link to your site preview with the right title, description and image, on every network.

  • Free, no sign-up
  • 30 to 60 minutes with an agent
  • By Devvrat Hans
  • Version 1.0, updated Oct 26, 2026

1Your site and stack

Optional. The prompt adapts as you type; leave a field blank and the agent works it out.

2Copy it into your agent

social-share-cards.md66 lines, about 971 tokens

Paste into any coding agent: Claude Code, Cursor, Codex, Copilot, Windsurf or Cline.

# Social share cards for every platform

On launch day, links to the production site will be shared on X, LinkedIn, Slack, Discord, Reddit and in messages. A link with no image or the wrong title gets far fewer clicks. Give every public page a correct share card, generated from the page's own title and description so new pages get one automatically.

Site: not given. Find the production URL in the project config, or ask me.

## Ground rules

1. Read before you write. Explore the parts of the codebase this job touches and tell me what is already in place.
2. Plan, then stop. Give me a numbered plan: what you will change, in which files, and why. Wait for my approval before editing anything.
3. Fix things at their source (the shared layout, the config, the generator), not with one-off patches page by page.
4. Keep the project's conventions: its framework APIs, file layout, naming and code style. Add no new dependency without asking.
5. Where something is already done well, say so and leave it alone.

## You will not

- Edit `.env` files, secrets or API keys, or print their values.
- Deploy, push, merge or publish anything.
- Delete data, or run migrations or scripts against a production database.
- Add tracking, third-party scripts or links to any site I did not ask for.
- Change copy, design or behaviour that this job does not need.
- Change the site's visual design or logo.

## Your stack

- Framework: Work out the framework, router and build output from the project files (package.json, lockfiles, framework config) before planning, and say which you found.
- Host: Work out where the site is hosted from the config files (vercel.json, netlify.toml, wrangler config, Dockerfile, fly.toml) and say which you found.

## Steps

### 1. Audit the current tags

Find where `og:` and `twitter:` tags are set. For the homepage, pricing, and one page of each dynamic type (a blog post, a product page, a profile), list what each tag would be. Flag pages that inherit the homepage's card by mistake: that is the most common bug.

### 2. Set the full tag set from one place

Every public page needs, built from the page's own data in the shared metadata helper:

- `og:title`, `og:description`, `og:url` (the canonical URL), `og:type` (`website`, or `article` for posts), `og:site_name`, `og:image` with `og:image:width`, `og:image:height` and `og:image:alt`;
- `twitter:card` set to `summary_large_image`, plus `twitter:title`, `twitter:description` and `twitter:image` (the same image), and `twitter:site` if there is an X account.

Use absolute URLs for images: many crawlers ignore relative ones.

### 3. An image for every page

Images should be 1200 x 630 pixels, under about 5 MB (smaller is better), PNG or JPEG, with the important text away from the edges. Static pages can use designed images; dynamic pages (posts, products) should get a generated image with the title on it, using the framework's image generation if it has one (for example `ImageResponse` in Next.js) or a build step. Keep one good default for pages without their own.

### 4. Check the crawlers can fetch it

Make sure image URLs return 200 with the right `Content-Type` and are not blocked by robots.txt, auth or bot protection, and that pages send the tags in the server HTML (share crawlers do not run JavaScript).

## Done means

- [ ] Every public page has its own og:title, og:description, og:url and og:image with dimensions and alt text.
- [ ] Every page has a summary_large_image X card using the same image.
- [ ] Dynamic pages get a generated image with their own title.
- [ ] Image URLs are absolute, return 200 and are not blocked to crawlers.

## Report back

When you finish, give me:

- what you changed, file by file;
- anything you skipped, and why;
- anything I must do by hand (DNS records, dashboards, accounts, deploys);
- how to check each change on the live site.

One-line version

For agents that can read a URL. It fetches this prompt with your settings applied.

Read https://abacklaunch.com/prompts/social-share-cards.md and follow it for this project.

3Check the result

When the changes are live, run these free checks. Add your site URL above and each one opens already running on it.

This prompt will not

  • Edit .env files, secrets or API keys, or print their values.
  • Deploy, push, merge or publish anything.
  • Delete data, or run migrations or scripts against a production database.
  • Add tracking, third-party scripts or links to any site I did not ask for.
  • Change copy, design or behaviour that this job does not need.
  • Change the site's visual design or logo.

It reads your code first, shows you a plan, and waits for your approval before it changes anything.

What you get

  • Complete Open Graph and X card tags on every page, from one shared helper
  • A 1200 x 630 share image for every page, generated for dynamic pages
  • A fix for pages that were showing the homepage's card

How to use this prompt

  1. 1

    Describe your stack

    Add your site, framework and host. The prompt adapts; blank fields are left for the agent to work out.

  2. 2

    Paste it into your agent

    Open your project in Claude Code, Cursor, Codex, Copilot, Windsurf or Cline, and paste the prompt or the one-line version.

  3. 3

    Approve the plan

    The agent reads your code, shows you a plan with the files it will touch, and waits. Change anything you disagree with.

  4. 4

    Check the result

    When the changes are live, run the free checks below on your site to confirm each fix.

What the agent does

On launch day, links to the production site will be shared on X, LinkedIn, Slack, Discord, Reddit and in messages. A link with no image or the wrong title gets far fewer clicks. Give every public page a correct share card, generated from the page's own title and description so new pages get one automatically.

  1. 1. Audit the current tags

    Find where og: and twitter: tags are set. For the homepage, pricing, and one page of each dynamic type (a blog post, a product page, a profile), list what each tag would be. Flag pages that inherit the homepage's card by mistake: that is the most common bug.

  2. 2. Set the full tag set from one place

    Every public page needs, built from the page's own data in the shared metadata helper:

    • og:title, og:description, og:url (the canonical URL), og:type (website, or article for posts), og:site_name, og:image with og:image:width, og:image:height and og:image:alt;
    • twitter:card set to summary_large_image, plus twitter:title, twitter:description and twitter:image (the same image), and twitter:site if there is an X account.

    Use absolute URLs for images: many crawlers ignore relative ones.

  3. 3. An image for every page

    Images should be 1200 x 630 pixels, under about 5 MB (smaller is better), PNG or JPEG, with the important text away from the edges. Static pages can use designed images; dynamic pages (posts, products) should get a generated image with the title on it, using the framework's image generation if it has one (for example ImageResponse in Next.js) or a build step. Keep one good default for pages without their own.

  4. 4. Check the crawlers can fetch it

    Make sure image URLs return 200 with the right Content-Type and are not blocked by robots.txt, auth or bot protection, and that pages send the tags in the server HTML (share crawlers do not run JavaScript).

Done means

  • Every public page has its own og:title, og:description, og:url and og:image with dimensions and alt text.
  • Every page has a summary_large_image X card using the same image.
  • Dynamic pages get a generated image with their own title.
  • Image URLs are absolute, return 200 and are not blocked to crawlers.

Questions

Why does my old image still show after I fixed it?

Networks cache previews. LinkedIn's Post Inspector re-scrapes a URL on request; Slack and X refresh after a while. A changed image URL (a version in the file name) shows up fastest.

Is one image for the whole site enough?

It works, but a card that shows the page's own title gets more clicks and makes it obvious which page is being shared. The prompt keeps a default and adds per-page images where pages have their own data.

Do share cards help SEO?

Not directly as a ranking factor, but they decide how many people click a shared link, and shares on launch day are a large part of the traffic.

Does this prompt add links to Aback Launch to my site?

No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.

Which coding agents does it work with?

Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.

Is it safe to run on my real codebase?

The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.

Changelog

  • v1.0First version.

Launch your startup on Aback Launch

Get a launch page that search engines and AI assistants can read, a place in the weekly launch list, and a review by a real person. Free to join.