Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

recoveryrecovery 搜索

Agent Skill

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

总安装

1,346

周安装

55

GitHub Stars

25

下载量

436
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/oimiragieo/agent-studio --skill recovery

简介

recovery 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词或任务场景进行信息定位的研究与检索任务。
  • 通过关键词、任务场景或来源线索输入,获取相关结果列表。
  • 安装命令:npx skills add https://github.com/oimiragieo/agent-studio --skill recovery。
  • 建议确认权限范围和维护状态,注意是否触发联网或文件操作。

SKILL.md

Recovery Skill

When to Use

  • Context window exhausted mid-workflow
  • Session interrupted or lost
  • Need to resume from last completed step
  • Workflow state needs reconstruction

Step 1: Identify Last Completed Step

  1. Check gate files for last successful validation:

- Location: .claude/context/history/gates/{workflow_id}/ - Find highest step number with validation_status: "pass" - This is the last successfully completed step

  1. Review reasoning files for progress:

- Location: .claude/context/history/reasoning/{workflow_id}/ - Read reasoning files up to last completed step - Extract context and decisions made

  1. Identify artifacts created:

- Check artifact registry: .claude/context/artifacts/registry-{workflow_id}.json - List all artifacts created up to last step - Verify artifact files exist

Step 2: Load Plan Documents

  1. Read plan document (stateless):

- Load plan-{workflow_id}.json from artifact registry - Extract current workflow state - Identify completed vs pending tasks

  1. Load relevant phase plan (if multi-phase):

- Check if project is multi-phase (exceeds phase_size_max_lines threshold) - Load active phase plan: plan-{workflow_id}-phase-{n}.json - Understand phase boundaries and dependencies

  1. Understand current state:

- Map completed tasks to plan - Identify next steps - Check for dependencies

Step 3: Context Recovery

  1. Load artifacts from last completed step:

- Read artifact registry - Load all artifacts with validation_status: "pass" - Verify artifact integrity

  1. Read reasoning files for context:

- Load reasoning files from completed steps - Extract key decisions and context - Understand workflow progression

  1. Reconstruct workflow state:

- Combine plan, artifacts, and reasoning - Create recovery state document - Validate state consistency

Step 4: Resume Execution

  1. Continue from next step:

- Identify next step after last completed - Load step requirements from plan - Prepare inputs for next step

  1. Planner updates plan status (stateless):

- Update plan-{workflow_id}.json with current status - Mark completed steps - Update progress tracking

  1. Orchestrator coordinates next agents:

- Pass recovered artifacts to next step - Resume workflow execution - Monitor for additional interruptions

</execution_process>

Failure Classification

When a task fails, classify the failure type:

Failure TypeIndicatorsRecovery Action
BROKEN_BUILDBuild errors, syntax errors, module not foundROLLBACK + fix
VERIFICATION_FAILEDTest failures, validation errors, assertion errorsRETRY with fix (max 3 attempts)
CIRCULAR_FIXSame error 3+ times, similar approaches repeatedSKIP or ESCALATE
CONTEXT_EXHAUSTEDToken limit reached, maximum length exceededCompress context, continue
UNKNOWNNo pattern matchRETRY once, then ESCALATE

Circular Fix Detection

Iron Law: If the same approach has been tried 3+ times without success, STOP.

When circular fix is detected:

  1. Stop the current approach immediately
  2. Document what was tried (approaches, errors, files)
  3. Try fundamentally different approach (different library, different pattern, simpler implementation)
  4. If still failing, ESCALATE to human intervention

Detection Algorithm:

  • Extract keywords from current approach (excluding stop words)
  • Compare with keywords from last 3 attempts
  • If Jaccard similarity > 30% for 2+ attempts, flag as circular

Example:

Attempt 1: "Using async await for fetch"
Attempt 2: "Using async/await with try-catch"
Attempt 3: "Trying async await pattern again"
=> CIRCULAR FIX DETECTED - Stop and try callback pattern instead

Attempt Count Thresholds

Failure TypeMax AttemptsThen Action
VERIFICATION_FAILED3SKIP + ESCALATE
UNKNOWN2ESCALATE
BROKEN_BUILD1ROLLBACK (if good commit exists)
CIRCULAR_FIX0Immediately SKIP

References

See references/ for detailed patterns:

  • failure-types.md - Failure classification details and indicators
  • recovery-actions.md - Recovery action decision tree and execution
  • merge-strategies.md - File merge strategies for multi-agent scenarios

<best_practices>

Recovery Validation Checklist

  • Last completed step identified correctly
  • Plan document loaded and validated
  • All artifacts from completed steps available
  • Reasoning files reviewed for context
  • Workflow state reconstructed accurately
  • No duplicate work will be performed
  • Next step inputs prepared
  • Recovery logged in reasoning file

</best_practices>

<error_handling>

Error Handling

  • Missing plan document: Request planner to recreate plan from requirements
  • Missing artifacts: Request artifact recreation from source agent
  • Corrupted artifacts: Request artifact recreation with validation
  • Incomplete reasoning: Use artifact registry and gate files to reconstruct state

</error_handling>

# 1. Check gate files for last completed step
ls .claude/context/history/gates/{workflow_id}/

# 2. Load plan document
cat .claude/context/artifacts/plan-{workflow_id}.json

# 3. Review reasoning files
cat .claude/context/history/reasoning/{workflow_id}/*.json

# 4. Resume from next step

</usage_example>

<usage_example> Natural language invocation:

"Resume the workflow from where we left off"
"Recover the workflow state and continue"
"What was the last completed step?"

</usage_example>

Related

  • Planner Agent: .claude/agents/core/planner.md
  • Memory files: .claude/context/memory/

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing:

  • New pattern -> .claude/context/memory/learnings.md
  • Issue found -> .claude/context/memory/issues.md
  • Decision made -> .claude/context/memory/decisions.md
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.46%
按下载量换算159

Claude

30.27%
按下载量换算132

Cursor

16.43%
按下载量换算72

Gemini CLI

9.06%
按下载量换算40

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills