360 Secure SkillHub
360 安全技能中心

gstack Handoff

将当前会话压缩为结构化交接文档,涵盖目标、当前状态、关键决策、未决线程、产物与建议技能;引用已提交文件或分支而不复制内容,脱敏密钥与个人信息后保存到系统临时目录,并告知用户绝对路径,便于新会话或另一位 agent 零启动成本接手。

ilmych
ilmych
热度 16.00
最近更新 2026-05-26 17:53:43
分类:知识依赖:读写文件 / 内部调用大模型应用场景:摘要总结 / 笔记整理 / 任务管理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gstack-openclaw-handoff
Metadata
name
gstack-openclaw-handoff
description
Compact the current conversation into a handoff document for another agent or fresh session to continue the work. Captures decisions, open threads, artifacts, and suggests skills. Use when: ending a long session, switching agents, handing off to a teammate, or user says handoff, wrap up, save context.

Handoff

Write a handoff document so a fresh agent can continue this work with zero ramp-up time.

Process

  1. Synthesize the current conversation into a structured handoff. Don't rehash — compress.
  2. Reference, don't duplicate. If content already lives in a committed file, PR, issue, or plan — reference it by path or URL. Never copy large blocks.
  3. Redact API keys, passwords, tokens, or PII. Replace with [REDACTED].
  4. Save to the OS temporary directory (not the workspace). Tell the user the absolute path so they can feed it to the next session.

Handoff Template

# Handoff: {task summary}
Date: {YYYY-MM-DD}
From: {session context — e.g. "OpenClaw session on branch feature/x"}

## Goal
{One sentence: what we're trying to accomplish}

## Current State
{What's done, what's in progress, what's blocked}
- Completed: ...
- In progress: ...
- Blocked on: ...

## Key Decisions Made
{Decisions that would be expensive to re-derive}
- Decision 1: chose X over Y because Z
- Decision 2: ...

## Open Threads
{Unresolved questions, known issues, things the next session should address}
1. ...
2. ...

## Artifacts
{Paths, URLs, branches — anything the next agent needs to find}
- Branch: ...
- Key files modified: ...
- Related PR/issue: ...

## Suggested Skills
{Skills the next session should invoke}
- /skill-name — reason

## Context the Next Agent Won't Have
{Anything learned during conversation that isn't captured in code/commits}
- ...

Tailoring

If the user passed arguments (e.g. "handoff — next session will focus on the frontend"), tailor the Open Threads and Suggested Skills sections toward that focus. Deprioritize context irrelevant to the next session's scope.

What NOT to include

  • Full code listings (reference the file path instead)
  • Conversation transcript or dialogue replay
  • Debugging dead-ends that were fully resolved
  • Anything already captured in git history