← ClaudeAtlas

org-resumelisted

中断された組織を再開する。.state/org-state.md が存在し Status: SUSPENDED のとき、 「再開」「続きから」「前回どこまでやった?」と言われたときに使う。 起動時の自動ブリーフィングにも対応。
suisya-systems/claude-org-ja · ★ 1 · AI & Automation · score 70
Install: claude install-skill suisya-systems/claude-org-ja
# org-resume: 組織の再開 中断された組織の状態を読み込み、人間にブリーフィングし、再開する。 > **state DB 前提 (Issue #267 / M4)**: `.state/state.db` が唯一の SoT。 > read 経路は DB のみ (markdown fallback は M4 で撤去)、構造化セクションの > write 経路は `StateWriter.transaction()` 経由(post-commit hook が > `.state/org-state.md` を DB から自動再生成、markdown 直接編集禁止 — > drift_check が検出する)。free-form な学び / Pending Lead 等は > `notes/` 配下に保存する。`.state/journal.jsonl` は M4 で廃止。 > DB が無い場合は `python -m tools.state_db.importer --db .state/state.db --rebuild --no-strict` で構築する。 ## Phase 1: 状態読み込みとブリーフィング 0. **state schema migration を実行する**(Set C §4.4 契約)。`.state/` 配下の JSON 状態を最新スキーマへ揃えてから読み込みに入る: ```bash py -3 tools/state_migrate.py # Windows python3 tools/state_migrate.py # Mac/Linux ``` exit 0 なら続行。exit 1(未対応 version 残存)/ exit 2(migration ループ異常)なら人間に報告して停止する。 1. **DB から前回状態を取得する**(Phase 1 は軽量 briefing API、Issue #412): - `.state/state.db` が存在 → DB をクエリ: ```bash python -c "from tools.state_db import connect; from tools.state_db.queries import get_resume_briefing_light; import json; \ conn = connect('.state/state.db'); \ print(json.dumps(get_resume_briefing_light(conn), ensure_ascii=False, indent=2, default=str))" ``` `active_runs` / `reserved_runs` / `recent_events` / `last_suspend_summary` でブリーフィング素材を作る。 `session` には Status / Current Objective / suspended_at / resumed_at / resume_summary が圧縮されて入る(raw `resume_instructions` 本文と raw event `payload_json` は含まれない)。 `active_inventory_dirs` は `runs.