agentleFS
jiten-singh-shahijiten-singh-shahi/salesforce-claude-code/.cursor/skills/resume-session/SKILL.md

resume-session

Skill15 starsChanged 7 months agoMITView on GitHub

Use when resuming a previous Salesforce development session. Load saved org context and Apex work-in-progress to continue where the last session ended.

9 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

12 rules. 0 are common, 10 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After starting a fresh session due to context limits

    line 15
  2. Distinctive:

    When handing off a session file from another source (just provide the file path)

    line 16
  3. Distinctive:

    If no argument provided:

    line 31
  4. Distinctive:

    If the folder does not exist or has no matching files, tell the user:

    line 35
  5. Distinctive:

    If an argument is provided:

    line 44
  6. Very specific:

    If it looks like a date (YYYY-MM-DD), search ~/.claude/sessions/ for matching files and load the most recently modified variant for that …

    line 46
  7. Distinctive:

    If it looks like a file path, read that file directly

    line 48
  8. Distinctive:

    If not found, report clearly and stop

    line 49
  9. Distinctive:

    Read the complete file. Do not summarize yet.

    line 53
  10. Distinctive:

    Do NOT start working automatically.

    line 86
  11. Distinctive:

    Never modify the session file when loading it — it's a read-only historical record

    line 108
  12. Very specific:

    After resuming, the user may want to run /save-session again at the end of the new session

    line 111

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Resume Session — Restore and Orient from a Saved Session

Load the last saved session state and orient fully before doing any work. This skill is the counterpart to the save-session skill.

When to Use

  • Starting a new session to continue work from a previous day
  • After starting a fresh session due to context limits
  • When handing off a session file from another source (just provide the file path)
  • Any time you have a session file and want Claude to fully absorb it before proceeding

Usage

/resume-session                                                      # loads most recent file in ~/.claude/sessions/
/resume-session 2026-03-18                                           # loads most recent session for that date
/resume-session ~/.claude/sessions/2026-03-18-apex-trig-session.md   # loads a specific file

Process

Step 1: Find the session file

If no argument provided:

  1. Check ~/.claude/sessions/
  2. Pick the most recently modified *-session.md file
  3. If the folder does not exist or has no matching files, tell the user:

    No session files found in ~/.claude/sessions/
    Run /save-session at the end of a session to create one.

    Then stop.

If an argument is provided:

  • If it looks like a date (YYYY-MM-DD), search ~/.claude/sessions/ for matching files and load the most recently modified variant for that date
  • If it looks like a file path, read that file directly
  • If not found, report clearly and stop

Step 2: Read the entire session file

Read the complete file. Do not summarize yet.

Step 3: Confirm understanding

Respond with a structured briefing in this exact format:

SESSION LOADED: [actual resolved path to the file]

PROJECT: [project name / topic from file]

WHAT WE'RE BUILDING:
[2-3 sentence summary in your own words]

CURRENT STATE:
Working: [count] items confirmed
In Progress: [list files that are in progress]
Not Started: [list planned but untouched]

WHAT NOT TO RETRY:
[list every failed approach with its reason — this is critical]

OPEN QUESTIONS / BLOCKERS:
[list any blockers or unanswered questions]

NEXT STEP:
[exact next step if defined in the file]

Ready to continue. What would you like to do?

Step 4: Wait for the user

Do NOT start working automatically. Do NOT touch any files. Wait for the user to say what to do next.


Edge Cases

Multiple sessions for the same date: Load the most recently modified matching file for that date.

Session file references files that no longer exist: Note this during the briefing — "WARNING: path/to/file.cls referenced in session but not found on disk."

Session file is from more than 7 days ago: Note the gap — "WARNING: This session is from N days ago. Things may have changed." — then proceed normally.

Session file is empty or malformed: Report: "Session file found but appears empty or unreadable. You may need to create a new one with /save-session."


Notes

  • Never modify the session file when loading it — it's a read-only historical record
  • The briefing format is fixed — do not skip sections even if they are empty
  • "What Not To Retry" must always be shown, even if it just says "None"
  • After resuming, the user may want to run /save-session again at the end of the new session

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.