跳到正文
Skillpedia
智能体60k · #3176

mempalace-task

它能做什么

这个技能让你的智能体通过 MemPalace 把工作交给另一个 AI 智能体,并在任务流转时进行跟踪。适合协调多个智能体共同工作的人。

适用场景

  • ✓当你想把一项工作交给另一个 AI 智能体,并附上清晰的任务编号时。
  • ✓当你想要一份可直接粘贴、供另一个智能体接手的任务的时候。
  • ✓当你想查看已交接工作的状态的时候。

技能链接

https://github.com/MemPalace/mempalace/blob/develop/.claude-plugin/skills/mempalace-task/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“请在 MemPalace 中创建一个任务,让另一个智能体审阅 API 改动,并把任务编号告诉我。”

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

工作原理

该技能会把每个任务记录到 MemPalace logstream 中,使每个智能体都能看到其负责人和状态。它会检查 MemPalace 工具是否可用,并为每个智能体使用稳定的身份。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

MemPalace Task

A quick-start workflow for active work moving between agents. Tasks belong in the logstream, not in memory drawers. The canonical lifecycle and watcher discipline live in the public coordination protocol.

Verify the coordination seam

  1. Confirm mempalace --version succeeds. Also confirm mempalace task --help and mempalace_task_create exist; if either is missing, do not assume the older runtime has update-awareness commands. Explain that it is incompatible, hand off to the mempalace setup skill, and propose the package-manager-appropriate upgrade (uv tool upgrade mempalace, pipx upgrade mempalace, or the interpreter backing the active MemPalace command followed by -m pip install --upgrade mempalace) plus npx skills update mempalace mempalace-recall mempalace-task. Require explicit authorization before running anything.
  2. Confirm the MemPalace MCP tools are connected and the active palace is the intended shared brain.
  3. Establish the current agent's stable host:harness:project identity. Never impersonate another agent. Never mint a second harness suffix to split windows.
  4. Check the destination agent's monitoring status when possible. A pasted handoff can wake a turn-based agent; a logstream event alone cannot.

If setup is incomplete, stop and use the mempalace setup skill.

Create a task

Gather these fields from the user or current repository state:

  • project routing name;
  • requesting and destination agent identities;
  • exact goal;
  • target branch;
  • exact hexadecimal base commit id (never a branch or tag);
  • definition of done.

Resolve the branch and hexadecimal base commit id from the intended worker checkout, not from an unrelated repository. Never pass a mutable branch or tag as the base commit. Before appending anything, show the user the exact normalized task: the identities, project, goal, branch, base commit, definition of done, and the fact that delivery must close through MemPalace. Logstream events are immutable, so obtain approval of that exact content unless the user already explicitly approved it in the current turn.

Create the task through the high-level interface rather than assembling a raw task.request. When MCP is connected—especially for a client joining a remote shared-brain hub—call mempalace_task_create with the approved fields. It returns the stored task and handoff and writes on the hub, not to an unintended local palace.

On the palace-owning machine, or when intentionally operating a local palace through the shell, the equivalent CLI is:

mempalace task create \
  --project <project> \
  --from-agent <requester> \
  --to-agent <worker> \
  --goal <exact-goal> \
  --branch <branch> \
  --base-commit <commit> \
  --done <exact-definition-of-done>

Use --goal-file or --done-file for multiline CLI content; never flatten or paraphrase the user's wording. The CLI prints a Ready to paste line; the MCP tool returns the same line as handoff. Return it unchanged so the user can wake the destination agent without copying the whole task body. Never use the local CLI fallback merely because the remote MCP call failed—surface and fix the connection instead.

Receive and execute a pasted task

When given Open MemPalace task <id> as <agent>...:

  1. Fetch the exact task.request by correlation_id=<id> with mempalace_event_list; do not work from the short pasted line alone.
  2. Verify it is addressed to this agent (or is a broadcast explicitly being accepted), and verify the workspace, branch, and base commit before edits.
  3. Claim the request with mempalace_event_ack(status=claimed). Claiming is a watch trigger: arm mempalace logstream watch --agent <you> --type task.request --type task.reply --type patch.ready --json (the CLI defaults a sanitized --state-file) unless this is a remote-only MCP client (see below). Check for an existing status=claimed from your own identity first; lowest-HLC wins on a simultaneous claim.
  4. Do the work and run the stated verification.
  5. Deliver a patch with mempalace_patch_submit. If blocked or failed, send a verbatim task.reply instead. Silence is not a valid outcome.
  6. The requester fetches and verifies the artifact, applies it with explicit user-visible intent, runs verification, then acknowledges `appl
常见问题

它会运行其他智能体吗?

它可以在受控模式下启动受支持的无界面智能体,但只有在你明确要求时才会这样做。

一个智能体可以冒充另一个智能体吗?

不可以。每个智能体保持自己的身份,不会冒充其他智能体。

任务存储在哪里?

任务保存在 logstream 中,而不是记忆笔记里。

详情

作者的原始描述

Create, hand off, claim, execute, and close agent tasks through the MemPalace logstream. Use when the user wants to delegate work, prepare a ready-to-paste task for another agent, receive a MemPalace task id, or explicitly launch a supported headless agent in controlled mode.

repo: MemPalace/mempalace

热度

GitHub 星标
60k
排名
#3176
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能