ai-dict.org

AI automation

LinkedIn agent: posts, comments & DMs with Claude skills

By Gabriel SchaffrathLevel: BeginnerSteps: 8Updated November 2026

In short

The LinkedIn Agent Skill is a free open-source pack (MIT licence) of eleven Claude skills: /li-post turns one idea into a finished post with three hook options, /li-comment writes comments on other people’s posts, /li-reply answers the thread under your own, /li-plan plans the week, /li-profile scores your profile out of 100, /li-carousel builds document posts, /li-repurpose turns one long piece into a week of posts, /li-dm and /li-inbox handle messages, /li-audit analyses your stats – and /li-human checks every draft for AI-typical patterns. The one rule: the skills write, you post. Nothing is published automatically, because that breaks LinkedIn’s User Agreement.

What does this automation do for you?

The real win is a fixed routine instead of sporadic posts written whenever the mood strikes. The skills remove the blockage at the start: a half-finished idea becomes three hooks and a finished draft, someone else's post becomes a usable comment, a full inbox becomes a sorted list with reply suggestions. That pays off for freelancers, consultants and managers who want to use LinkedIn for clients or reach but cannot spend an hour a day on wording. The manual work that remains is exactly the work that counts: reading, filling in numbers, approving. In everyday terms this means that on Monday you know what goes out during the week, and in the evening you no longer close your laptop with the feeling that you have once again posted nothing.

What you need first

Free

  1. Open the repo on GitHub (github.com/avi691/linkedin-agent-skill) and copy the contents of skills/li-post/SKILL.md – plus hooks.json for posts, or rubric.json from li-profile for the profile check.
  2. Fill in the template templates/voice.md once: who you are, who you write for, how you sound, your positions and real numbers you are happy to use. Without this voice profile every draft sounds interchangeable.
  3. In a new chat (Claude or ChatGPT, free version) paste the skill text first, then your voice profile, then write your post idea underneath – the AI now works in “skill mode”.
  4. Pick one of the three hook options, check the finished text, replace placeholders such as {{your number}} with real values and paste the post into LinkedIn by hand.
Example prompt

Work according to the skill I pasted above (/li-post). My voice profile is below it. Write a LinkedIn post about this idea: [idea in 1–2 sentences]. First give me three hook options with their formula number, then the finished post: 900–1,300 characters, hook alone on line 1, short paragraphs, no links in the body, max 3 hashtags, no “Thoughts?” at the end.

Limits: Without installing, you lose the two Python scripts of the humanizer (/li-human) – the AI only checks for AI patterns by text rules. Skill text and voice profile must be pasted again in every new chat.

Premium / Automated

  1. Open Claude Code (type “claude” in a terminal or use the Code tab in the Claude desktop app) and paste this message: “https://github.com/avi691/linkedin-agent-skill – Install this skill, then confirm /li-post works.” Claude clones the repo and copies the eleven li-* folders to ~/.claude/skills/ – approve each step.
  2. Create your voice profile: paste three of your own posts and ask Claude to write ~/.claude/linkedin/voice.md from the template; then fill the “Proof” section with five real numbers (revenue, time saved, clients won, one costly mistake).
  3. Check your profile: feed /li-profile your headline, about text and last roles – you get a score out of 100 and rewrites in order of the biggest levers (headline and about first).
  4. Weekly routine (about 20 minutes a day): Monday /li-plan, every day /li-comment in batch for 5–10 posts, on post days “write Tuesday” → /li-post, /li-reply in the first hour after posting, Friday /li-inbox and /li-dm, monthly /li-audit with the LinkedIn analytics CSV.
Example prompt

/li-plan Here is what actually happened this week: [e.g. closed two client projects, lost one deal to a cheaper agency, rebuilt our onboarding]. Plan four posts (Proof, Opinion, Teach, Story) with angle and hook number, posting times for my B2B audience in the [Europe/London] timezone, and an engagement list of ten people (5 reach, 3 peers, 2 buyers).

