extract-skill
Reverse-engineer design systems, tokens, and components from live products or screenshots
Pick up where you left off from a previous session — use after context resets, compaction, or new conversations
$ npx -y skills add nyldn/claude-octopus --skill skill-resume --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/skill-resumeContext preview
The summary Claude sees to decide when to auto-load this skill.
Pick up where you left off from a previous session — use after context resets, compaction, or new conversations
name: skill-resume description: "Pick up where you left off from a previous session — use after context resets, compaction, or new conversations" disable-model-invocation: true
> **Host: Codex CLI** — This skill was designed for Claude Code and adapted for Codex. > Cross-reference commands use installed skill names in Codex rather than `/octo:*` slash commands. > 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. > For host tool equivalents, see `skills/blocks/codex-host-adapter.md`.
Restore context from a previous session and seamlessly continue the workflow where you left off.
**Core principle:** Check state → Load adaptive context → Display restoration summary → Route to appropriate action.
**Use this skill when user says:**
**Do NOT use for:**
Before checking `.octo/`, look for a session handoff file. This is written automatically by PreCompact and SessionEnd hooks and contains a human-readable summary of the last session.
if [[ -f ".octo-continue.md" ]]; then
cat ".octo-continue.md"
fi**If `.octo-continue.md` exists**, read it and display its contents to the user as context. Then continue to Phase 1 to load the full state. The handoff file provides a quick overview; `.octo/STATE.md` provides the authoritative state.
if [[ ! -d ".octo" ]]; then
echo "No project state found"
exit 1
fi**If .octo/ does not exist but `.octo-continue.md` exists**, display the handoff file contents and offer to start a new session based on that context.
**If neither exists, display:**
## Session Restoration Failed **No project state found.** There is no `.octo/` directory in this project, which means no previous session state exists. ### Get Started Run `/octo:embrace [your project description]` to start a new project. **Example:**
/octo:embrace build a REST API with user authentication
This will: 1. Initialize .octo/ directory with STATE.md, PROJECT.md, ROADMAP.md 2. Begin the Double Diamond workflow 3. Create session state you can resume later
**Stop here** - do not proceed to Phase 2.
./scripts/octo-state.sh read_state
**Expected output format:**
schema=2.0 last_updated=2026-02-02T10:30:00Z current_phase=2 current_position=define-requirements status=in_progress
Extract these key values:
./scripts/octo-state.sh get_context_tier auto
This automatically selects the appropriate context tier based on current status:
| Status | Tier Selected | Context Loaded | |--------|---------------|----------------| | ready, planned, planning, complete, shipped | planning | STATE.md + PROJECT.md + ROADMAP.md | | building, in_progress | execution | + phase plans + recent summaries | | blocked, paused | execution | + phase plans + recent summaries |
The context returned includes:
# Extract history section from STATE.md grep -A 4 "^## History" .octo/STATE.md | tail -n 3
**Expected format:**
- [2026-02-02T10:30:00Z] Phase 2: Completed requirements review (complete) - [2026-02-02T09:15:00Z] Phase 2: Started define phase (in_progress) - [2026-02-01T16:45:00Z] Phase 1: Completed discovery (complete)
# Extract blockers section sed -n '/^## Blockers/,/^## /p' .octo/STATE.md | head -n -1 | tail -n +2
**Expected format:**
# Get project title (first H1) head -n 5 .octo/PROJECT.md | grep "^# " | head -1 | sed 's/^# //'
## Session Restored
**Project:** {project_title from PROJECT.md}
**Last Active:** {last_updated from STATE.md}
**Phase:** {current_phase} - {phase_name}
**Position:** {current_position}
**Status:** {status}
### Where You Left Off
{Last 3 entries from STATE.md history}
### Current Blockers
{Blockers from STATE.md or "None"}
### Ready to Continue
{Intelligent suggestion based on status - see routing table below}| Phase | Name | |-------|------| | 1 | Discover | | 2 | Define | | 3 | Develop | | 4 | Deliver |
| Status | Action | Message | |--------|--------|---------| | `in_progress` | Continue current phase | "Continue with current phase. Context loaded." | | `blocked` | Review blockers | "Review blockers first: `/octo:issues`" | | `complete` | Ready for next phase | "Phase complete. Ready for `/octo:ship`" | | `paused` | Resume project | "Project paused. Resume
Every AI model has blind spots. Claude Octopus supports twelve external provider integrations — Codex, Antigravity CLI, Copilot, Qwen, Ollama, Perplexity, OpenRouter, OrcaRouter, OpenCode, Cursor CLI, Grok, and Kimi Code — alongside the built-in Claude Code
Repo: nyldn/claude-octopus
Reverse-engineer design systems, tokens, and components from live products or screenshots
Multi-AI requirements scoping using available external providers (Double Diamond Define phase). Priority triggers: octo define, octo scope, co-define,…
Multi-AI validation, scoring, and review using available external providers (Double Diamond Deliver phase)
Multi-AI implementation using available external providers (Double Diamond Develop phase). DO NOT use for simple code edits, reading/reviewing code, built-in…
Multi-AI research using available external providers (Double Diamond Discover phase)
Decompose and execute large changes, migrations, or multi-issue fixes in parallel with quality gates