لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Resume

آزاد تازه‌وارد تاییدشده امن

کارهای تکراری ترمینال، مدیریت شاخه‌ها، نوشتن پیام کامیت استاندارد و ساخت اسکریپت‌های کمکی را سریع و یکدست انجام می‌دهد. (شامل ۲۳ گام عملی · سازگار با Claude Code و OpenAI Codex).

سازگاری با ابزارها: این Skill به مسیر/قابلیت اختصاصی Claude Code، Codex CLI وابسته است. مشاهدهٔ جدول سازگاری

متن دستورالعمل (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).
<!-- ‹guest · 2026-11-29› -->

## 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".

<!-- ‹guest · 2026-11-29› -->
## 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
<!-- ‹guest · 2026-11-29› -->
<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.

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
عامل‌های هوش مصنوعی
✦ Pro

REA

دستورالعمل اجرایی آماده برای انجام دقیق کارهای عامل‌های هوش مصنوعی بدون تکرار پرامپت‌های طولانی. (شامل ۶۵ گام عملی · سا…

⚡ /reverse-engineer-anything SKILL.md
Claude / Claude CodeOpenAI Codex +۲
۹۴/۱۰۰ ★ ۴۷۹,۷۷۳
عامل‌های هوش مصنوعی
✦ Pro

Dispatching Parallel Agents

این مهارت با نام «Dispatching Parallel Agents» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کاف…

⚡ /dispatching-parallel-agents SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Subagent-Driven Development

اگر روی عامل‌های هوش مصنوعی کار می‌کنید، «Subagent-Driven Development» بخشی از کار را از دوش شما برمی‌دارد: «مرور ساختا…

⚡ /subagent-driven-development SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Using Git Worktrees

این مهارت با نام «Using Git Worktrees» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کافی است در…

⚡ /using-git-worktrees SKILL.md
Cline
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Verification Before Completion

این مهارت با نام «Verification Before Completion» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ …

⚡ /verification-before-completion SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Diagnosing Superpowers

«Diagnosing Superpowers» دستورالعمل دقیقی برای «مدیریت هوشمند حافظه و کانتکست» در اختیار دستیار هوش مصنوعی می‌گذارد تا …

⚡ /diagnosing-superpowers SKILL.md
Claude / Claude Code
۹۱/۱۰۰ ★ ۳۲۴,۲۹۰