pan-consolidate-conversations
Workflow: take over every unarchived conversation in the current project, settled and snoozed ones included — read what each one owns, carry its unfinished…
от eltmon★ 36 звёзд на GitHub
Установить pan-consolidate-conversations в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
pan-consolidate-conversations
The operator runs several conversations in one project and loses track of which one owns which work stream. This skill makes the conversation you are in the single owner: you read every other unarchived conversation in the project, settled and snoozed ones included, take over its unfinished commitments, and archive it. You end with a ledger that says what each archived conversation owned and what you now own.
Archiving is reversible (pan unarchive-conversation <name>), and the transcript
stays on disk. But archiving stops the conversation's runtime (pane and
harness process tree), so a conversation that is mid-turn loses that turn.
Steps
1. Identify yourself and the project
pan conv current --json # your id, name, cwd
DASH=${OVERDECK_DASHBOARD_URL:-http://127.0.0.1:3011}
CONVS=$(mktemp); curl -s "$DASH/api/conversations?limit=1000" > "$CONVS"
Read your own row in that list for projectKey and cwd. The dashboard must be
up (pan up); the archive step needs it.
2. Scope the conversations
A conversation is in scope when either:
- its
projectKeyequals yours, or - its
projectKeyisnulland itscwdis under your project root. A post-/clearcontinuation row often has noprojectKey, so the key alone misses it.
Settled and snoozed conversations are in scope. Settling only moves a row out of
the Inbox. The idle sweep settles any conversation untouched for a few days, and
a merge settles the one that opened the PR, so a settled row can still hold
unfinished commitments. Digest them like any other row (step 4), and carry what
is still open after you verify it against live state. The list returns them with
settledAt or snoozedUntil set; never filter on those fields.
Exclude:
- yourself;
- system conversations — names that do not start with a
YYYYMMDD-date (for examplesequencer-runner). Never archive these. - conversations on other machines — rows with
origin: "linked"(names start with@<machine>/). Their transcripts are not on this machine; leave them and list them in the ledger as not read.
Rows with status: ended and no live session are already dead: archive them
without a digest unless the title suggests real work.
3. Decide which are still running
Do not trust isWorking alone; it can stay true after the turn ends. A
conversation is running when either check below is true:
- Mid-turn: the transcript's last
user/assistant/systemrecord is not asystemrecord withsubtype: turn_duration.tail -c 60000 "$(pan conv jsonl <id> | tail -1)" | python3 -c ' import sys,json for l in sys.stdin.read().split("\n")[1:][-12:]: try: r=json.loads(l); print(r.get("timestamp"), r.get("type"), r.get("subtype")) except Exception: pass' - Background work: the harness process has live children (a Monitor, a
watch loop, a long build). Find the harness PID by its session id, then list
its children:
A child that has waited for days on a file that never appeared is stale, not running. Say so in the ledger.ps -eo pid,etime,args | grep -- "--session-id <claudeSessionId>" | grep -v grep ps -o pid,etime,args --ppid <pid>
Leave running conversations open. Tell the operator which ones and why.
4. Digest each conversation
For each in-scope conversation, read the operator's messages and the last assistant replies, then list its pending commitments: promised follow-ups, things waiting on deploys or approvals, agents it was steering, and questions it asked the operator that were never answered.
python3 - "$(pan conv jsonl <id> | tail -1)" <<'EOF'
import json, sys
def text(c):
if isinstance(c, str): return c
return ' '.join(b.get('text', '') for b in c if isinstance(b, dict) and b.get('type') == 'text')
users, replies = [], []
for line in open(sys.argv[1]):
try: r = json.loads(line)
except Exception: continue
m = r.get('message')
if not isinstance(m, dict): continue
t = text(m.get('content')).strip()
if not t or t.startswith('<'): continue
(users if r['type'] == 'user' else replies).append((r.get('timestamp', '')[:16], t))
for ts, t in users[:2] + users[-8:]: print('USER', ts, t[:600].replace('\n', ' '))
for ts, t in replies[-3:]: print('REPLY', ts, t[:2000])
EOF
pan conv jsonl reports expired when the transcript is gone; such a row has
nothing to carry. For a long conversation, also scan replies over ~700 chars in
its last two days: those are its status reports.
Then verify each commitment against live state before you adopt it. A
conversation's last report can be hours old. Use pan show <issue>, gh pr view,
the newest decisive CI run on main (gh run list --branch main --workflow CI --limit 20, skipping queued, in-progress and cancelled runs; its headSha may
be older than HEAD), and /api/health (buildCommit) rather than rep
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
FAQ
Что делает скилл pan-consolidate-conversations?
Workflow: take over every unarchived conversation in the current project, settled and snoozed ones included — read what each one owns, carry its unfinished commitments into this conversation, and archive the ones that are not mid-turn. Use when the operator has lost track of which conversation handles what and wants one conversation to own the project's work streams again.
Как установить скилл pan-consolidate-conversations?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pan-consolidate-conversations запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…