Added value: All eleven skills as slash commands, humanizer scripts run locally (five checks: burstiness, specificity, slop density, fingerprint, voice – PASS from 70 points), weekly plan and post log are saved in ~/.claude/linkedin/, updates via the /plugin marketplace. No API key, no LinkedIn login needed.

Example: what the result looks like

This is what the reply from /li-post to a short idea looks like: three hooks, then the finished draft with placeholders.

Idea: We cut our onboarding from six weeks to two.

Hook variants:
Hook 1 (formula: number first): Six weeks of onboarding. Now two. And clients are happier than before.
Hook 2 (formula: admitting a mistake): Our onboarding was an obstacle course. We only noticed when a client walked away.
Hook 3 (formula: counter-thesis): Longer onboarding does not mean better clients. For us it was the opposite.

Draft (hook 2):
Our onboarding was an obstacle course. We only noticed when a client walked away.

Six weeks, four forms, three points of contact. Taken together, an imposition.

We cut everything that is not needed in the first week. What remained were two appointments and one checklist.

Result after {{your number}} months: onboarding in two weeks, {{your number}} percent fewer follow-up questions in support.

What in your process is only still there because it has always been there?

#Onboarding #CustomerExperience #Processes

Pitfalls and fixes

  1. The drafts sound smooth and interchangeable, even though you pasted the skill in correctly.

    Fix: Usually the voice profile is too thin. Add concrete positions, favourite words, taboos and two sentences from your best posts as a style sample, and the tone changes noticeably.

  2. In the free chat, the AI forgets the skill rules after a few messages and goes back to writing long paragraphs with links.

    Fix: Start a new chat for every post and paste the skill text and voice profile in again. Long chats dilute the rules, short ones keep them stable.

  3. After installation in Claude Code, /li-post does not respond and the command is treated as normal text.

    Fix: Check that the li-* folders really are in ~/.claude/skills/ and restart Claude Code once. Skills are usually only re-read on the next start.

  4. The humanizer returns FAIL below 70 points, and you do not know what to change.

    Fix: Look at the weakest of the five checks: for burstiness vary your sentence lengths, for specificity add numbers and names, for slop density cut the clichés. Then check again.

What does it cost?

The skill itself costs nothing; it is open source under the MIT licence. In the free version, a free account with Claude or ChatGPT is enough; you pay in convenience, because skill text and voice profile have to be pasted in again in every new chat and the humanizer scripts are missing. The installation needs a Claude Pro / Max subscription plus Claude Code; you do not need an API key or a third-party account. Paying is worth it as soon as you really run the weekly routine: daily comments in a batch, three to four posts a week, inbox on Friday. Then slash commands, local humanizer checks and the saved post log spare you the copying back and forth every single day. If you only post occasionally, stick with the free route.

How to take it further

Frequently asked questions

Does the agent post to LinkedIn automatically?

No, deliberately not. Automated posting via browser bots or unapproved tools breaks LinkedIn’s User Agreement and can get your account restricted. Every skill ends with a copy-ready block of text that you read, approve and paste yourself.

Do I need coding skills or an API key?

No. For the easiest path you paste one message into Claude Code – it installs everything itself and asks before each step. There is no API key, no LinkedIn login and no third-party account. The two humanizer scripts only need Python 3, which Macs usually already have.

Won’t the posts sound like AI?

That depends on your voice profile (voice.md): who you are, how you write, your positions and real numbers. Without it, drafts sound interchangeable. In addition, the humanizer removes invisible characters, em dashes and 113 stock AI phrases and scores every draft on five checks – but it explicitly does not guarantee anything against AI detectors.

Does the AI invent numbers or client examples?

No. The skills never invent metrics, clients or results. If a value is missing, the draft comes back with the placeholder {{your number}} and a flag – you fill in the real figure.