Token导航 LogoToken导航

Agent Skill · 研究检索

handoff(交接)

handoff 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

handoff 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 11,606。

总安装 11,101周安装 472GitHub Stars 318下载 3,889核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:handoff(交接)
来源仓库:https://github.com/boshu2/agentops
仓库路径:skills/handoff
安装命令:
npx skills add https://github.com/boshu2/agentops --skill handoff
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/boshu2/agentops --skill handoff

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

handoff 用于创建结构化的会话交接文档,支持任务上下文延续。适合在 Codex、Claude、Cursor、Gemini CLI 中需要记录工作进展或传递任务时使用。通过 /handoff [主题] 命令生成 .agents/handoff/ 目录下的交接文件。

需确认当前会话状态和输出路径权限,避免覆盖已有重要记录。handoff 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/handoff

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/boshu2/agentops --skill handoff;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

handoff 怎么安装?

在终端执行 npx skills add https://github.com/boshu2/agentops --skill handoff。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

handoff 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

handoff 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

handoff 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

handoff 用的人多吗?

公开数据是累计安装 11,101 次,近一周安装 472 次,下载 3,889 次,GitHub 318 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

handoff 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
handoff

交接 · 本页

11,101318接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Handoff Skill

Quick Ref: Create structured handoff for session continuation. Output: .agents/handoff/YYYY-MM-DD-<topic>.md + continuation prompt.

YOU MUST EXECUTE THIS WORKFLOW. Do not just describe it.

Create a handoff document that enables seamless session continuation.

Execution Steps

Given /handoff [topic]:

Step 1: Create Output Directory

mkdir -p .agents/handoff

Step 2: Identify Session Context

If topic provided: Use it as the handoff identifier.

If no topic: Derive from recent activity:

# Recent commits
git log --oneline -5 --format="%s" | head -1

# Check current issue
bd current 2>/dev/null | head -1

# Check ratchet state
ao ratchet status 2>/dev/null | head -3

Use the most descriptive source as the topic slug.

Topic slug format: 2-4 words, lowercase, hyphen-separated (e.g., auth-refactor, api-validation). Fallback: If no good topic found, use session-$(date +%H%M) (e.g., session-1430).

Step 3: Gather Session Accomplishments

Review what was done this session:

# Recent commits this session (last 2 hours)
git log --oneline --since="2 hours ago" 2>/dev/null

# Recent file changes
git diff --stat HEAD~5 2>/dev/null | head -20

