session-restore

Restore session context from session-notes.md at the start of a new session. If the 'next action' is specific enough, continue automatically.

Last repository push
GitHub Stars
173
Forks
22
Issues / PRs
5

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "session-restore" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-6c31afc6bedaeb401dac47cce00f6731ab851a0784a2383beaf932548247718a. Verify the upstream source and version against https://github.com/Arman-Kudaibergenov/1c-ai-development-kit before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Restore session context from session-notes.md at the start of a new session. If the 'next action' is specific enough, continue automatically.

0 Downloads

Introduction source: third_party · Arman-Kudaibergenov · 0.0.1 Reference

SkillPi interpretation

Tasks
The read half of session continuity. At session start it loads the latest `session-log.md` entry so you already know the goal, what's done, and what's next — without the user re-explaining anything.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: session-restore
description: |
  Restore context at the start of a Claude Code session by reading the most
  recent entry in session-log.md — no manual paste needed. Pairs with
  session-logger.

  Trigger when:
  - a new session starts and session-log.md exists
  - the user says "let's continue", "resume", or "pick up where we left off"
  - the user types /restore

  Do NOT: re-read old entries as if actionable, or auto-start deferred work —
  wait for the user.

Session Restore

The read half of session continuity. At session start it loads the latest session-log.md entry so you already know the goal, what's done, and what's next — without the user re-explaining anything.

When this fires

Auto-runs at session start if session-log.md exists. Also on /restore, "continue", or "resume".

Step 1 — Read the log (inline, no external script)

if [ ! -f session-log.md ]; then
  echo "No session-log.md found. Starting fresh."
  exit 0
fi

# Print the last entry (everything after the final --- separator)
awk 'BEGIN{last=""} /^---/{block=$0; next} {block=block"\n"$0} /^---/{last=block} END{print last}' session-log.md

Or simply cat session-log.md and read the last block.

Step 2 — Extract from the latest entry only

  1. Goal — the overall objective.
  2. Completed — what's done (don't redo it).
  3. Decisions — choices already made (don't re-propose alternatives).
  4. Deferred — known pending items.
  5. Next Session Should — this session's starting point.
  6. Key Files — files to be aware of.

Step 3 — Greet with context

📂 Session restored from session-log.md

Last session ([date]): [one-line goal]

✅ Completed: [2–3 key items]
⏭️ Ready to: [Next Session Should]

What would you like to work on?

The continuity loop

Session starts → session-restore reads session-log.md → greet with context
Work happens
User types /summarize → session-logger appends a new entry
Next session → repeat

Core principles

  • Latest entry only — older entries are history, not actionable.
  • Never ask the user to re-explain what's already in the log.
  • Honor prior decisions — if the log says "chose X over Y", never re-propose Y.
  • Fail silently if no log exists — don't block the session.
  • Don't auto-start deferred work — wait for the user to ask.

What this skill does not do

  • Write the log — that's session-logger (the pair).
  • Restore from git history or PRs — it reads session-log.md only.
  • Resume automatically into coding — it greets and waits.

Success criteria

Working when: the session opens with an accurate one-screen recap and a clear next step, and no already-decided question gets re-litigated.

Troubleshooting

  • No log: greet normally and start fresh — absence is not an error.
  • Log is stale / contradicts the code: trust the code, flag the mismatch, and suggest a fresh /summarize at the end of this session.

Version history

  1. v1.2.0 GitHub ↗
    Original release notes

    ## What's New ### Skills Catalog (SKILLS.md) - New `SKILLS.md` in project root listing all 52 project skills + 11 global skills - Organized by category: Configuration, Metadata, Database, Extensions, Forms, EPF/ERF, MXL, DCS, Subsystems/Roles, Web/Testing, Knowledge/Planning - Quick Reference table mapping common tasks to skill combinations ### Context Guard - New `scripts/context-monitor.ps1` — PostToolUse hook that estimates token usage and warns at 70%/85% - `.claude/settings.local.json` updated with PostToolUse hook configuration ### Session Management (3 new skills) - `/session-save` — save session state to `session-notes.md` - `/session-restore` — restore session and auto-continue from saved state - `/session-retro` — quick retrospective of session outcomes - `scripts/rotate-session.ps1` — open new terminal tab with fresh Claude session - `docs/guides/session-management.md` — setup guide and workflow reference ### Notes - No RLM dependency — all session state stored locally - `session-notes.md` added to `.gitignore`

  2. v1.1.0 GitHub ↗
    Original release notes

    ## Changes - **Skill consolidation**: 14 granular skills merged into 5 expert-* skills - epf-expert (replaces 6 EPF/ERF skills) - mxl-expert (replaces 3 MXL/template skills) - role-expert (replaces role-compile) - subsystem-expert (replaces 3 subsystem/interface skills) - inspect (replaces 7 *-info skills) - validate (replaces 11 *-validate skills) - Total skill count: 80 -> 52 (leaner, less overlap) - Docs: no changes Full skill list in .claude/skills/

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 有效解决多轮对话中上下文丢失的痛点
  • 与 session-logger 形成完整闭环,提升会话连续性
Trigger Precision75/100

Areas to improve

  • 触发条件描述不够完整 Reported severity: Minor

    未明确说明新会话开始时自动触发的具体检测机制

    Recommendation: 补充说明如何检测新会话开始以及自动触发的条件

Highlights

  • 触发词覆盖合理,包含命令和语义触发
Structure and Standards88/100

Highlights

  • 结构清晰,步骤划分明确
  • 包含完整的端到端示例和使用场景说明
Execution Reliability85/100

Highlights

  • 使用内联脚本避免外部依赖
  • 覆盖文件不存在等异常情况
  • 遵循最小权限原则,仅读取不修改
Evidence Verifiability (mean of the first four)82/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.