linkedin-reply-handler
它能做什么
这项技能教智能体如何回复用户 LinkedIn 帖子下的评论。它可以处理单条评论,也可以梳理整个讨论串,并遵循 LinkedIn 嵌套回复的方式。
适用场景
- ✓当用户粘贴一条评论链接,并想回复它的时候。
- ✓当作者回复了用户的评论,用户想继续交流的时候。
- ✓当用户想查看某篇帖子下的所有评论的时候。
技能链接
https://github.com/sergebulaev/linkedin-skills/blob/main/.codex-marketplace/linkedin-skills/skills/linkedin-reply-handler/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我上一篇帖子中每一条值得回复的评论起草回复,并在发布前给我看一下。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会从帖子链接中读取评论讨论串,筛掉价值较低的评论,并为每条值得回复的评论起草回复。由于 LinkedIn 会将讨论串压平,必要时它会回复顶层评论,然后通过 Publora 发布。
技术内容(原始 SKILL.md)
作者在 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
常见问题
为什么要回复顶层评论?
这项技能说明,LinkedIn 会把讨论串压平为两层,因此回复必须指向顶层评论。
它会不经检查就发布吗?
不会。这项技能先起草回复供审核,然后再通过 Publora 发布。
它能处理别人帖子下的评论吗?
不能。在别人的帖子下评论由评论撰写技能负责。
详情
作者的原始描述
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).
热度
- GitHub 星标
- 5.5k
- 排名
- #14836
- 许可证
- MIT
- 更新时间
- 2026/10/27
评论
- …
同一仓库的更多技能
linkedin-marketing
5.5k帮你的智能体规划、起草、审核和发布 LinkedIn 帖子与评论,使用 2026 年的平台指南,并采用先起草、后批准的流程。
linkedin-comment-drafter
5.5k帮你的智能体根据他人帖子的链接撰写一条有见地的 LinkedIn 评论,或附上你自己的观点进行转发,发布前需经你批准。
linkedin-content-planner
5.5k帮你的智能体根据主题和受众制定为期七天的 LinkedIn 内容计划,为每天安排帖子类型、开头和发布时间,并列出评论目标。
linkedin-employee-advocacy
5.5k帮你的智能体搭建 LinkedIn 员工推广计划,让市场或销售团队以自己的口吻发帖,并附上启动方案、指导原则和投资回报衡量方法。