Command Palette

Search for a command to run...

Назад к скиллам
скилл № 30213

ccb-clear-resume

Diagnose and recover a CCB agent whose provider context is corrupted, stale, overloaded, or semantically off-track when the user wants more than a plain…

БесплатноБез исполняемых скриптов
SeemSeamот SeemSeam★ 18 звёзд на GitHub

Установить ccb-clear-resume в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

CCB Clear Resume

Purpose

Recover an agent from bad provider context without losing the work it was doing. This skill combines guarded context clearing with task reconstruction and resubmission. It does not replace job-lineage repair, config reload, or runtime restart.

Safety Rules

  • Use CCB control-plane commands only. Do not edit mailbox, lifecycle, provider session, runtime, tmux, or .ccb/agents/* authority files directly.
  • Do not run raw tmux mutation. Pane capture is evidence only.
  • Do not read provider credentials, API keys, auth stores, or unrelated private provider state.
  • Do not clear a busy agent unless the active lineage is terminal, cancelled, or the user explicitly accepts losing in-flight provider context.
  • Do not duplicate active work. If a valid job is still running, report that instead of clearing or resubmitting.
  • If the issue is reply/chain/ack lineage, prefer ccb repair ... before context clear.
  • Do not clear for an account, model, endpoint, or inherited Provider authority change. Prefer managed restart plus validated resume/fork/import or linked continuation.

Decision Tree

  1. If the user only asks to clear context and no task recovery is needed, use ccb clear <agent> after busy checks.
  2. If the user reports missing replies, queued work, chain not continuing, or incomplete jobs, first trace lineage and classify the communication issue.
  3. If provider context is stale/corrupted and the user wants the task to continue, use the clear-resume workflow below.
  4. If the provider process is dead, quota-blocked, or pane-stale after clear is not enough, hand off to guarded ccb restart <agent> only after busy checks.

Before step 3, distinguish corrupt provider memory from a corrupt current session record. Current CCB can select the latest valid owned Codex session; that recovery preserves context and should run before clear-resume.

Clear-Resume Workflow

1. Identify target and work

Collect the agent name and any known job_id, message_id, attempt_id, or reply_id. If no id is provided, inspect current mailbox state:

ccb queue --detail <agent>
ccb pend --inbox --detail <agent>

When an id is known, trace it:

ccb trace <id>

Record message id, attempt id, reply id, event state, job status, target agent, and whether the lineage is active or terminal.

2. Check clear gates

Run these before clearing:

ccb ps
ccb queue --detail <agent>
ccb pend --inbox --detail <agent>
ccb fault list

Use ccb doctor logs <agent> and read-only pane capture only when provider or pane evidence is needed. Treat pane text as evidence, not authority.

Stop and report blockers if the agent is unknown, busy, has queued work, pending reply delivery, pending chain continuation, or active fault injection that could affect the target.

3. Build the resume packet before clear

Create a compact task handoff from durable evidence, not from provider memory:

  • original user request or current objective
  • traced job/message/attempt/reply ids
  • current terminal or active state
  • completed changes and files touched
  • tests/commands already run and their results
  • review conclusions and blocking findings
  • known risks, constraints, and next required action
  • whether to retry, resubmit, or ask a fresh handoff

If a request or reply is artifact-backed, read the full artifact through CCB evidence paths before summarizing. Do not rely on previews for decisions.

4. Clear provider context

Only after gates pass:

ccb clear <agent>

Then verify the agent returns to a usable idle state:

ccb ps
ccb queue --detail <agent>
ccb pend --inbox --detail <agent>

If clear fails or the agent remains stale/dead, do not fake recovery. Report the blocker or proceed to guarded single-agent restart if the user intended runtime maintenance and gates pass.

5. Resume the task

Choose the least disruptive continuation:

  • Use ccb repair retry <job_id|attempt_id> when the same lineage should run again and the original job is still the right unit of work.
  • Use ccb repair resubmit <message_id> when the old execution is stale but the original message remains the right request.
  • Use a fresh ask <agent> when the task needs a curated handoff after context clear, the prior prompt was too large or wrong, or the work should continue from updated facts.

For fresh handoff, keep it compact and explicit:

command ask --compact <agent> <<'EOF'
Context was cleared. Continue from this recovered state:

Objective:
- ...

Lineage:
- job: ...
- message: ...
- previous status: ...

Current evidence:
- ...

Required next action:
- ...

Reply with completed changes, tests, blockers, and risks.
EOF

Submit once, then stop. Do not poll unless the user requested diagnostics.

6. Verify recovery

After a reply or terminal status arrives, verify:

ccb trace <new_job_or_old_message>
ccb queue --detail
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • agents/openai.yaml

FAQ

Что делает скилл ccb-clear-resume?

Diagnose and recover a CCB agent whose provider context is corrupted, stale, overloaded, or semantically off-track when the user wants more than a plain clear: clear the agent only after safety checks, reconstruct the active task context from CCB lineage/runtime evidence, and resume or resubmit the interrupted work with a compact handoff. Use for requests like "clear this agent then restore its task", "context is broken but continue the current job", "repair talk1/worker context and inherit current state", or "after clear, recover the task".

Как установить скилл ccb-clear-resume?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ccb-clear-resume запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ccb-clear-resume с