resume
БесплатноБез исполняемых скриптовНе проверенLoad context and catch up on recent work — adapts to home mode vs external project mode
от sliamh11★ 50 звёзд на GitHubОб этом скилле
/resume
Context-aware session resume. Behavior depends on whether you're in the Deus home directory or an external project.
Detect mode
Check if the current working directory is the Deus home directory (~/deus). If it is → Home Mode. Otherwise → External Project Mode.
Home Mode (~/deus)
Load context from the vault before starting work.
First, resolve the vault path using this per-instance order (highest priority first). $VAULT means the resolved path:
DEUS_VAULT_PATHenv var, if set.vault_pathin./.deus/config.json(the current working directory's instance-local config), if that file exists. If the file exists but has no usablevault_path, STOP and tell the user it is present but missingvault_path— do not fall through to the global config (that fall-through is what reads from another instance's vault).vault_pathin~/.config/deus/config.json(global fallback).
Tiers 1 and 2 are the per-instance mechanisms: when several Deus instances run on one machine they share the global config (tier 3), so resolving from it alone can silently point this instance's /resume at a different instance's vault. The instance-local ./.deus/config.json keeps each instance self-contained. The memory_indexer.py calls below resolve the vault by the same order, so their reads come from this instance's vault too.
Core + contextual vault files (CLAUDE.md, STUDY.md, INFRA.md): Check if the current context already contains
=== VAULT: CLAUDE.md ===(injected by the deus launcher at session start). If it does, these files are already loaded — skip reading them. If the vault blocks are absent (e.g., running outside the deus launcher, or after /clear), read them:- $VAULT/CLAUDE.md (always)
- Study session → $VAULT/STUDY.md
- Tools / infra session → $VAULT/INFRA.md
- If unclear → read both (they're small, ~10 lines each)
Check for a mid-session checkpoint from today: Run: ls -t "$VAULT/Checkpoints/"$(date +%Y-%m-%d)-*.md 2>/dev/null | head -1 (A shell glob — not
find | xargs.find | xargsbreaks when the vault path contains spaces/unicode, because xargs word-splits the filenames and ls silently fails on the broken partials.) If a file is found → read it fully. Note "resuming mid-session checkpoint" in the summary.
3a. Load warm tier — gap-aware (no API cost):
First, determine the gap since the last session:
Run: python3 scripts/memory_indexer.py --recent 1 2>/dev/null
Note the date of the most recent session.
Compute gap = today's date minus that date (in days).
ALWAYS load the most recent session in full (regardless of gap):
Run: python3 scripts/memory_indexer.py --recent 1
Then load remaining recent sessions based on gap:
- If gap < 1 day (active session): load sessions from last 3 days in compact mode
Run: python3 scripts/memory_indexer.py --recent-days 3 --compact
- If gap >= 1 day (returning after time away): load sessions from last 7 days in compact mode
Run: python3 scripts/memory_indexer.py --recent-days 7 --compact
This ensures visibility after vacations/breaks without overloading context.
Deduplicate: skip the most recent session if it appears in the --recent-days output (compare by filename).
Include combined output as "Recent Sessions" context.
FALLBACK — if the script fails, fall back to:
find "$VAULT/Session-Logs" -name "*.md" -not -path "*/.obsidian/*" -print0 2>/dev/null | xargs -0 ls -t 2>/dev/null | head -6
(Must use `-print0 | xargs -0` — plain `find | xargs` word-splits on whitespace and silently drops paths with spaces/unicode.)
Then read frontmatter only (lines between the two --- markers) of those files.
3b. Load learnings — what's new since last /resume (no API cost): Run: python3 scripts/memory_indexer.py --learnings --since 7 --top 3 If output is non-empty, include it as a "What's Emerging" section after recent sessions. If no output (nothing new), skip silently — silence signals stability.
3c. Load cold tier — semantically relevant older sessions:
Extract the topics: array from the most recent session log's frontmatter (available in the --recent 1 output from step 3a). Join topics with spaces as the query.
Example: topics: [evolution, memory, indexer] → query: "evolution memory indexer"
If currently in a git repo, prepend the current branch: run git branch --show-current 2>/dev/null and prepend if non-empty.
Example: "fix/silent-failures evolution memory indexer"
Fallback: if topics are empty or unavailable, use "recent work ongoing tasks".
Run: python3 scripts/memory_indexer.py --query "
Установить resume в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл resume?
Load context and catch up on recent work — adapts to home mode vs external project mode
Как установить скилл resume?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл resume запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic