[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MKC1K6ESJ7N8CTG0RZQHMA":3,"skill-same:01M6MKC1K6ESJ7N8CTG0RZQHMA":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":47,"commitSha":48,"skillDirectory":49,"forksCount":50,"repositoryHtmlUrl":51,"repositoryHomepageUrl":52,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":69},"01M6MKC1K6ESJ7N8CTG0RZQHMA","skill-resume",null,"Pick up where you left off from a previous session — use after context resets, compaction, or new conversations","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fnyldn\u002Fclaude-octopus\u002Fskills\u002Fskill-resume\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000038","人力资源","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40],"resume","skill resume","pick","context","session","use","up","compaction","you","conversations","true","new","2026-11-10 10:12:30",false,"---\nname: skill-resume\ndescription: \"Pick up where you left off from a previous session — use after context resets, compaction, or new conversations\"\ndisable-model-invocation: true\n---\n\n> **Host: Codex CLI** — This skill was designed for Claude Code and adapted for Codex.\n> Cross-reference commands use installed skill names in Codex rather than `\u002Focto:*` slash commands.\n> Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it.\n> For host tool equivalents, see `skills\u002Fblocks\u002Fcodex-host-adapter.md`.\n\n\n# Session Restoration\n\n## Overview\n\nRestore context from a previous session and seamlessly continue the workflow where you left off.\n\n**Core principle:** Check state → Load adaptive context → Display restoration summary → Route to appropriate action.\n\n\n## When to Use\n\n**Use this skill when user says:**\n- \"Resume\" or \"continue working\"\n- \"Pick up where I left off\"\n- \"What was I doing?\"\n- \"Restore session\"\n- \"Continue from last time\"\n\n**Do NOT use for:**\n- Starting new projects (use \u002Focto:embrace)\n- Checking current status only (use \u002Focto:status)\n- Modifying state directly (use octo-state.sh)\n\n\n## The Process\n\n### Phase 0: Check Session Handoff File (v9.6.0)\n\n#### Step 0: Check for the session handoff file\n\nBefore checking `.octo\u002F`, look for a session handoff file. This is written automatically\nby PreCompact and SessionEnd hooks and contains a human-readable summary of the last session.\nIt lives beside the workflow state returned by `octopus state-path`, outside the project\ncheckout. Older releases wrote `.octo-continue.md` into the project root instead; read that\ncopy only when no relocated handoff exists, and never modify, move, or delete it.\n\n```bash\nHANDOFF_FILE=\"\"\nif WORKFLOW_STATE_FILE=\"$(octopus state-path)\" && [[ -n \"$WORKFLOW_STATE_FILE\" ]]; then\n    HANDOFF_FILE=\"$(dirname \"$WORKFLOW_STATE_FILE\")\u002Fcontinue.md\"\nfi\nif [[ -n \"$HANDOFF_FILE\" && -f \"$HANDOFF_FILE\" ]]; then\n    cat \"$HANDOFF_FILE\"\nelif [[ -f \".octo-continue.md\" ]]; then\n    cat \".octo-continue.md\"\nfi\n```\n\n**If a handoff file was found**, display its contents to the user as context. Then continue\nto Phase 1 to load the full state. The handoff file provides a quick overview; `.octo\u002FSTATE.md`\nprovides the authoritative state. If the legacy `.octo-continue.md` was shown, tell the user it\nis no longer updated and can be deleted from the project.\n\n### Phase 1: Check Project Initialization\n\n## Repository feature recovery\n\nBefore looking for a transcript or machine-local `.octo` state, inspect portable feature artifacts:\n\n```bash\nOCTO_ROOT=\"${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${HOME}\u002F.claude-octopus\u002Fplugin}}\"\npython3 \"$OCTO_ROOT\u002Fscripts\u002Fhelpers\u002Ffeature-contract.py\" resume --root \"$(pwd -P)\" --explicit \"\u003Cfeature directory or spec path, empty when omitted>\"\n```\n\nAn unambiguous feature recovers intent, decisions, open markers and stable completed\u002Fpending task IDs from the repository. Historical completion is context and needs fresh verification. Missing raw runtime files are expected. If several unrelated features exist, ask the user to select one; never choose by recency. Pass the selected feature to the existing `agent-resume` orchestrator path. Explicit Claude agent IDs retain transcript continuation.\n\nA feature with a spec only resumes planning. A feature with plan\u002Ftasks resumes pending implementation through the same policy, clarification, analysis and wave-validation gates. Run the returned decision batch once through the host's native question tool before the next plan\u002Fdevelop boundary. Keep skipped decisions open.\n\n#### Step 1: Verify .octo\u002F Directory Exists\n\n```bash\nif [[ ! -d \".octo\" ]]; then\n    echo \"No project state found\"\n    exit 1\nfi\n```\n\n**If .octo\u002F does not exist but Step 0 found a handoff file**, display its contents and\noffer to start a new session based on that context.\n\n**If neither exists, display:**\n\n```markdown\n## Session Restoration Failed\n\n**No project state found.**\n\nThere is no machine-local `.octo\u002F` directory. Check the portable feature artifacts before treating this as a fresh project.\n\n### Get Started\n\nRun `\u002Focto:embrace [your project description]` to start a new project.\n\n**Example:**\n```\n\u002Focto:embrace build a REST API with user authentication\n```\n\nThis will:\n1. Initialize .octo\u002F directory with STATE.md, PROJECT.md, ROADMAP.md\n2. Begin the Double Diamond workflow\n3. Create session state you can resume later\n```\n\n**Stop here** - do not proceed to Phase 2.\n\n\n### Phase 2: Read Current State\n\n#### Step 1: Execute octo-state.sh read_state\n\n```bash\n.\u002Fscripts\u002Focto-state.sh read_state\n```\n\n**Expected output format:**\n```\nschema=2.0\nlast_updated=2026-02-02T10:30:00Z\ncurrent_phase=2\ncurrent_position=define-requirements\nstatus=in_progress\n```\n\n#### Step 2: Parse State Variables\n\nExtract these key values:\n- `current_phase` - Phase number (1-4)\n- `current_position` - Description of current position within phase\n- `status` - Workflow status (in_progress, blocked, complete, paused, etc.)\n- `last_updated` - Timestamp of last state modification\n\n\n### Phase 3: Load Adaptive Context\n\n#### Step 1: Get Context Tier (Auto Mode)\n\n```bash\n.\u002Fscripts\u002Focto-state.sh get_context_tier auto\n```\n\nThis automatically selects the appropriate context tier based on current status:\n\n| Status | Tier Selected | Context Loaded |\n|--------|---------------|----------------|\n| ready, planned, planning, complete, shipped | planning | STATE.md + PROJECT.md + ROADMAP.md |\n| building, in_progress | execution | + phase plans + recent summaries |\n| blocked, paused | execution | + phase plans + recent summaries |\n\n#### Step 2: Store Context for Reference\n\nThe context returned includes:\n- Current state details\n- Project vision and requirements\n- Phase-specific plans and summaries\n- Codebase analysis (if brownfield project)\n\n\n### Phase 4: Extract History and Blockers\n\n#### Step 1: Read Last 3 History Entries from STATE.md\n\n```bash\n# Extract history section from STATE.md\ngrep -A 4 \"^## History\" .octo\u002FSTATE.md | tail -n 3\n```\n\n**Expected format:**\n```\n- [2026-02-02T10:30:00Z] Phase 2: Completed requirements review (complete)\n- [2026-02-02T09:15:00Z] Phase 2: Started define phase (in_progress)\n- [2026-02-01T16:45:00Z] Phase 1: Completed discovery (complete)\n```\n\n#### Step 2: Extract Blockers from STATE.md\n\n```bash\n# Extract blockers section\nsed -n '\u002F^## Blockers\u002F,\u002F^## \u002Fp' .octo\u002FSTATE.md | head -n -1 | tail -n +2\n```\n\n**Expected format:**\n- If blockers exist: List of blocker items\n- If no blockers: `(none)`\n\n#### Step 3: Read Project Title from PROJECT.md\n\n```bash\n# Get project title (first H1)\nhead -n 5 .octo\u002FPROJECT.md | grep \"^# \" | head -1 | sed 's\u002F^# \u002F\u002F'\n```\n\n\n### Phase 5: Display Restoration Summary\n\n#### Step 1: Build and Display Summary\n\n```markdown\n## Session Restored\n\n**Project:** {project_title from PROJECT.md}\n**Last Active:** {last_updated from STATE.md}\n**Phase:** {current_phase} - {phase_name}\n**Position:** {current_position}\n**Status:** {status}\n\n### Where You Left Off\n\n{Last 3 entries from STATE.md history}\n\n### Current Blockers\n\n{Blockers from STATE.md or \"None\"}\n\n### Ready to Continue\n\n{Intelligent suggestion based on status - see routing table below}\n```\n\n#### Step 2: Map Phase Number to Name\n\n| Phase | Name |\n|-------|------|\n| 1 | Discover |\n| 2 | Define |\n| 3 | Develop |\n| 4 | Deliver |\n\n\n### Phase 6: Intelligent Routing\n\n#### Step 1: Route Based on Status\n\n| Status | Action | Message |\n|--------|--------|---------|\n| `in_progress` | Continue current phase | \"Continue with current phase. Context loaded.\" |\n| `blocked` | Review blockers | \"Review blockers first: `\u002Focto:issues`\" |\n| `complete` | Ready for next phase | \"Phase complete. Ready for `\u002Focto:ship`\" |\n| `paused` | Resume project | \"Project paused. Resume with `\u002Focto:embrace`\" |\n| `ready` | Begin workflow | \"Ready to begin. Run `\u002Focto:embrace` to start.\" |\n| `planning` | Continue planning | \"Continue planning. Use `\u002Focto:define` to refine.\" |\n| `building` | Continue building | \"Continue implementation. Use `\u002Focto:develop`.\" |\n| `shipped` | Project delivered | \"Project delivered! Review lessons in LESSONS.md.\" |\n| `complete_with_gaps` | Review gaps | \"Phase complete with gaps. Review ISSUES.md before proceeding.\" |\n\n#### Step 2: Phase-Specific Guidance (for in_progress status)\n\n**Phase 1 (Discover):**\n```\nContinue research and exploration.\n- Use `\u002Focto:research [topic]` for multi-AI research\n- Use `\u002Focto:debate [question]` for decision support\n- Check `.octo\u002Fphases\u002Fphase1\u002F` for research notes\n```\n\n**Phase 2 (Define):**\n```\nContinue requirements clarification.\n- Use `\u002Focto:prd` to write product requirements\n- Use `\u002Focto:define` to refine scope\n- Check `.octo\u002Fphases\u002Fphase2\u002F` for requirements docs\n```\n\n**Phase 3 (Develop):**\n```\nContinue implementation.\n- Use `\u002Focto:develop` to build features\n- Use `\u002Focto:tdd` for test-driven development\n- Check `.octo\u002Fphases\u002Fphase3\u002F` for implementation plan\n```\n\n**Phase 4 (Deliver):**\n```\nContinue validation and delivery.\n- Use `\u002Focto:deliver` for final review\n- Use `\u002Focto:security` for security audit\n- Use `\u002Focto:ship` to finalize delivery\n```\n\n\n## Example Outputs\n\n### Example 1: No Project State Found\n\n```markdown\n## Session Restoration Failed\n\n**No project state found.**\n\nThere is no machine-local `.octo\u002F` directory. Check the portable feature artifacts before treating this as a fresh project.\n\n### Get Started\n\nRun `\u002Focto:embrace [your project description]` to start a new project.\n```\n\n\n### Example 2: Successful Restoration (In Progress)\n\n```markdown\n## Session Restored\n\n**Project:** User Authentication System\n**Last Active:** 2026-02-02T10:30:00Z\n**Phase:** 2 - Define\n**Position:** define-requirements\n**Status:** in_progress\n\n### Where You Left Off\n\n- [2026-02-02T10:30:00Z] Phase 2: Started requirements review (in_progress)\n- [2026-02-01T16:45:00Z] Phase 1: Completed discovery (complete)\n- [2026-02-01T14:20:00Z] Phase 1: Research synthesis complete (in_progress)\n\n### Current Blockers\n\nNone\n\n### Ready to Continue\n\nContinue with current phase. Context loaded.\n\nContinue requirements clarification.\n- Use `\u002Focto:prd` to write product requirements\n- Use `\u002Focto:define` to refine scope\n- Check `.octo\u002Fphases\u002Fphase2\u002F` for requirements docs\n```\n\n\n### Example 3: Blocked Project Restoration\n\n```markdown\n## Session Restored\n\n**Project:** E-commerce Platform\n**Last Active:** 2026-02-01T18:00:00Z\n**Phase:** 3 - Develop\n**Position:** implement-payment-gateway\n**Status:** blocked\n\n### Where You Left Off\n\n- [2026-02-01T18:00:00Z] Phase 3: Payment integration blocked (blocked)\n- [2026-02-01T15:30:00Z] Phase 3: Started payment gateway integration (in_progress)\n- [2026-02-01T12:00:00Z] Phase 3: Completed user auth implementation (complete)\n\n### Current Blockers\n\n- Missing Stripe API credentials\n- Payment webhook endpoint not configured\n- SSL certificate pending for payment domain\n\n### Ready to Continue\n\nReview blockers first: `\u002Focto:issues`\n\n**To unblock:**\n1. Configure Stripe API credentials in environment\n2. Set up webhook endpoint at \u002Fapi\u002Fwebhooks\u002Fstripe\n3. Complete SSL certificate setup for payments subdomain\n```\n\n\n### Example 4: Paused Project Restoration\n\n```markdown\n## Session Restored\n\n**Project:** Data Analytics Dashboard\n**Last Active:** 2026-01-28T09:00:00Z\n**Phase:** 2 - Define\n**Position:** requirements-gathering\n**Status:** paused\n\n### Where You Left Off\n\n- [2026-01-28T09:00:00Z] Phase 2: Project paused by user (paused)\n- [2026-01-27T16:00:00Z] Phase 2: Stakeholder feedback pending (in_progress)\n- [2026-01-27T10:00:00Z] Phase 1: Discovery complete (complete)\n\n### Current Blockers\n\n- Waiting for stakeholder availability\n\n### Ready to Continue\n\nProject paused. Resume with `\u002Focto:embrace`\n\nWhen ready to continue:\n1. Review `.octo\u002FPROJECT.md` for project context\n2. Check `.octo\u002FSTATE.md` for pause reason\n3. Run `\u002Focto:embrace` to resume workflow\n```\n\n\n## Best Practices\n\n### 1. Always Use octo-state.sh for State Reading\n\n**Good:**\n```bash\n.\u002Fscripts\u002Focto-state.sh read_state\n.\u002Fscripts\u002Focto-state.sh get_context_tier auto\n```\n\n**Poor:**\n```bash\n# Parse STATE.md manually\ngrep \"Current Phase\" .octo\u002FSTATE.md\n```\n\n### 2. Provide Full Context Restoration\n\n**Good:**\n- Load adaptive context tier\n- Show last 3 history entries\n- Display any blockers\n- Give phase-specific guidance\n\n**Poor:**\n- Only show current phase\n- Ignore history\n- No next steps\n\n### 3. Route Intelligently Based on Status\n\n**Good:**\n```\nStatus: blocked → \"Review blockers first: \u002Focto:issues\"\n```\n\n**Poor:**\n```\nStatus: blocked → \"Continue working\"\n```\n\n\n## Red Flags - Don't Do This\n\n| Action | Why It's Wrong |\n|--------|----------------|\n| Skip .octo\u002F existence check | Will fail with confusing errors |\n| Ignore blockers on resume | User won't know why they stopped |\n| Restart from beginning | Loses all previous context and progress |\n| Skip history display | User loses continuity of what was done |\n| Use hardcoded context tier | Should adapt based on current status |\n\n\n## Integration with Other Skills\n\n### With \u002Focto:status\n\n```\n\u002Focto:resume → Full restoration with context\n\u002Focto:status → Quick dashboard without restoration\n```\n\n### With \u002Focto:embrace\n\n```\nNo .octo\u002F exists → \u002Focto:resume suggests \u002Focto:embrace\n.octo\u002F exists but paused → \u002Focto:resume suggests resuming with \u002Focto:embrace\n```\n\n### With flow-* skills\n\n```\nUser runs \u002Focto:resume\n→ Context restored\n→ User continues with \u002Focto:develop (or appropriate phase skill)\n```\n\n\n## Quick Reference\n\n| User Input | Action Required |\n|------------|-----------------|\n| \"resume\" | Resolve state with `octopus state-path` → Load context → Display summary → Route |\n| \"continue\" | Same as resume |\n| \"pick up where I left off\" | Same as resume |\n| \"what was I doing\" | Same as resume, emphasize history |\n| \"restore session\" | Same as resume |\n\n\n## The Bottom Line\n\n```\nRun `octopus state-path` → Read state → Load adaptive context → Show history + blockers → Route intelligently\nOtherwise → User loses previous context and wastes time re-discovering where they were\n```\n\n**Never restart from beginning if state exists. Restore context, show history, route intelligently.**\n\n\n## Context Recovery After Compaction\n\nWhen context is cleared (compaction, plan mode exit, new session), detect and reload automatically:\n\n```bash\n# Auto-detect context loss without writing into the project checkout.\n# The plugin executable resolves its own installation root on every host.\nif ! WORKFLOW_STATE_FILE=\"$(octopus state-path)\" || [[ -z \"$WORKFLOW_STATE_FILE\" ]]; then\n    echo \"Unable to resolve persistent workflow state; refusing an incomplete resume.\" >&2\n    exit 1\nfi\nif [[ -f \"$WORKFLOW_STATE_FILE\" ]] && [[ -z \"${WORKFLOW_CONTEXT_LOADED}\" ]]; then\n    echo \"⚠️  Context was cleared — reloading from persistent state...\"\n    NEEDS_RESUME=true\nfi\n```\n\n**What survives context clearing:**\n- Host-workspace project state (decisions, context, metrics; resolve with `octopus state-path`)\n- `context\u002F*.md` beside the path returned by `octopus state-path` (phase outputs)\n- Native tasks (TaskList still works)\n- Git commits and WIP checkpoints\n- Multi-AI synthesis files in `~\u002F.claude-octopus\u002Fresults\u002F`\n\nAfter resume completes, set `export WORKFLOW_CONTEXT_LOADED=true` to prevent duplicate reloads.\n\n**State persists in files. Context clearing is not a problem. Files outlive memory.**\n","> **Host: Codex CLI** — This skill was designed for Claude Code and adapted for Codex.\n> Cross-reference commands use installed skill names in Codex rather than `\u002Focto:*` slash commands.\n> Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it.\n> For host tool equivalents, see `skills\u002Fblocks\u002Fcodex-host-adapter.md`.\n\n\n# Session Restoration\n\n## Overview\n\nRestore context from a previous session and seamlessly continue the workflow where you left off.\n\n**Core principle:** Check state → Load adaptive context → Display restoration summary → Route to appropriate action.\n\n\n## When to Use\n\n**Use this skill when user says:**\n- \"Resume\" or \"continue working\"\n- \"Pick up where I left off\"\n- \"What was I doing?\"\n- \"Restore session\"\n- \"Continue from last time\"\n\n**Do NOT use for:**\n- Starting new projects (use \u002Focto:embrace)\n- Checking current status only (use \u002Focto:status)\n- Modifying state directly (use octo-state.sh)\n\n\n## The Process\n\n### Phase 0: Check Session Handoff File (v9.6.0)\n\n#### Step 0: Check for the session handoff file\n\nBefore checking `.octo\u002F`, look for a session handoff file. This is written automatically\nby PreCompact and SessionEnd hooks and contains a human-readable summary of the last session.\nIt lives beside the workflow state returned by `octopus state-path`, outside the project\ncheckout. Older releases wrote `.octo-continue.md` into the project root instead; read that\ncopy only when no relocated handoff exists, and never modify, move, or delete it.\n\n```bash\nHANDOFF_FILE=\"\"\nif WORKFLOW_STATE_FILE=\"$(octopus state-path)\" && [[ -n \"$WORKFLOW_STATE_FILE\" ]]; then\n    HANDOFF_FILE=\"$(dirname \"$WORKFLOW_STATE_FILE\")\u002Fcontinue.md\"\nfi\nif [[ -n \"$HANDOFF_FILE\" && -f \"$HANDOFF_FILE\" ]]; then\n    cat \"$HANDOFF_FILE\"\nelif [[ -f \".octo-continue.md\" ]]; then\n    cat \".octo-continue.md\"\nfi\n```\n\n**If a handoff file was found**, display its contents to the user as context. Then continue\nto Phase 1 to load the full state. The handoff file provides a quick overview; `.octo\u002FSTATE.md`\nprovides the authoritative state. If the legacy `.octo-continue.md` was shown, tell the user it\nis no longer updated and can be deleted from the project.\n\n### Phase 1: Check Project Initialization\n\n## Repository feature recovery\n\nBefore looking for a transcript or machine-local `.octo` state, inspect portable feature artifacts:\n\n```bash\nOCTO_ROOT=\"${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${HOME}\u002F.claude-octopus\u002Fplugin}}\"\npython3 \"$OCTO_ROOT\u002Fscripts\u002Fhelpers\u002Ffeature-contract.py\" resume --root \"$(pwd -P)\" --explicit \"\u003Cfeature directory or spec path, empty when omitted>\"\n```\n\nAn unambiguous feature recovers intent, decisions, open markers and stable completed\u002Fpending task IDs from the repository. Historical completion is context and needs fresh verification. Missing raw runtime files are expected. If several unrelated features exist, ask the user to select one; never choose by recency. Pass the selected feature to the existing `agent-resume` orchestrator path. Explicit Claude agent IDs retain transcript continuation.\n\nA feature with a spec only resumes planning. A feature with plan\u002Ftasks resumes pending implementation through the same policy, clarification, analysis and wave-validation gates. Run the returned decision batch once through the host's native question tool before the next plan\u002Fdevelop boundary. Keep skipped decisions open.\n\n#### Step 1: Verify .octo\u002F Directory Exists\n\n```bash\nif [[ ! -d \".octo\" ]]; then\n    echo \"No project state found\"\n    exit 1\nfi\n```\n\n**If .octo\u002F does not exist but Step 0 found a handoff file**, display its contents and\noffer to start a new session based on that context.\n\n**If neither exists, display:**\n\n```markdown\n## Session Restoration Failed\n\n**No project state found.**\n\nThere is no machine-local `.octo\u002F` directory. Check the portable feature artifacts before treating this as a fresh project.\n\n### Get Started\n\nRun `\u002Focto:embrace [your project description]` to start a new project.\n\n**Example:**\n```\n\u002Focto:embrace build a REST API with user authentication\n```\n\nThis will:\n1. Initialize .octo\u002F directory with STATE.md, PROJECT.md, ROADMAP.md\n2. Begin the Double Diamond workflow\n3. Create session state you can resume later\n```\n\n**Stop here** - do not proceed to Phase 2.\n\n\n### Phase 2: Read Current State\n\n#### Step 1: Execute octo-state.sh read_state\n\n```bash\n.\u002Fscripts\u002Focto-state.sh read_state\n```\n\n**Expected output format:**\n```\nschema=2.0\nlast_updated=2026-02-02T10:30:00Z\ncurrent_phase=2\ncurrent_position=define-requirements\nstatus=in_progress\n```\n\n#### Step 2: Parse State Variables\n\nExtract these key values:\n- `current_phase` - Phase number (1-4)\n- `current_position` - Description of current position within phase\n- `status` - Workflow status (in_progress, blocked, complete, paused, etc.)\n- `last_updated` - Timestamp of last state modification\n\n\n### Phase 3: Load Adaptive Context\n\n#### Step 1: Get Context Tier (Auto Mode)\n\n```bash\n.\u002Fscripts\u002Focto-state.sh get_context_tier auto\n```\n\nThis automatically selects the appropriate context tier based on current status:\n\n| Status | Tier Selected | Context Loaded |\n|--------|---------------|----------------|\n| ready, planned, planning, complete, shipped | planning | STATE.md + PROJECT.md + ROADMAP.md |\n| building, in_progress | execution | + phase plans + recent summaries |\n| blocked, paused | execution | + phase plans + recent summaries |\n\n#### Step 2: Store Context for Reference\n\nThe context returned includes:\n- Current state details\n- Project vision and requirements\n- Phase-specific plans and summaries\n- Codebase analysis (if brownfield project)\n\n\n### Phase 4: Extract History and Blockers\n\n#### Step 1: Read Last 3 History Entries from STATE.md\n\n```bash\n# Extract history section from STATE.md\ngrep -A 4 \"^## History\" .octo\u002FSTATE.md | tail -n 3\n```\n\n**Expected format:**\n```\n- [2026-02-02T10:30:00Z] Phase 2: Completed requirements review (complete)\n- [2026-02-02T09:15:00Z] Phase 2: Started define phase (in_progress)\n- [2026-02-01T16:45:00Z] Phase 1: Completed discovery (complete)\n```\n\n#### Step 2: Extract Blockers from STATE.md\n\n```bash\n# Extract blockers section\nsed -n '\u002F^## Blockers\u002F,\u002F^## \u002Fp' .octo\u002FSTATE.md | head -n -1 | tail -n +2\n```\n\n**Expected format:**\n- If blockers exist: List of blocker items\n- If no blockers: `(none)`\n\n#### Step 3: Read Project Title from PROJECT.md\n\n```bash\n# Get project title (first H1)\nhead -n 5 .octo\u002FPROJECT.md | grep \"^# \" | head -1 | sed 's\u002F^# \u002F\u002F'\n```\n\n\n### Phase 5: Display Restoration Summary\n\n#### Step 1: Build and Display Summary\n\n```markdown\n## Session Restored\n\n**Project:** {project_title from PROJECT.md}\n**Last Active:** {last_updated from STATE.md}\n**Phase:** {current_phase} - {phase_name}\n**Position:** {current_position}\n**Status:** {status}\n\n### Where You Left Off\n\n{Last 3 entries from STATE.md history}\n\n### Current Blockers\n\n{Blockers from STATE.md or \"None\"}\n\n### Ready to Continue\n\n{Intelligent suggestion based on status - see routing table below}\n```\n\n#### Step 2: Map Phase Number to Name\n\n| Phase | Name |\n|-------|------|\n| 1 | Discover |\n| 2 | Define |\n| 3 | Develop |\n| 4 | Deliver |\n\n\n### Phase 6: Intelligent Routing\n\n#### Step 1: Route Based on Status\n\n| Status | Action | Message |\n|--------|--------|---------|\n| `in_progress` | Continue current phase | \"Continue with current phase. Context loaded.\" |\n| `blocked` | Review blockers | \"Review blockers first: `\u002Focto:issues`\" |\n| `complete` | Ready for next phase | \"Phase complete. Ready for `\u002Focto:ship`\" |\n| `paused` | Resume project | \"Project paused. Resume with `\u002Focto:embrace`\" |\n| `ready` | Begin workflow | \"Ready to begin. Run `\u002Focto:embrace` to start.\" |\n| `planning` | Continue planning | \"Continue planning. Use `\u002Focto:define` to refine.\" |\n| `building` | Continue building | \"Continue implementation. Use `\u002Focto:develop`.\" |\n| `shipped` | Project delivered | \"Project delivered! Review lessons in LESSONS.md.\" |\n| `complete_with_gaps` | Review gaps | \"Phase complete with gaps. Review ISSUES.md before proceeding.\" |\n\n#### Step 2: Phase-Specific Guidance (for in_progress status)\n\n**Phase 1 (Discover):**\n```\nContinue research and exploration.\n- Use `\u002Focto:research [topic]` for multi-AI research\n- Use `\u002Focto:debate [question]` for decision support\n- Check `.octo\u002Fphases\u002Fphase1\u002F` for research notes\n```\n\n**Phase 2 (Define):**\n```\nContinue requirements clarification.\n- Use `\u002Focto:prd` to write product requirements\n- Use `\u002Focto:define` to refine scope\n- Check `.octo\u002Fphases\u002Fphase2\u002F` for requirements docs\n```\n\n**Phase 3 (Develop):**\n```\nContinue implementation.\n- Use `\u002Focto:develop` to build features\n- Use `\u002Focto:tdd` for test-driven development\n- Check `.octo\u002Fphases\u002Fphase3\u002F` for implementation plan\n```\n\n**Phase 4 (Deliver):**\n```\nContinue validation and delivery.\n- Use `\u002Focto:deliver` for final review\n- Use `\u002Focto:security` for security audit\n- Use `\u002Focto:ship` to finalize delivery\n```\n\n\n## Example Outputs\n\n### Example 1: No Project State Found\n\n```markdown\n## Session Restoration Failed\n\n**No project state found.**\n\nThere is no machine-local `.octo\u002F` directory. Check the portable feature artifacts before treating this as a fresh project.\n\n### Get Started\n\nRun `\u002Focto:embrace [your project description]` to start a new project.\n```\n\n\n### Example 2: Successful Restoration (In Progress)\n\n```markdown\n## Session Restored\n\n**Project:** User Authentication System\n**Last Active:** 2026-02-02T10:30:00Z\n**Phase:** 2 - Define\n**Position:** define-requirements\n**Status:** in_progress\n\n### Where You Left Off\n\n- [2026-02-02T10:30:00Z] Phase 2: Started requirements review (in_progress)\n- [2026-02-01T16:45:00Z] Phase 1: Completed discovery (complete)\n- [2026-02-01T14:20:00Z] Phase 1: Research synthesis complete (in_progress)\n\n### Current Blockers\n\nNone\n\n### Ready to Continue\n\nContinue with current phase. Context loaded.\n\nContinue requirements clarification.\n- Use `\u002Focto:prd` to write product requirements\n- Use `\u002Focto:define` to refine scope\n- Check `.octo\u002Fphases\u002Fphase2\u002F` for requirements docs\n```\n\n\n### Example 3: Blocked Project Restoration\n\n```markdown\n## Session Restored\n\n**Project:** E-commerce Platform\n**Last Active:** 2026-02-01T18:00:00Z\n**Phase:** 3 - Develop\n**Position:** implement-payment-gateway\n**Status:** blocked\n\n### Where You Left Off\n\n- [2026-02-01T18:00:00Z] Phase 3: Payment integration blocked (blocked)\n- [2026-02-01T15:30:00Z] Phase 3: Started payment gateway integration (in_progress)\n- [2026-02-01T12:00:00Z] Phase 3: Completed user auth implementation (complete)\n\n### Current Blockers\n\n- Missing Stripe API credentials\n- Payment webhook endpoint not configured\n- SSL certificate pending for payment domain\n\n### Ready to Continue\n\nReview blockers first: `\u002Focto:issues`\n\n**To unblock:**\n1. Configure Stripe API credentials in environment\n2. Set up webhook endpoint at \u002Fapi\u002Fwebhooks\u002Fstripe\n3. Complete SSL certificate setup for payments subdomain\n```\n\n\n### Example 4: Paused Project Restoration\n\n```markdown\n## Session Restored\n\n**Project:** Data Analytics Dashboard\n**Last Active:** 2026-01-28T09:00:00Z\n**Phase:** 2 - Define\n**Position:** requirements-gathering\n**Status:** paused\n\n### Where You Left Off\n\n- [2026-01-28T09:00:00Z] Phase 2: Project paused by user (paused)\n- [2026-01-27T16:00:00Z] Phase 2: Stakeholder feedback pending (in_progress)\n- [2026-01-27T10:00:00Z] Phase 1: Discovery complete (complete)\n\n### Current Blockers\n\n- Waiting for stakeholder availability\n\n### Ready to Continue\n\nProject paused. Resume with `\u002Focto:embrace`\n\nWhen ready to continue:\n1. Review `.octo\u002FPROJECT.md` for project context\n2. Check `.octo\u002FSTATE.md` for pause reason\n3. Run `\u002Focto:embrace` to resume workflow\n```\n\n\n## Best Practices\n\n### 1. Always Use octo-state.sh for State Reading\n\n**Good:**\n```bash\n.\u002Fscripts\u002Focto-state.sh read_state\n.\u002Fscripts\u002Focto-state.sh get_context_tier auto\n```\n\n**Poor:**\n```bash\n# Parse STATE.md manually\ngrep \"Current Phase\" .octo\u002FSTATE.md\n```\n\n### 2. Provide Full Context Restoration\n\n**Good:**\n- Load adaptive context tier\n- Show last 3 history entries\n- Display any blockers\n- Give phase-specific guidance\n\n**Poor:**\n- Only show current phase\n- Ignore history\n- No next steps\n\n### 3. Route Intelligently Based on Status\n\n**Good:**\n```\nStatus: blocked → \"Review blockers first: \u002Focto:issues\"\n```\n\n**Poor:**\n```\nStatus: blocked → \"Continue working\"\n```\n\n\n## Red Flags - Don't Do This\n\n| Action | Why It's Wrong |\n|--------|----------------|\n| Skip .octo\u002F existence check | Will fail with confusing errors |\n| Ignore blockers on resume | User won't know why they stopped |\n| Restart from beginning | Loses all previous context and progress |\n| Skip history display | User loses continuity of what was done |\n| Use hardcoded context tier | Should adapt based on current status |\n\n\n## Integration with Other Skills\n\n### With \u002Focto:status\n\n```\n\u002Focto:resume → Full restoration with context\n\u002Focto:status → Quick dashboard without restoration\n```\n\n### With \u002Focto:embrace\n\n```\nNo .octo\u002F exists → \u002Focto:resume suggests \u002Focto:embrace\n.octo\u002F exists but paused → \u002Focto:resume suggests resuming with \u002Focto:embrace\n```\n\n### With flow-* skills\n\n```\nUser runs \u002Focto:resume\n→ Context restored\n→ User continues with \u002Focto:develop (or appropriate phase skill)\n```\n\n\n## Quick Reference\n\n| User Input | Action Required |\n|------------|-----------------|\n| \"resume\" | Resolve state with `octopus state-path` → Load context → Display summary → Route |\n| \"continue\" | Same as resume |\n| \"pick up where I left off\" | Same as resume |\n| \"what was I doing\" | Same as resume, emphasize history |\n| \"restore session\" | Same as resume |\n\n\n## The Bottom Line\n\n```\nRun `octopus state-path` → Read state → Load adaptive context → Show history + blockers → Route intelligently\nOtherwise → User loses previous context and wastes time re-discovering where they were\n```\n\n**Never restart from beginning if state exists. Restore context, show history, route intelligently.**\n\n\n## Context Recovery After Compaction\n\nWhen context is cleared (compaction, plan mode exit, new session), detect and reload automatically:\n\n```bash\n# Auto-detect context loss without writing into the project checkout.\n# The plugin executable resolves its own installation root on every host.\nif ! WORKFLOW_STATE_FILE=\"$(octopus state-path)\" || [[ -z \"$WORKFLOW_STATE_FILE\" ]]; then\n    echo \"Unable to resolve persistent workflow state; refusing an incomplete resume.\" >&2\n    exit 1\nfi\nif [[ -f \"$WORKFLOW_STATE_FILE\" ]] && [[ -z \"${WORKFLOW_CONTEXT_LOADED}\" ]]; then\n    echo \"⚠️  Context was cleared — reloading from persistent state...\"\n    NEEDS_RESUME=true\nfi\n```\n\n**What survives context clearing:**\n- Host-workspace project state (decisions, context, metrics; resolve with `octopus state-path`)\n- `context\u002F*.md` beside the path returned by `octopus state-path` (phase outputs)\n- Native tasks (TaskList still works)\n- Git commits and WIP checkpoints\n- Multi-AI synthesis files in `~\u002F.claude-octopus\u002Fresults\u002F`\n\nAfter resume completes, set `export WORKFLOW_CONTEXT_LOADED=true` to prevent duplicate reloads.\n\n**State persists in files. Context clearing is not a problem. Files outlive memory.**\n",{"name":5,"description":7,"disable-model-invocation":46},true,"main","f620abaff09061f8c8b1f1559dca3fdd031a32e5","plugins\u002Fnyldn\u002Fclaude-octopus\u002Fskills\u002Fskill-resume",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":46},[59,62,65],{"tool":60,"command":61},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill skill-resume",{"tool":63,"command":64},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill skill-resume",{"tool":66,"command":67},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill skill-resume","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fnyldn\u002Fclaude-octopus\u002Fskills\u002Fskill-resume\u002FSKILL.md",[70],{"path":71,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":75},"agents\u002Fopenai.yaml","REFERENCE","参考文档",164,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fnyldn\u002Fclaude-octopus\u002Fskills\u002Fskill-resume\u002Fagents\u002Fopenai.yaml",[77,87,95,103,111,119],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":82,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":86},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":91,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":86},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":99,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":86},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":107,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":86},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":115,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":86},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":81,"licenseFileUrl":123,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":86},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]