social-screenshot-creator
Skill0 starsChanged 49 days agoMITView on GitHub
Generate pixel-perfect 2x Retina screenshots of social media posts for LinkedIn, Threads, and X (Twitter). Produces post cards and comments for all 3 platforms in one command. Trigger when user says "make a screenshot post", "generate fake social screenshot", "create post preview", or wants to visualize a post as a realistic social media capture.
- Installs packages
In this repository8 other files it gives its agents.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
All 3 platforms are rendered simultaneously via Playwright from a single post text input, with optional comment thread captures.
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Social Screenshot Creator
Generates realistic, high-resolution (2x Retina) screenshots of social media posts for LinkedIn (light theme), Threads (dark theme), and X / Twitter (black theme).
All 3 platforms are rendered simultaneously via Playwright from a single post text input, with optional comment thread captures.
⚡ Quickstart
Prerequisites
pip install playwright pillow
playwright install chromiumBasic Generation
python3 scripts/generate_screenshot.py \
--text "Your post content goes here. Paragraph breaks are preserved.\n\nKey takeaways: ..."Outputs 3 high-res images in ./screenshots/YYYY-MM-DD_slug/:
linkedin_post.png(LinkedIn Light card)threads_post.png(Threads Dark card)x_post.png(X.com Black card)
With Custom Persona & Avatar
python3 scripts/generate_screenshot.py \
--text "AI engineering is shifting from prompt-tuning to deterministic governance loops." \
--name "Sarah Connor" \
--handle "sarahconnor" \
--title "Robotics & AI Lead" \
--avatar "path/to/custom_avatar.jpg" \
--output-dir "./output"With Attached Comment Variant
python3 scripts/generate_screenshot.py \
--text "Main post text..." \
--comment "First follow-up comment or link drop..."This produces an additional 3 images capturing the post with its first threaded reply.
🛠️ CLI Flags & Options
| Argument | Default | Description |
--text | (Required) | Full body text of the post. |
--comment | None | Optional follow-up comment text. |
--name | Alex Rivers | Author display name. |
--handle | alexrivers | Social handle (without @). |
--title | AI Engineer & Systems Architect | Author headline / bio title. |
--avatar | assets/default_avatar.png | Path to author avatar image. |
--output-dir | ./screenshots | Destination directory. |
--li-time | 1d | Timestamp displayed on LinkedIn card. |
--threads-time | 2h | Timestamp displayed on Threads card. |
--x-time | May 1 | Timestamp displayed on X card. |
🎨 Rendering Engine
Uses headless Chromium via Playwright to snapshot semantic HTML/CSS templates at device_scale_factor=2 for crisp Retina display on mobile feeds and blogs.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

