用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jleechanorg/claude-commands --skill ao-lifecycle-triage命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | ao-lifecycle-triage |
| description | Triage AO lifecycle backfill claim failures and ghost worktree fetch errors. |
When lifecycle.backfill.claim_failed errors appear in the lifecycle-worker log with:
fatal: refusing to fetch into branch 'refs/heads/BRANCH' checked out at 'PATH'
Symptom: checked out at '$HOME/project_agento/agent-orchestrator'
Diagnosis: git -C $HOME/project_agento/agent-orchestrator branch --show-current
Fix:
git -C $HOME/project_agento/agent-orchestrator checkout main
git -C $HOME/project_agento/agent-orchestrator pull --ff-only
Why it happens: An AO agent (or manual work) checked out a feature branch in the main repo and was killed before resetting to main.
Symptom: checked out at '$HOME/.worktrees/agent-orchestrator/ao-NNN'
Diagnosis: git worktree list | grep ao-NNN — if present with no live tmux session, it's a ghost
Fix:
tmux has-session -t bb5e6b7f8db3-ao-NNN 2>/dev/null || echo "Dead"
git worktree remove --force $HOME/.worktrees/agent-orchestrator/ao-NNN
Why it happens: AO session was killed without proper cleanup; worktree remained. The lifecycle-worker's sweepOrphanWorktrees auto-cleans after 6h TTL.
~/.worktrees/... → Cause Bclaim_failed_abort after 3 consecutive failures), check bothsweepOrphanWorktrees in lifecycle-worker.ts runs every 5min (orphan TTL: 6h)main before exitingGhost worktree accumulation cleaned manually twice in the same session on 2026-03-24 — this is the harness-level fix. If seeing this pattern again, the orphanTtlMs may need reduction.