# Research produced
ls -lt .agents/research/*.md 2>/dev/null | head -3

# Plans created
ls -lt .agents/plans/*.md 2>/dev/null | head -3

# Issues closed
bd list --status closed --since "2 hours ago" 2>/dev/null | head -5

Step 4: Identify Pause Point

Determine where we stopped:

  1. What was the last thing done?
  2. What was about to happen next?
  3. Were we mid-task or between tasks?
  4. Any blockers or decisions pending?

Check for in-progress work:

bd list --status in_progress 2>/dev/null | head -5

Step 5: Identify Key Files to Read

List files the next session should read first:

  • Recently modified files (core changes)
  • Research/plan artifacts (context)
  • Any files mentioned in pending issues
# Recently modified
git diff --name-only HEAD~5 2>/dev/null | head -10

# Key artifacts
ls .agents/research/*.md .agents/plans/*.md 2>/dev/null | tail -5

Step 6: Write Handoff Document

Write to: .agents/handoff/YYYY-MM-DD-<topic-slug>.md (use date +%Y-%m-%d)

# Handoff: <Topic>

**Date:** YYYY-MM-DDTHH:MM:SSZ
**Session:** <brief session description>
**Status:** <Paused mid-task | Between tasks | Blocked on X>

---

## What We Accomplished This Session

### 1. <Accomplishment 1>

<Brief description with file:line citations>

**Files changed:**
- `path/to/file.py` - Description

### 2. <Accomplishment 2>

...

---

## Where We Paused

<Clear description of pause point>

**Last action:** <what was just done>
**Next action:** <what should happen next>
**Blockers (if any):** <anything blocking progress>

---

## Context to Gather for Next Session

1. <Context item 1> - <why needed>
2. <Context item 2> - <why needed>

---

## Questions to Answer

1. <Open question needing decision>
2. <Clarification needed>

---

## Files to Read

Priority files (read first)

path/to/critical-file.py.agents/research/YYYY-MM-DD-topic.md

Secondary files (for context)

path/to/related-file.py

### Step 7: Write Continuation Prompt

**Write to:** `.agents/handoff/YYYY-MM-DD-<topic-slug>-prompt.md` (use `date +%Y-%m-%d`)

Continuation Prompt for New Session

Copy/paste this to start the next session:


Context

<2-3 sentences describing the work and where we paused>

Read First

  1. The handoff doc: .agents/handoff/YYYY-MM-DD-<topic-slug>.md
  2. <Other critical files>

What I Need Help With

<Clear statement of what the next session should accomplish>

Key Files


## Open Questions

1. <Question 1>
2. <Question 2>

---

<Suggested skill to invoke, e.g., "Use /implement to continue">

Step 8: Extract Learnings (Optional)

If significant learnings occurred this session, also run post-mortem:

# Check if post-mortem skill should be invoked
# (if >3 commits or major decisions made)
git log --oneline --since="2 hours ago" 2>/dev/null | wc -l

If ≥3 commits: Suggest running /post-mortem --quick to extract learnings. If <3 commits: Handoff alone is sufficient; learnings are likely minimal.

Step 9: Report to User

Tell the user:

  1. Handoff document location
  2. Continuation prompt location
  3. Summary of what was captured
  4. Suggestion: Copy the continuation prompt for next session
  5. If learnings detected, suggest /post-mortem --quick

Output completion marker:

<promise>DONE</promise>

If no context to capture (no commits, no changes):

<promise>EMPTY</promise>
Reason: No session activity found to hand off

Example Output

Handoff created:
  .agents/handoff/20260131T143000Z-auth-refactor.md
  .agents/handoff/20260131T143000Z-auth-refactor-prompt.md

Session captured:
- 5 commits, 12 files changed
- Paused: mid-implementation of OAuth flow
- Next: Complete token refresh logic

To continue: Copy the prompt from auth-refactor-prompt.md

<promise>DONE</promise>

Key Rules

  • Capture state, not just summary - next session needs to pick up exactly where we left off
  • Identify blockers clearly - don't leave the next session guessing
  • List files explicitly - paths, not descriptions
  • Write the continuation prompt - make resumption effortless
  • Cite everything - file:line for all references

Integration with /post-mortem

Handoff captures *state* for continuation. Post-mortem captures *learnings* for the flywheel (full knowledge lifecycle).

For a clean session end:

/handoff              # Capture state for continuation
/post-mortem --quick  # Extract learnings for future

Both should be run when ending a productive session.

Without ao CLI

If ao CLI not available:

  1. Skip the ao ratchet status check in Step 2
  2. Step 8 retro suggestion still works (uses git commit count)
  3. All handoff documents are still written to .agents/handoff/
  4. Knowledge is captured for future sessions via handoff, just not indexed

Examples

Paused Mid-Implementation

User says: /handoff (after working on OAuth flow for 2 hours, need to stop)

What happens:

  1. Agent detects recent commits (5 commits in last 2 hours, auth-related)
  2. Agent checks in-progress work with bd list (issue #42 still open)
  3. Agent identifies pause point: "Completed token generation, about to start refresh logic"
  4. Agent lists key files: auth.go, token.go, research doc, plan doc
  5. Agent writes handoff document with accomplishments and pause state
  6. Agent writes continuation prompt with clear next action
  7. Agent checks commits (5) and suggests running /post-mortem --quick to extract learnings

Result: Handoff captures state, continuation prompt ready, post-mortem suggested.

Between Tasks, Clean State

User says: /handoff (just closed issue #40, about to start #41 next session)

What happens:

  1. Agent detects 1 commit (closed issue #40), no pending changes
  2. Agent identifies pause point: "Between tasks. Last: closed #40 (fixed rate limiting). Next: start #41 (add JWT refresh)"
  3. Agent lists files from #40 (middleware.go, config.go)
  4. Agent writes handoff with accomplishment summary and next-task preview
  5. Agent writes continuation prompt with /implement #41 suggestion
  6. Agent skips post-mortem suggestion (<3 commits)

Result: Handoff captures clean boundary, continuation is simple.

Auto-Derived Topic

User says: /handoff (no topic provided, agent derives from commits)

What happens:

  1. Agent reads recent commits: "feat: add rate limiting", "fix: token expiry"
  2. Agent derives topic slug: "rate-limiting" (from most recent commit)
  3. Agent creates handoff files with derived topic in filename
  4. Agent reports: "Handoff created:.agents/handoff/20260213T143000Z-rate-limiting.md"

Result: Topic auto-derived from git history, no user input needed.


Troubleshooting

ProblemCauseSolution
"No session activity found to hand off"No commits, no file changes detectedExpected for idle sessions. Nothing to hand off. Start new work or skip handoff.
Handoff files not written.agents/handoff/ directory does not exist or not writableRun mkdir -p.agents/handoff or check directory permissions
Topic slug is generic "session-1430"No descriptive commits or issues to derive topic fromProvide explicit topic: /handoff auth-refactor for better naming
Continuation prompt missing key contextRecent files or artifacts not listed in handoffManually add missing files to handoff document or re-run with explicit topic
Post-mortem suggested but no learningsAgent sees ≥3 commits and auto-suggests /post-mortem --quickRun /post-mortem --quick or skip if commits are trivial (agent can't judge learning quality, only commit count)

See Also

  • skills/post-mortem/SKILL.md — Full validation + knowledge lifecycle (council + extraction + activation + retirement)
  • skills/retro/SKILL.md — Quick-capture a learning

平台分布

Codex

32.5%
按下载量换算1,264

Claude

30.17%
按下载量换算1,173

Cursor

20.41%
按下载量换算794

Gemini CLI

9.38%
按下载量换算365

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills