Token导航 LogoToken导航TokenDH.com
AI 工具需要联网github未标认证来源可访问clear审计异常

recursive-handoff递归切换

Agent Skill

recursive-handoff 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

329

周安装

14

GitHub Stars

1

下载量

115
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/sebastiaanwouters/dotagents --skill recursive-handoff

简介

recursive-handoff 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中整理协作事项。

  • 适用于围绕仓库状态、代码变更或协作事项进行信息整理的任务。
  • 可查询仓库状态、Issue 详情、PR 内容和协作历史。
  • 安装命令:npx skills add https://github.com/sebastiaanwouters/dotagents --skill recursive-handoff。
  • 建议确认权限范围和维护状态,注意是否触发联网或文件操作。

SKILL.md

Recursive Handoff

Run the same prompt repeatedly with fresh context until a finish condition is met.


When to Use

  • Long-running tasks that would exhaust context
  • Repetitive operations (process items one by one, migrate in batches)
  • Polling/waiting for external state changes
  • Any task where "keep doing X until Y" applies

Required Parameters

1. Finish Condition

You MUST get a finish condition from the user before starting.

The condition must be verifiable programmatically (file check, command output, grep result, API response, etc.)

Examples:

  • "All files in src/legacy/ have been processed"
  • "No more TODO comments exist in the codebase"
  • "The API returns status 200"
  • "The queue is empty"

2. Hard Limit (default: 20)

Maximum iterations before stopping. Prevents runaway loops.


How It Works

┌─────────────────────────────────────────┐
│  Thread 1: Check condition → not met    │
│            Do work → handoff            │
└─────────────────┬───────────────────────┘
                  │
┌─────────────────▼───────────────────────┐
│  Thread 2: Check condition → not met    │
│            Do work → handoff            │
└─────────────────┬───────────────────────┘
                  │
┌─────────────────▼───────────────────────┐
│  Thread 3: Check condition → MET        │
│            STOP (no handoff)            │
└─────────────────────────────────────────┘

Each iteration:

  1. Check iteration count - stop if limit reached
  2. Check finish condition
  3. If met → stop, report completion
  4. If not met → do one unit of work → handoff to continue

The Handoff Prompt Template

RECURSIVE TASK - Iteration [N] of [LIMIT]

## Finish Condition
[CONDITION]

## How to Check
[COMMAND OR METHOD TO VERIFY CONDITION]

## If Limit Reached or Condition Met
Stop. Report: "✅ Complete: [summary]" or "⚠️ Limit reached after [N] iterations"
Do NOT handoff.

## If Condition NOT Met

### Task
[WHAT TO DO THIS ITERATION]

### After Completing Work
Handoff with follow: true, incrementing iteration count:

[PASTE THIS PROMPT WITH N+1]

Example: Generic Processing Loop

User: "Process all items in the queue"

Finish condition: Queue is empty

Handoff prompt:

RECURSIVE TASK - Iteration 1 of 20

## Finish Condition
Queue is empty

## How to Check
[command to check queue length]
If result is 0, condition is met.

## If Limit Reached or Condition Met
Stop. Report completion status.
Do NOT handoff.

## If Condition NOT Met

### Task
1. Get next item from queue
2. Process it
3. Remove from queue

### After Completing Work
Handoff with follow: true, goal:

[THIS PROMPT WITH ITERATION 2 of 20]

Starting the Loop

Once setup is complete, invoke handoff with follow: true:

handoff
  goal: [THE FULL HANDOFF PROMPT]
  follow: true

The loop continues autonomously until finish condition is met or limit is reached.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.93%
按下载量换算33

OpenCode

21.75%
按下载量换算25

windsurf

17.04%
按下载量换算20

amp

11.06%
按下载量换算13

trae

7.01%
按下载量换算8

Codex

3%
按下载量换算3

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills