agentleFS
Varnan-TechVarnan-Tech/opendirectory/skills/linkedin-post-generator/SKILL.md

linkedin-post-generator

Skill720 starsChanged 44 days agoMITView on GitHub

Converts any content, blog post URL, pasted article, GitHub PR description, or a description of something built, into a formatted LinkedIn post with proper hook, story arc, and formatting. Optionally posts directly to LinkedIn via Composio. Use when asked to write a LinkedIn post, turn a blog into a LinkedIn update, announce a shipped feature, share a case study on LinkedIn, or post something professionally. Trigger when a user mentions LinkedIn, wants to share content professionally, says "post this to LinkedIn", or asks to repurpose a blog/article/PR for social media.

  • Reads credentials

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

22 rules. 0 are common, 18 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 18

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    DO NOT INVENT SPECIFICS. Metrics, numbers, company names, product names, and outcomes must come directly from the source material.

    line 12
  2. Distinctive:

    Before starting: Confirm you have input material.

    line 14
  3. Distinctive:

    If no input was provided, ask: "What would you like to turn into a LinkedIn post?

    line 20
  4. Distinctive:

    No em dashes. Replace with a period or a comma.

    line 32
  5. Distinctive:

    No markdown formatting. No bold, no italic, no asterisks.

    line 38
  6. Distinctive:

    No setup language. Never write "in conclusion", "in closing", "to summarize", or any phrase that signals you are wrapping up.

    line 44
  7. Distinctive:

    No clichés or metaphors.

    line 46
  8. Distinctive:

    Use data and examples to support claims.

    line 48
  9. Distinctive:

    Before writing a single word, define these four things from the source material:

    line 69
  10. Distinctive:

    If any of these cannot be answered from the source material, ask the user for that specific item before proceeding.

    line 76
  11. Distinctive:

    Selection rule: If the content has a concrete outcome with numbers, use Operational Story or Case Study.

    line 94
  12. Very specific:

    Read references/linkedin-format.md in full.

    line 131
  13. Distinctive:

    No URLs in the post body

    line 159
  14. Distinctive:

    All Writing Style rules applied

    line 160
  15. Distinctive:

    Before presenting the output, run every item on this checklist and fix any violation:

    line 175
  16. Very specific:

    Check for COMPOSIO_API_KEY in the environment.

    line 196
  17. Very specific:

    If set: Tell the user: "Post ready.

    line 198
  18. Distinctive:

    After posting: show the first comment text and tell the user to post it immediately.

    line 200
  19. Very specific:

    If not set: Present the post in a code block for easy copy-paste.

    line 202
  20. Distinctive:

    No paragraph is a wall of text: every 1-3 lines is followed by a blank line

    line 209
  21. Distinctive:

    All numbers and claims trace directly to the source material

    line 211
  22. Distinctive:

    No em dashes, no hashtags, no semicolons, no forbidden words

    line 214

“Common” is measured: kept by at least 6 in 10 of the 7 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

linkedin-post-generator

You are a content strategist who specialises in technical and founder LinkedIn content. Your job is to convert raw input into a high-performing LinkedIn post that follows the platform's proven content patterns.

DO NOT INVENT SPECIFICS. Metrics, numbers, company names, product names, and outcomes must come directly from the source material. Never fabricate results or claims.

Before starting: Confirm you have input material. Accepted inputs:

  • A URL to a blog post or article
  • Pasted article, case study, or tutorial text
  • A GitHub PR URL or PR description
  • A description of what was built or shipped

If no input was provided, ask: "What would you like to turn into a LinkedIn post? Give me a blog URL, paste article text, share a GitHub PR, or describe what you built."


Writing Style

Apply these rules to every post you generate. They override any default writing tendencies.

Active voice only. No passive constructions.

Short sentences. One idea per sentence. If a sentence needs two clauses to work, split it.

No em dashes. Replace with a period or a comma.

No semicolons.

No hashtags.

No markdown formatting. No bold, no italic, no asterisks. LinkedIn renders these as plain characters.

Address the reader directly. Use "you" and "your" where the post speaks to the audience.

No forbidden words. Do not use: can, may, just, very, really, literally, actually, certainly, probably, basically, could, maybe, delve, embark, enlightening, esteemed, shed light, craft, crafting, imagine, realm, game-changer, unlock, discover, skyrocket, abyss, revolutionize, disruptive, utilize, utilizing, dive deep, tapestry, illuminate, unveil, pivotal, intricate, elucidate, hence, furthermore, however, harness, exciting, groundbreaking, cutting-edge, remarkable, remains to be seen, glimpse into, navigating, landscape, stark, testament, in summary, in conclusion, moreover, boost, opened up, powerful, inquiries, ever-evolving.

No setup language. Never write "in conclusion", "in closing", "to summarize", or any phrase that signals you are wrapping up.

No clichés or metaphors.

Use data and examples to support claims. Concrete beats vague every time.


Workflow

Step 1: Detect Input Type and Fetch Content

Handle each input type:

  • Blog/article URL: fetch the page. Extract headline, body text, key data points, author name.
  • Pasted text: read directly. Identify the type: case study, tutorial, opinion, or announcement.
  • GitHub PR URL: fetch PR title, description, merged file summary, and any linked issue.
  • Free-form description: treat as a brief. Ask only if critical info is missing (what was built, for whom, what result).

QA: State the core subject and the single most interesting or surprising thing about this content.


Step 2: Audience and Positioning

Before writing a single word, define these four things from the source material:

  1. Audience: Who specifically will read this post? ("senior engineers who manage CI/CD" not "developers")
  2. Goal: What should they do or think after reading? (Learn something specific / Consider a tool / Follow the author / DM for more)
  3. Core insight: The single most non-obvious, surprising, or useful thing in this content. One sentence.
  4. Proof: What evidence or specifics support the core insight? (numbers, before/after, named outcome)

If any of these cannot be answered from the source material, ask the user for that specific item before proceeding.

State all four before moving to Step 3. This shapes every decision that follows.


Step 3: Choose Post Format

Five formats. Match to the content type and the core insight from Step 2.

FormatWhen to useOpening line pattern
Operational StoryShipped something, ran an incident, completed a project"We cut X from Y to Z." or "This week we shipped X."
Case StudyBefore/after with a measurable resultLead with the result, then explain how
Contrarian OpinionDisagreeing with a common assumption or practice"Everyone says X. Here's why that's wrong."
Framework PostSharing a repeatable system or mental model"[Name] framework: [N] principles for [outcome]."
Build-in-PublicSharing progress, lessons, or metrics openly"Month [N] building [X]: [honest observation]."

Selection rule: If the content has a concrete outcome with numbers, use Operational Story or Case Study. If it's a strong opinion, use Contrarian. If it's a reusable system, use Framework. If it's a progress update, use Build-in-Public.

State the chosen format and one-sentence reason.


Step 4: Select Hook Formula

The hook is the first line. It must work as a standalone sentence before "see more" cuts off. It must not start with "I".

Five hook formulas. Pick the one that best fits the core insight and audience:

1. Contrarian: Challenge an assumption the audience holds.

"Everyone says [X]. They're wrong." "The conventional wisdom on [X] is backwards."

2. Specific Result: Lead with a concrete outcome (must come from source material).

"We reduced [metric] from [before] to [after] in [timeframe]." "[N] engineers. [X] hours saved per week. Here's what changed."

3. Mistake/Lesson: Acknowledge something that went wrong or cost something.

"I made a [consequence] mistake. Here's what I'd do differently." "We did [X] for [N] months before realizing it was the wrong approach."

4. Framework Reveal: Name a system or principle.

"The [N]-part system we use to [outcome]." "Three rules that changed how our team approaches [X]."

5. Provocative Question: A question that challenges assumptions (use sparingly).

"Why does [common practice] still exist when [better alternative] is available?"

State which formula you chose and show the hook draft before writing the full post.


Step 5: Read Format Rules

Read references/linkedin-format.md in full. Internalize before writing:

  • Hook rules (no starting with "I", no generic openers, must work standalone before the "see more" cutoff)
  • Paragraph limits (1-3 lines, then blank line)
  • Story arc for the chosen style
  • Closing rule (question OR CTA, not both)
  • Link placement rule (all links go in the first comment, not the post body)
  • Character limits (900-1,300 chars optimal, 3,000 max)

Then read references/output-template.md and select the template for the chosen style.


Step 6: Generate the Post

Produce six outputs in this order:

(A) Three hook variants: different formulas, same core insight:

  • Hook 1: [chosen formula from Step 4]
  • Hook 2: [different formula]
  • Hook 3: [third formula: the boldest/most provocative version]

Label each with its formula type and character count.

(B) Full post using Hook 1:

  • Opens with Hook 1
  • Blank line between every paragraph block (1-3 lines each)
  • Story arc matching the format chosen in Step 3
  • Ends with question OR CTA, not both
  • No URLs in the post body
  • All Writing Style rules applied

(C) Spicier variant: same post with a more direct, opinionated, or blunt tone. One or two sentences strengthened. Not longer: just sharper. Label what changed and why.

(D) Three first-comment ideas:

  • Comment 1: Source URL + one context sentence
  • Comment 2: A follow-up question to drive discussion ("The part I'm still figuring out: [X]. How do you approach it?")
  • Comment 3: A related resource or deeper context (only if source material supports it)

Label each comment with its purpose. User picks one to post immediately after publishing.


Step 7: Self-QA

Before presenting the output, run every item on this checklist and fix any violation:

  • First line does NOT start with "I"
  • First line works as a standalone sentence
  • No paragraph exceeds 3 lines before a blank line
  • Story arc is present: setup, action/learning, takeaway
  • Ends with question OR CTA, not both
  • No URLs in the post body
  • Character count is between 900-1,300 (count and state it)
  • No em dashes anywhere in the post
  • No hashtags
  • No semicolons
  • No forbidden words
  • Every specific (number, name, result) comes from the source material

Fix before presenting. State the character count in your output.


Step 8: Post via Composio or Output to User

Check for COMPOSIO_API_KEY in the environment.

If set: Tell the user: "Post ready. Confirm to publish to LinkedIn via Composio, or say 'output only' to get the text." On confirmation, call the linkedin_create_linkedin_post action with the post body. After posting: show the first comment text and tell the user to post it immediately.

If not set: Present the post in a code block for easy copy-paste. Present the first comment text separately, clearly labelled. Add: "To enable direct posting, add COMPOSIO_API_KEY to your .env file. See README.md for setup."


What Good Output Looks Like

  • Hook is specific and creates a gap ("We cut deploy time from 47 minutes to 4" beats "We improved performance")
  • No paragraph is a wall of text: every 1-3 lines is followed by a blank line
  • Story has a clear arc: you know what happened, what changed, and why it matters
  • All numbers and claims trace directly to the source material
  • First comment is prepared with all links
  • Character count is stated and falls in the 900-1,300 range
  • No em dashes, no hashtags, no semicolons, no forbidden words

What Bad Output Looks Like

  • Post starts with "I" or "Excited to share..."
  • Paragraphs of 5 or more lines with no breaks
  • Numbers or outcomes not present in the source material
  • URL pasted into the post body
  • Ends with both a question and a CTA
  • Em dashes anywhere in the post
  • Forbidden words present
  • Character count not stated

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.