linkedin-reply-handler
What it does
This skill teaches an agent how to answer comments on the user's LinkedIn posts. It can handle one comment or sweep a whole thread, and it respects how LinkedIn nests replies.
When to use it
- ✓When a user pastes a comment link and wants to reply to it.
- ✓When an author replied to the user's comment and the user wants to continue.
- ✓When a user wants to catch up on all the comments on a post.
Skill link
https://github.com/sergebulaev/linkedin-skills/blob/main/.codex-marketplace/linkedin-skills/skills/linkedin-reply-handler/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Draft replies to every comment on my last post that is worth answering, and show me them before posting.”
5 new skills a week. 1 minute to read.
How it works
The agent reads the comment thread from the post link, filters out low-value comments, and drafts a reply for each one worth answering. It replies to the top-level comment when needed, since LinkedIn flattens threads, and posts through Publora.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
LinkedIn Reply Handler
Drafts a reply to a specific LinkedIn comment, or sweeps an entire comment thread (every top-level comment and its replies) from just the post URL and drafts a reply to each one worth answering. Both modes correctly handle LinkedIn's 2-level thread flattening: if you're replying to a reply, the Publora API needs the TOP-level comment URN as parentComment, not the reply's URN.
When to use
Single comment:
- User pastes a LinkedIn comment URL (contains
?commentUrn=...) and says "reply to this" - An author replied to the user's comment and the user wants to continue the thread
- User wants to re-engage a conversation that's gone dormant
Whole thread (just a post URL, no comment URLs):
- User pastes a post URL and says "reply to all the comments", "clear my inbox on this post", "draft replies for everyone who commented", "sweep the comments on this post"
- User wants to catch up on a post that has accumulated comments over several days
Not for:
- Commenting on someone else's post (not replying to comments on the user's own post) →
linkedin-comment-drafter - Reading engagement without drafting anything →
linkedin-engager-analyticsorlinkedin-thread-monitor
Input
Either shape works:
- A LinkedIn URL containing
commentUrn=urn:li:comment:(activity:POST,COMMENT_ID)— either the direct comment permalink or a feed URL with the query fragment. Triggers single-comment mode. - Just a LinkedIn post URL, in any of the standard shapes (see root
SKILL.mdURL table) — no comment URLs needed. Triggers whole-thread mode.
Output
Single comment:
- 1-2 reply drafts, 150-300 chars each
- Reaction suggestion for the comment being replied to (always react before replying)
- Thread context summary (who said what, when)
- Approval card → on user "post", fires reaction + reply via Publora
Whole thread:
- A filtered roster: how many comments were fetched, how many were filtered out and why, how many drafts follow
- One reply draft per comment worth replying to (150-300 chars each), each tagged with its target comment, the correct
parentCommentURN, and a reaction suggestion - A single batch approval card covering every draft
- On approval, posts all of them (reaction + reply, per comment)
Steps — single comment
Voice profile first (all drafts, both modes). 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. If ../../references/story-bank.md has filled: yes, load it too and take concrete details (numbers, dates, named projects) from there instead of asking mid-draft. Never invent a figure that is not in it; if the bank has nothing that fits, ask the user or offer linkedin-interviewer.
- Parse the URL.
lib.url_parser.parse_linkedin_urlreturnspost_urn,comment_id,comment_urn. - Determine thread structure. If
APIFY_TOKENis set, calllib.ApifyClient.fetch_post_comments(post_id=post_urn, max_items=50)and locate the comment bycomment_id. Otherwise ask the user to paste the relevant slice of the thread. With the Apify MCP connector available instead of a token, read the same comments through its tool and drop the run-summary row before using them, per../../references/mcp-read-layer.md; that is the only read path on claude.ai. Figure out whether the target is:- a top-level comment (parentComment = this comment's URN when replying)
- a reply to a top-level comment (parentComment = the TOP comment's URN, not this reply's URN. LinkedIn flattens)
- Read the full context. Author post text, top-level comment text, any intermediate replies. Include the user's own prior comment if they're in the thread.
- Draft the reply. Follow the engagement templates in
references/reply-templates.md. If the counterpart asked a question, answer it directly. If they pushed back, concede then sharpen. - Humanizer pass. Scrub 2026 AI vocab by density, cap em dashes (about one per 100 words), fix only machine-flat rhythm and never manufacture sentence-length variance. Canonical rules:
linkedin-humanizerV3. - Approval card. Include thread preview (who said what in last 3 turns), the draft, reaction suggestion, and the parentComment URN we'll send.
- On approval. Call `li
FAQ
Why reply to the top-level comment?
The skill says LinkedIn flattens threads to two levels, so the reply must target the top-level comment.
Does it post without checking?
The skill drafts replies for review first, then posts them through Publora.
Can it handle comments on other people's posts?
No. Commenting on other people's posts is handled by the comment drafter skill.
Details
Original description by the author
Draft a reply to one LinkedIn comment from its URL, or sweep a whole thread from just the post URL and draft a reply to every comment worth answering, in one batch. Use for replying to a comment, following an author reply, or clearing all comments on a post. Resolves the correct parentComment (LinkedIn flattens threads to 2 levels), filters low-value comments before a sweep, and posts via Publora on approval. Not for top-level comments (use linkedin-comment-drafter).
Popularity
- GitHub stars
- 5.5k
- Ranking position
- #14836
- License
- MIT
- Updated
- 10/27/2026
Comments
- …
More skills from this repository
linkedin-marketing
5.5kHelps your agent plan, draft, audit, and publish LinkedIn posts and comments, using 2026 platform guidance and a draft-then-approve flow.
linkedin-comment-drafter
5.5kHelps your agent write a thoughtful LinkedIn comment on someone else's post from its link, or reshare it with your own take, for your approval before posting.
linkedin-content-planner
5.5kHelps your agent build a seven-day LinkedIn content plan from a theme and audience, with a post type, hook, and time for each day, plus comment targets.
linkedin-employee-advocacy
5.5kHelps your agent set up a LinkedIn advocacy program where a marketing or sales team posts in its own voice, with a launch plan, guidelines, and ROI measures.
Similar skills
xurl
394kHelps your agent post, reply, search, and read on X, send direct messages, and upload media, using the authenticated xurl tool.
connections-optimizer
280kImproves your social network connections. It suggests who to follow or unfollow and helps create personalized messages to expand your network.
content-engine
280kCreates content for different platforms. It helps produce posts, scripts, and content calendars that work well on networks like X, LinkedIn, and YouTube.