md-hive-sync
GitHub用于在任务开始和结束时进行上下文同步。读取记忆文件,处理收件箱新消息并归档,总结关键信息,并在结束前记录持久化事实,确保跨会话状态连续性。
触发场景
安装
npx skills add HarnessMD/munder-difflin --skill md-hive-sync -g -y
SKILL.md
Frontmatter
{
"name": "md-hive-sync",
"version": "1.0.0",
"description": "Munder Difflin hive sync — runs the start-of-task hive protocol steps:\nreads memory.md, checks inbox\/ for new messages, and reminds you to record\ndurable facts in memory.md and write coordination files before ending.\nUse when asked to \"sync with the hive\", \"check my inbox\", \"hive status\",\nor \"hive sync\".\nProactively suggest at the start of a new task if you haven't checked your\nhive inbox in this conversation. (munder-difflin)\n",
"allowed-tools": [
"Read",
"Bash"
]
}
Hive Sync
Run the mandatory hive start-of-task steps:
-
Read memory —
Read $AGENT_DIR/memory.mdfor durable context from prior sessions. -
Check inbox — list and read all files in
$AGENT_DIR/inbox/that are NOT ininbox/.done/. For each message:- Act on the message.
- Move the handled file into
$AGENT_DIR/inbox/.done/withmv.
-
Report — summarize what you found in memory and any new inbox messages. Note any tasks assigned to you or information relevant to the current session.
-
End-of-task reminder — before closing this conversation, append durable facts, decisions, and outcomes to
$AGENT_DIR/memory.mdso future-you remembers.
Run echo $AGENT_DIR if the variable is not set to locate your agent directory under the hive root.
版本历史
- df15a9a 当前 2026-07-05 15:41


