sergebulaev/linkedin-comment-drafter
Draft a LinkedIn comment on someone else's post from its URL, or reshare (repost) it to your feed with optional commentary. Use when the user pastes a post URL and asks to comment, engage, be first commenter, or repost with their thoughts. Produces 1-3 variants in the user's voice, picks a reaction, and publishes via Publora on approval. Not for replying to existing comments (use linkedin-reply-handler).
npx skills add https://github.com/sergebulaev/linkedin-skills --skill linkedin-comment-drafter
Produce conversation-provoking comments on any LinkedIn post from a URL. The skill targets the patterns that actually got author replies in 2026 testing and avoids the thesis-restatement patterns that die with zero engagement.
A LinkedIn post URL in any of the standard shapes (see the top-level SKILL.md URL table).
1-3 draft comment variants, each with:
LIKE, PRAISE, EMPATHY, INTEREST, APPRECIATION, or ENTERTAINMENTThen waits for user approval. On "post", calls Publora to react + comment.
Voice profile first (all drafts). If ../../references/voice-profile.md has filled: yes, load it and match the user's voice fingerprint, hard rules, and CTA/link style throughout. If it is not filled, mention once that linkedin-humanizer --mode profile can learn their voice from a few posts, then proceed with the generic voice rules.
lib.url_parser.parse_linkedin_url to get post_urn and, if present, the post's activity ID.APIFY_TOKEN is set, call lib.ApifyClient.fetch_post(url) for the post body and fetch_post_comments(post_id=..., max_items=10) for the top existing comments (so your draft doesn't duplicate an existing take). Both actors are no-cookies and cost roughly $0.001 + $0.005 per call on the Apify free tier. If APIFY_TOKEN is not set, ask the user to paste the post text and (optionally) top comments.references/comment-templates.md that fit the post's topic. Fill them with user-voice phrasing.lib.approval.render_approval_card. Include: target URL, each variant, reaction suggestion, a one-line "why this template fits".lib.publish(kind="comment", draft_text=<approved>, target_url=<post_url>, post_urn=<urn>, platform_id=<id>, reaction_type=<chosen>). The wrapper handles Publora / manual / diy routing.Same input as commenting (a post URL), but instead of commenting on the post you
reshare it to the user's own feed, optionally with a short take above it. Use
this when the ask is "repost", "reshare", or "share this with my network".
lib.fetch_post(url)), and check it isreshareable: the Apify payload exposes canShare and the shareUrn
(urn:li:share:* / urn:li:ugcPost:*). If canShare is False, tell the
user the author disabled resharing and stop.
user's voice: a genuine take, endorsement, or the reason this is worth a
colleague's time. Run the same humanizer pass (no em dashes, no AI vocab). A
plain reshare with no commentary is also valid; skip the draft if the user
just wants to amplify.
(or "plain reshare, no commentary").
lib.repost(post_url, commentary=<approved or None>).The wrapper resolves the correct shareUrn from Apify (do not hand-convert an
activity id, the share id can differ), refuses posts with resharing off, and
routes Publora / manual / diy. Manual tier returns copy-paste steps ("Repost
with your thoughts"). The new reshare URN is result["reshare"]["id"].
Commentary cap is 3000 chars (LinkedIn), but a tight one or two sentences
outperforms a wall of text. This is the tool linkedin-employee-advocacy uses
to reshare brand and colleague posts.
references/comment-templates.md for full list)[Name] the [their-thesis] argument misses one piece.. [what-moved]. when [their-condition], the real differentiator is [specific-skill], not [their-focus].half the [population] I see now [behavior]. the [old-assumption] broke around [date]. [new-rule].when X the system does Y, when X' it does Y'. that's when [outcome] kicks in.the harder version of this question is..Global voice rules: see root SKILL.md §Voice rules. Additional skill-specific rules:
> User: "Comment on this: https://www.linkedin.com/posts/<author-handle>_activity-<id>"
>
> Skill: [parses URL, fetches post, detects closing question "Seen this in your market?", drafts 3 variants]
>
> Skill returns: T2 Answer-the-Closing-Question variant as primary pick, with T1 Missing-Piece as backup, reaction INTEREST, one-line rationale, and approval prompt.
SKILL.md — this filereferences/comment-templates.md — the 7 templates with fill-in slots and real examples../../references/voice-rules.md — the specific voice rules from user feedback memorieslinkedin-reply-handler — if you're replying to a comment (not posting top-level)linkedin-humanizer — for aggressive AI-tell scrubbinglinkedin-hook-extractor — if you want to use the author's own hook as the basis for your replylinkedin-employee-advocacy — the program that uses reshare mode to amplify brand and colleague posts across a teamTake sergebulaev/linkedin-comment-drafter from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.