x-post
Skill4 starsChanged 4 months agoMITView on GitHub
Creates an image for an X / Twitter post (a tweet image) at X's ratios, in the chosen orientation. Use when the user wants an "X image", a "Twitter visual", a "tweet image" or an "X post" for a project. Asks for the orientation (16:9 landscape by default, square, portrait) and produces a .tsx template at the right ratio, aligned with the brand guidelines, rendered as a PNG through the project's engine. Requires a project with its brand.md in place.
13 other projects use a version of this.
Adopted by
Most recently taken up by
- hanzhangzzz/agent-skills-zhtheir own version, first seen Oct 4, 2026
- Jakeschincariol/x-agent-skilltheir own version, first seen Sep 29, 2026
- t2y-kage/agent-skillstheir own version, first seen Sep 11, 2026
- publora/skillstheir own version, first seen Sep 8, 2026
- schroneko/skillstheir own version, first seen Sep 3, 2026
- imMamdouhaboammar/x-posttheir own version, first seen Sep 1, 2026
Other versions13 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 13
- publora/skills★ 49same name
- rameerez/claude-code-startup-skills★ 31same name
- SpaceZephyr/allSkills★ 14same name
- win4r/x-post-skill★ 12same name
- anneheartrecord/charles-skill★ 4same name
- anneheartrecord/x-operation-skills★ 4same name
- Jakeschincariol/x-agent-skill★ 4same name
- dqtx760/skills-manage★ 2same name
- hanzhangzzz/agent-skills-zh★ 2same name
- t2y-kage/agent-skills★ 2same name
3 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- brand-assetsSkill
- campaignSkill
- facebook-carouselSkill
- facebook-pageSkill
- facebook-postSkill
- import-referenceSkill
- linkedin-carouselSkill
- linkedin-pageSkill
- linkedin-postSkill
- new-projectSkill
- new-templateSkill
- og-imageSkill
- x-carouselSkill
- x-pageSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Check templates/<project>/ and brands/<project>/brand.md.
- Distinctive: line 30
Which orientation?: Ask. Default: 16:9 landscape (the classic format of the X feed).
- Very specific: line 32
Default slug x-post (or x-post-<orientation> if there are several).
- Very specific: line 34
Read brands/<project>/brand.md: palette, type, logo variants, don'ts.
- Very specific: line 35
Read brands/<project>/project.md if it exists: set the tone and the
- Distinctive: line 38
Ask for the message: short headline + standfirst (1 sentence).
- Distinctive: line 103
Check the PNG: exact dimensions for the orientation, opaque background, correct ratio (16:9 / 1:1 / 4:5).
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
x-post: X / Twitter post image
Goal: produce the PNG asset of a tweet image, at the chosen ratio, aligned with the guidelines.
This is a specialization of new-template with the X constraints hard-coded. Same
conventions: the Template contract, assets through brand(), fonts discovered
in fonts/, export default ... satisfies Template.
Status of the dimensions. X documents no dimensions for organic tweet images; only the weight (5 MB) is official. The sizes below are conventions aligned with the ratios X lists for its advertising formats.
0. Prerequisites (blocking)
The chain project -> template folder -> guidelines must exist:
- Resolve
<project>(from the arguments, otherwise ask). - Check
templates/<project>/andbrands/<project>/brand.md. - Missing guidelines or project -> STOP: ask for
/new-project <project>first. No visual without guidelines (CLAUDE.md rule).
1. Frame it
- Which orientation? Ask. Default: 16:9 landscape (the classic format of the X feed). Otherwise square (1:1) or portrait (4:5).
- Default slug
x-post(orx-post-<orientation>if there are several). Check that the target.tsxdoes not exist. - Read
brands/<project>/brand.md: palette, type, logo variants, don'ts. - Read
brands/<project>/project.mdif it exists: set the tone and the claims (don't invent figures or promises). If absent -> ask for the tone and the message rather than guessing. - Ask for the message: short headline + standfirst (1 sentence). No paragraph.
2. X constraints (to respect)
| Orientation | Size (px) | Ratio | Status |
| Landscape (default) | 1600x900 | 16:9 | Convention (X ads ratio) |
| Square | 1080x1080 | 1:1 | Convention (X ads ratio) |
| Portrait | 1080x1350 | 4:5 | Convention (X ads ratio) |
- Format: PNG or JPG, opaque background, ≤ 5 MB (the official limit for tweet images; trivial with flat rendering).
- The tweet's text lives outside the image, in the post: don't write everything into the visual. One idea per image.
- Legible when small: the X feed scrolls fast and narrow on mobile. Large headline, short standfirst, strong contrast, safe area of about 80 px.
- X tone: direct, punchy, concise. The feed rewards a sharp line.
3. Write the template
templates/<project>/<slug>.tsx, with colors as constants taken from the
guidelines. Pick SIZE according to the orientation. Skeleton:
import type { ReactNode } from "react";
import { brand, type Template } from "brand-artisan";
// import { readFile } from "node:fs/promises"; // if you load the mark
// Pick according to the orientation:
const SIZE = { width: 1600, height: 900 }; // Landscape 16:9 (default)
// const SIZE = { width: 1080, height: 1080 }; // Square 1:1
// const SIZE = { width: 1080, height: 1350 }; // Portrait 4:5
// <Project> guideline palette (from brands/<project>/brand.md).
const INK = "#......";
function render(): ReactNode {
return (
<div
style={{
width: "100%",
height: "100%",
display: "flex",
flexDirection: "column",
justifyContent: "center",
padding: 80, // safe area
backgroundColor: INK, // opaque background
}}
>
{/* logo + large headline + short standfirst, strong contrast */}
</div>
);
}
export default { size: SIZE, title: "<Project> X post", render } satisfies Template;Shared conventions: assets through brand("<project>/..."), fonts discovered in
fonts/; a missing font -> the "missing font" appendix in new-template, never
silently. Keep the code minimal.
4. Verify
npm run typecheck-> green.npm run build-> writesout/<project>/<slug>.png.- Check the PNG: exact dimensions for the orientation, opaque background, correct ratio (16:9 / 1:1 / 4:5).
- Preview:
npm run devthen/<project>/<slug>; check legibility shrunk to the width of a mobile feed.
Success criterion: a PNG at the dimensions of the chosen orientation, opaque,
legible when small, punchy in tone, and using only colors and type from
brand.md.
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.

