跳到正文
Skillpedia
社交媒体5.5k · #14836

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sergebulaev/linkedin-skills/blob/main/.codex-marketplace/linkedin-skills/skills/linkedin-reply-handler/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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-analytics or linkedin-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.md URL 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 parentComment URN, 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.

  1. Parse the URL. lib.url_parser.parse_linkedin_url returns post_urn, comment_id, comment_urn.
  2. Determine thread structure. If APIFY_TOKEN is set, call lib.ApifyClient.fetch_post_comments(post_id=post_urn, max_items=50) and locate the comment by comment_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)
  3. 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.
  4. 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.
  5. 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-humanizer V3.
  6. Approval card. Include thread preview (who said what in last 3 turns), the draft, reaction suggestion, and the parentComment URN we'll send.
  7. 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).

repo: sergebulaev/linkedin-skills

热度

GitHub 星标
5.5k
排名
#14836
许可证
MIT
更新时间
2026/10/27

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能