본문으로 건너뛰기
cccskills
무료GitHub에 공개

ccb-self-recover

Recover CCB agents, panes, mounts, provider contexts, API/provider failures, config reload aftermath, clear operations, and guarded single-agent restarts. Use when the user asks to fix, recover, restart if safe, clear context, reload, remount, or keep work going after provider/API failure.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.0 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

CCB Self Recover

Use this skill for runtime recovery after diagnosis. Mutations must go through CCB control-plane commands. Raw tmux mutation and direct runtime-file writes are forbidden.

Recovery Gates

Before any mutation:

  1. Confirm maintenance intent from the user, such as "fix", "recover", "restart if safe", "apply this config", or "make CCB healthy".
  2. Read the current mounted daemon graph. The target must be a current daemon-graph agent for clear or restart-like actions.
  3. Check busy/pending state:
    • ccb ps
    • ccb queue --detail <agent|all>
    • ccb pend --inbox --detail <agent>
    • ccb trace <id> when the issue involves active or pending lineage
  4. Check ccb fault list. If active fault-injection rules affect the target, treat them as diagnostic evidence. Clear them with ccb fault clear <rule_id|all> only when the user intended maintenance and the rules are known test residue. If a rule is recent, or its task/reason fields could represent an active drill, ask before clearing unless the user explicitly asked to clear fault-injection rules.
  5. Choose the least disruptive supported action.
  6. Report exact commands, gates, affected agents, blockers, and what remains unchanged.

If the target is unknown, busy, has queued work, has pending reply delivery, or has a pending callback continuation, stop and report blockers.

Provider/API Or Startup-Input Recovery

For provider/API failures or changes that affect provider process, model, base URL, environment, provider profile, command template, role assets, or startup context, use this exact flow:

  1. Gather evidence without reading secrets.
  2. Use built-in ccb-config to edit .ccb/ccb.config only when the fallback provider/model/base URL/profile/env-var reference is already configured or explicitly supplied by the user as a safe reference.
  3. Run ccb config validate.
  4. Run ccb reload --dry-run.
  5. If validation and dry-run pass, and the user intended materialization, run ccb reload.
  6. Re-check the current daemon graph and affected agent status.
  7. Decide whether affected running agents still use stale provider process, environment, model, base URL, role asset, or context state.
  8. If runtime refresh is still needed, restart only one affected current-graph agent at a time with ccb restart <agent>, and only when busy checks pass.
  9. If ccb restart <agent> returns blocked or failed, report the blockers. Do not emulate restart with tmux commands. The remaining user-level options are to continue with unaffected agents or explicitly stop and restart the project with ccb kill then ccb; do not run project shutdown autonomously as a substitute for single-agent restart.

ccb reload is not the recovery finish line. It materializes config into the daemon graph; running provider processes may still hold old startup inputs.

Supported Actions

  • ccb clear <agent>: provider-native conversation/context clear. Run the pre-mutation checks in the Recovery Gates section first; use only when context clearing is the right fix and pending-work checks pass.
  • ccb reload --dry-run: no-mutation config reload plan. Always safe in maintenance workflows.
  • ccb reload: config materialization after ccb config validate, ccb reload --dry-run, supported plan, and explicit user materialization intent.
  • ccb restart <agent>: one configured pane-backed current-graph agent after busy checks pass. The command itself must report restart_status, blockers, restartable agents, busy gate evidence, and old/new runtime evidence.
  • ccb roles update agentroles.ccb_self or ccb roles sync <path>: role asset repair when the user is repairing ccb_self itself, there is no active maintenance operation that depends on the current role assets, and the target role/source version is clear.

Handoffs

  • Use ccb-self-chain first when trace evidence shows message/reply lineage is the primary problem. Restart is not the first repair for a broken job chain.
  • Use built-in ccb-config for disk config edits and affected-agent reporting. After reload, this skill owns guarded runtime refresh decisions.
  • Return the original business work to the original target agent unless the user explicitly retargets it.

Red Lines

  • Never restart all agents or unrelated agents.
  • Never use tmux kill-pane, kill-window, kill-server, respawn-pane, send-keys, manual pane creation, or other raw tmux mutation.
  • Never write lifecycle, lease, runtime, mailbox, provider session, or tmux authority files directly.
  • Never read, print, store, search for, scrape, borrow, or use API keys or credentials.
  • Never treat .ccb/agents/*, disk config, pid files, or tmux panes as live restart target authority.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

ask

무료

Send a request to another CCB agent with `ask`.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SeemSeam/claude_codex_bridge3.6천2026년 10월 14일 업데이트

ask

무료

Delegate work or request information from another CCB-managed agent using ask. Use when the user asks Grok to ask, delegate to, hand off to, consult, or send work to a named CCB agent, or when project memory requires CCB collaboration.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SeemSeam/claude_codex_bridge3.6천2026년 10월 14일 업데이트

ask

무료

Send a request to a CCB agent with `ask`.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SeemSeam/claude_codex_bridge3.6천2026년 10월 14일 업데이트

Submit one node result to the assigned Reviewer and finish only after a bounded pass/rework chain.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SeemSeam/claude_codex_bridge3.6천2026년 10월 14일 업데이트

Execute one bounded CCB work item and report evidence without changing workflow authority.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SeemSeam/claude_codex_bridge3.6천2026년 10월 14일 업데이트

Execute one scoped implementation or investigation item and return evidence without changing workflow authority.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

SeemSeam/claude_codex_bridge3.6천2026년 10월 14일 업데이트

SeemSeam의 스킬 모두 보기

이 스킬의 문제 신고