跳到正文
Skillpedia
邮件与消息41k · #6963

working-with-task-comments

它能做什么

这项技能教智能体如何查找并使用人们在 PostHog Desktop 任务上留下的评论。适合通过在任务、文件或画布上留备注来审阅工作的团队。

适用场景

  • ✓当你提到自己在 PostHog 任务或其附件上留下的评论或反馈的时候。
  • ✓当你希望智能体处理画布或附件上尚未解决的备注的时候。
  • ✓当你要求智能体在 PostHog Desktop 中检查评论回复的时候。

技能链接

https://github.com/PostHog/posthog/blob/master/products/tasks/skills/working-with-task-comments/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 AI

“请帮我看看任务上尚未解决的评论,并按大家的要求做出修改。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体先用 PostHog 的 exec 工具找到评论相关的工具,然后列出与该任务、附件或画布相关的评论。在处理之前,它会先阅读每个讨论串。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Working with task comments

Use the canonical PostHog MCP tool posthog:exec for every task-comment operation. A client or harness may render that canonical name differently. tasks-comments-list and the related names are inner tools, not separately registered MCP tools.

Do not conclude that comments are unavailable because a client-specific tool name differs from posthog:exec, or because there is no top-level posthog:tasks-comments-list tool. Do not use MCP resource-listing tools: comments are inner tools behind exec, not MCP resources.

Discover the inner tools

Call posthog:exec with:

{ "command": "search ^(tasks-(artifacts-list|comments-(list|retrieve))|canvas-comments-(list|retrieve))$" }

The expected inner tools are:

Tool Scope
tasks-artifacts-list Artifacts and canvases of the current task
tasks-comments-list Roots on the current task, its artifacts, and canvas roots it wrote
tasks-comments-retrieve One thread from tasks-comments-list
canvas-comments-list Every root on one canvas, whichever task or person wrote it
canvas-comments-retrieve One thread from canvas-comments-list

The tasks-* tools need PostHog Desktop task context. The canvas-* tools need only a canvas id. A user can leave a canvas comment without a task. The tasks-* tools do not return that comment.

If the client exposes no tool corresponding to canonical posthog:exec, the PostHog MCP server is unavailable in the run. Report that comments cannot be accessed only when exec search returns no tool for the target:

  • For task or artifact comments, the tasks-* tools must be present.
  • For canvas comments, the canvas-* tools or the tasks-* tools must be present.

A connection can have the canvas-* tools without task context. A connection can also have the tasks-* tools without the canvas-* tools, because a feature flag controls the canvas-* tools.

Use info <inner-tool-name> when the schema is unclear. For example:

{ "command": "info tasks-comments-list" }

Call tools through exec

Put the complete inner-tool invocation in exec.command.

List open comment roots across the task:

{ "command": "call tasks-comments-list {}" }

List artifacts and canvases when an inventory or filter id is needed:

{ "command": "call tasks-artifacts-list {}" }

Filter roots to one returned artifact or canvas id:

{ "command": "call tasks-comments-list {\"artifact_id\":\"<artifact-id>\"}" }

Retrieve a root and its replies:

{ "command": "call tasks-comments-retrieve {\"root_comment_id\":\"<root-comment-id>\"}" }

List open roots on one canvas. No task id is necessary:

{ "command": "call canvas-comments-list {\"id\":\"<canvas-id>\"}" }

Retrieve a canvas root and its replies:

{ "command": "call canvas-comments-retrieve {\"id\":\"<canvas-id>\",\"root_comment_id\":\"<root-comment-id>\"}" }

Never attempt to invoke an inner name as a top-level MCP tool. The notation posthog:tasks-comments-list also means to route that inner name through exec; it is not a literal tool name.

Read complete results

Both root listing and thread retrieval are cursor-paginated. For either operation:

  1. Call without cursor.
  2. Process the page.
  3. If next is non-null, call the same inner tool again with "cursor":"<next>" and repeat the original filters.
  4. Stop only when next is null.

Example continuation:

{
  "command": "call tasks-comments-list {\"artifact_id\":\"<artifact-id>\",\"include_resolved\":true,\"cursor\":\"<next>\"}"
}

Start with the root inventory and retrieve only threads relevant to the user's request. Before acting on a root, retrieve its thread so an older message is not mistaken for the latest request. The list returns open roots by default; pass "include_resolved":true only when resolved history matters.

List bodies are bounded excerpts. Detail responses cap total comment-body bytes. When a detail entry has content_truncated: true, call the same retrieve tool again with that entry's id as comment_id and its content_next_offset as content_offset. Continue

常见问题

智能体能读取哪些评论?

它可以读取当前任务、其附件以及任务写入的任何画布上的评论。

智能体需要特定的工具名称吗?

不需要。即使你的应用中名称不同,它也会通过 PostHog 的 exec 工具找到评论工具。

智能体可以只关注未解决的反馈吗?

可以。它可以筛选出未解决的讨论串,先处理待办事项。

详情

作者的原始描述

Read and use comments attached to the current PostHog task, its artifacts, and any canvas through the PostHog MCP exec dispatcher. Use when the user mentions task comments, artifact or canvas comments, annotations, selected-text feedback, replies, unresolved comments, or asks an agent to inspect or act on feedback left in PostHog Desktop. Covers exec discovery and calls, target filtering, pagination, full-thread retrieval, anchor/version context, task-scoped access, and standalone canvas comments that have no task.

repo: PostHog/posthog

热度

GitHub 星标
41k
排名
#6963
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能