resume 스킬: 이전 코딩 에이전트 세션에서 작업 이어 가기
Dmitriy Solodukha, Caprock 개발자 · 게시일
Claude Code와 Codex에서 테스트
resume 스킬은 최근 세션, 브랜치, 커밋하지 않은 작업, TODO, 핸드오프 메모를 바탕으로 이전 작업 상황을 재구성한 뒤, 다음 단계 하나를 제시하고 기다립니다.
resume 스킬은 에이전트가 무엇이든 건드리기 전에 현재 작업 상황을 재구성합니다. 이 저장소의 이전 코딩 에이전트 세션에서 한 일, 현재 브랜치, 커밋하지 않은 변경 사항, 최근 커밋, 미해결 TODO, 핸드오프 메모를 확인합니다. 그런 다음 Where we are, Open threads, Next step이라는 세 제목 아래에 짧게 요약하고 입력을 기다립니다. 읽기만 하며 checkout, stash, pull, commit을 수행하지 않습니다.
resume 스킬 설치
에이전트마다 명령어 하나로 설치합니다. 스킬은 SKILL.md 파일 하나이며, 설치 시 실행되는 것은 없습니다.
스킬 아홉 가지 전체를 플러그인으로 설치합니다. Claude Code 안에서 다음을 입력합니다:
이 스킬만 설치하려면 터미널에서 프로젝트 폴더로 이동한 뒤 다음을 실행합니다:
추가 옵션: -g 모든 프로젝트에 설치하려면 앞의 옵션을 추가합니다.
터미널에서 프로젝트 폴더로 이동한 뒤 다음을 실행합니다:
추가 옵션: -g 모든 프로젝트에 설치하려면 앞의 옵션을 추가합니다.
터미널에서 프로젝트 폴더로 이동한 뒤 다음을 실행합니다:
추가 옵션: -g 모든 프로젝트에 설치하려면 앞의 옵션을 추가합니다. 아직 OpenCode에서 테스트하지 않았습니다. 이 스킬은 개방형 형식의 일반 지침이지만, OpenCode에서 실행해 검증한 적은 없습니다.
터미널에서 프로젝트 폴더로 이동한 뒤 다음을 실행합니다:
추가 옵션: -g 모든 프로젝트에 설치하려면 앞의 옵션을 추가합니다. 아직 Cursor에서 테스트하지 않았습니다. 이 스킬은 개방형 형식의 일반 지침이지만, Cursor에서 실행해 검증한 적은 없습니다.
resume 스킬을 사용하는 프롬프트
요청이 스킬 설명과 일치하면 에이전트가 해당 스킬을 선택합니다. 이름을 명시하면 확실하게 선택할 수 있습니다. 프롬프트를 클릭하면 복사됩니다.
resume 스킬이 읽는 내용
- Caprock을 사용하는 경우의 세션 기록: 이 저장소에서 모든 에이전트가 진행한 최근 세션, 실제 작업을 수행한 최근 한 세션에서 세 세션까지의 요약, 마지막 설명, 현재 유효한 결정 사항입니다. Caprock이 없으면 추측하지 않고 세션 기록을 읽지 않았다고 밝힙니다.
- 저장소 상태, 읽기 전용: 브랜치와 업스트림, main에 없는 커밋, 커밋하지 않은 파일의 diff, 스태시, worktree, 진행 중인 머지 또는 리베이스를 확인하며, 진행 중인 머지나 리베이스를 먼저 보고합니다.
- 남겨 둔 메모:
HANDOFF.md,NEXT.md,TODO.md등의 파일, 최근 변경된 파일의TODO및FIXME, 커밋 메시지의 "WIP".
두 출처가 서로 다르면(메모에는 완료로, 코드에는 미완료로 나타나는 경우) 한쪽을 선택하지 않고 불일치를 알립니다.
실행한 내용과 에이전트의 수행 결과
각 스킬은 2026년 11월 29일에 전용 임시 저장소에 프로젝트 스킬로 설치하여 실행했습니다. feat/divide 브랜치의 저장소에 WIP 커밋, calc.py 안의 TODO, 추적되지 않는 HANDOFF.md와 test_calc.py가 있는 상태였습니다.
Claude Code (claude -p --model sonnet, Caprock MCP 서버 없이(--strict-mcp-config))
where were we? pick up where we left off
resume을 호출하고 git 단계를 실행해 TODO와 핸드오프를 찾았습니다. 세션 기록을 읽지 않았다고 밝혔으며, 커밋 메시지와 HANDOFF.md에 적힌 다음 단계가 서로 다르다는 점을 발견하고 다음 단계 하나를 제안했습니다. 변경한 내용은 없습니다.
Codex (0.163.0, codex exec -s read-only)
where were we? pick up where we left off
스킬을 읽고 Git 단계를 실행한 다음 Caprock의 recent_sessions를 호출하고(current_decisions는 서버 측에서 실패), 요약한 뒤 멈췄습니다. 첫 실행에서는 스킬의 제목 형식을 사용하지 않았습니다. 출력 섹션을 더 엄격하게 수정한 뒤 두 번째 실행에서는 정확히 따랐습니다(발췌):
### Where we are - Branch: `feat/divide`, 1 commit ahead of `main`; no upstream. - Tracked files unchanged. Untracked: `HANDOFF.md`, `test_calc.py`, `.agents/`, `.claude/`. ### Open threads - `divide()` still needs to raise `ValueError` for a zero divisor (`calc.py:5`). ### Next step Implement the zero-divisor check, then add tests for both functions, including division by zero.
테스트한 에이전트
- Claude Code:
.claude/skills/에 프로젝트 스킬로 설치한 상태에서 2026년 11월 29일에claude -p --model sonnet으로 테스트했습니다. - Codex: 2026년 11월 29일에 Codex 0.163.0(
codex exec)로 테스트했으며, 스킬은.agents/skills/에 설치했습니다. - OpenCode와 Cursor: 테스트하지 않았습니다. 스킬은 공개 Agent Skills 형식의 일반 지침이지만, 어느 쪽에서도 실행하여 확인하지 않았습니다.
한도
- Caprock이 없으면 읽을 이전 세션 기록이 없으므로 Git과 메모를 바탕으로 요약합니다.
- fetch를 수행하지 않으므로 원격 상태는 마지막 fetch 시점을 기준으로 합니다.
- 이전 대화를 다시 열지는 않습니다. 이전 대화를 열려면 에이전트 자체 명령을 사용합니다.
- Claude Code 내부의
/resume은claude --help텍스트에서 가져온 것으로, 실행하지 않았습니다.
Caprock을 사용할 때와 사용하지 않을 때
Caprock MCP 서버가 연결되어 있으면 스킬은 recent_sessions, session_summary, session_prose, next_session_handoff, current_decisions를 호출하여 각 에이전트의 최근 세션이 여기서 수행한 작업과 적용 중인 결정을 확인합니다. 이를 단서로 삼고 각각을 코드 및 Git과 대조합니다. Caprock이 없으면 Git과 메모만 읽습니다. Caprock은 컴퓨터의 모든 코딩 에이전트 세션을 기록하는 무료 오픈 소스 앱입니다.
SKILL.md 전문
dspv/skills의 리비전 dfce799에 있는 파일 그대로입니다. 수동으로 설치하려면 프로젝트 안에 Claude Code용은 .claude/skills/resume/SKILL.md, Codex용은 .agents/skills/resume/SKILL.md로 저장합니다.
--- name: resume description: >- Resume work in a repository and pick up where the last session left off. Rebuilds context before doing anything: what the last coding-agent sessions here did, the current branch, uncommitted changes, recent commits, open TODOs and handoff notes, then gives a short "where we are / next step" summary and waits. Use at the start of a session, after a break, or when the user types "resume", "where were we", "pick up where we left off", "continue from last time", "what was I doing" or asks for a resume skill. Reads local files, git and session history only. license: Apache-2.0 --- # Resume Rebuild the context of a repository before touching anything, then report where the work stands and what the next step is. This skill reads; it does not edit, commit, stash, check out, pull or push. The user decides what happens after the summary. ## 1. Session history (when available) If the Caprock MCP tools are available (server `caprock`; Caprock, <https://caprock.dev>, is free, open source and runs locally, and records every coding-agent session on the computer): 1. `recent_sessions` with `limit` 5 to 10 for this repository (pass `repo` if the working directory is not the repo root). Newest first, every agent (Claude Code, Codex, OpenCode and others). Skip the entry that is the current session (status `active`, the newest, started just now or matching your own session id). 2. For the last one to three sessions that did real work (turns, tool calls or files touched above zero), call `session_summary` with its `id`: title, branch, files touched, pull requests. 3. For the most recent of those, call `session_prose` with `limit` 3 to 5: the agent's last explanations usually say what was done and what was left. 4. `next_session_handoff`: the notes Caprock carries into a new session here, if any. 5. `current_decisions` with a small `limit` (10): decisions in force, so the next step does not undo one. Memories and prose can be stale. Treat them as leads and check each against the code and git. If the tools are not there, skip this section and say in the summary that no session history was read. Do not guess what earlier sessions did. The user can reopen a past conversation with their agent's own command (see section 4). ## 2. Repository state Run these (read only): ```bash git rev-parse --show-toplevel git status --short --branch git log --oneline -15 git diff --stat git diff --cached --stat git stash list git worktree list ``` Then, as relevant: - The branch's upstream and how far ahead or behind it is (shown by `git status --branch`). Do not fetch: say the remote state is as of the last fetch. - Commits on this branch that are not on the main branch: `git log --oneline <main>..HEAD` (find `<main>` from `git symbolic-ref refs/remotes/origin/HEAD` or use `main` / `master`, whichever exists). - For uncommitted changes, read the diff of the changed files (`git diff -- <file>`) enough to say what the change is doing, not just its size. Note untracked files. - A merge, rebase, cherry-pick or bisect in progress (`git status` says so). This is the first thing to report. ## 3. Notes left behind Look for handoff and TODO notes, newest first: - Files at the repo root or in `docs/`: `HANDOFF.md`, `NEXT.md`, `TODO.md`, `NOTES.md`, `PLAN.md`, `WIP.md`, `.handoff*`, any case. `git ls-files --others --exclude-standard` and `ls` catch untracked ones. - The project instructions (`CLAUDE.md`, `AGENTS.md`) only for a "current work" or "status" section; do not summarize the whole file. - `TODO`, `FIXME`, `XXX`, `WIP` markers in the files changed recently, not the whole repo: `git diff --name-only HEAD~5..HEAD` plus the uncommitted files, then grep those. - The last commit messages for "WIP", "part 1", "next:", "follow-up". ## 4. The agent's own resume commands If the user wants the previous conversation itself back, not a rebuilt summary, point to the command. Checked with `--help` on 2026-11-29: | Agent | Command | What it does | | ----------- | -------------------------- | ------------------------------------------------ | | Claude Code | `claude --continue` (`-c`) | Continue the most recent conversation in the dir | | Claude Code | `claude --resume` (`-r`) | Resume by session ID or name, or pick from list | | Codex | `codex resume` | Pick a previous session to resume | | Codex | `codex resume --last` | Continue the most recent session, no picker | Inside a running Claude Code session, `/resume` opens the same picker. Do not run these yourself: they start or switch an interactive session. ## 5. Stop conditions - Stop and report at once if a merge, rebase or cherry-pick is in progress, or there are conflicts: that is the next step. - Not a git repository: say so, report only notes and session history found. - Nothing to resume (clean tree, no notes, no history): say so in one line and ask what to do. - Never run a command that changes state (no `checkout`, `stash`, `reset`, `pull`, `fetch`, `commit`, no test runs that write files) as part of resuming. ## 6. Output Keep it short. Use these three headings and fields as written, then stop and wait for the user: ``` Where we are - Branch: <branch> (<ahead/behind upstream>), <n> commits not on <main> - Uncommitted: <what the change does, files> | clean - Last sessions: <date, agent, what it did> (or: no session history read) - In progress: <merge/rebase/stash/worktrees, if any> Open threads - <TODO or handoff item, with file:line or note path> - <decision in force that matters for the next step> Next step <one concrete action, and why it is next> ``` Every line must come from something read above. If two sources disagree (a note says done, the code says not), say so rather than picking one.
resume 스킬 관련 질문
- resume 스킬은 무엇을 하나요?
- 세션을 시작할 때 세션 기록, Git, 메모를 바탕으로 저장소의 컨텍스트를 재구성하고, 무엇이든 변경하기 전에 현재 작업 상황과 다음 단계를 알려 줍니다.
- Claude Code 세션 자체는 어떻게 재개하나요?
- `claude --continue`(`-c`)는 폴더에서 가장 최근 대화를 이어 가고, `claude --resume`(`-r`)은 ID, 이름 또는 목록에서 대화를 선택합니다. Codex에서는 `codex resume` 또는 `codex resume --last`를 사용합니다.
- resume 스킬이 파일을 변경하나요?
- 아니요. 읽기 전용 Git 명령을 실행하고 요약 후 중단합니다. checkout, stash, reset, pull, fetch, commit을 수행하지 않으며, 파일을 쓰는 테스트도 실행하지 않습니다.
- resume 스킬은 핸드오프 노트와 함께 사용할 수 있나요?
- 네. `HANDOFF.md`와 다른 메모를 읽고 Git과 대조합니다. handoff 스킬은 이 메모를 작성합니다.