session-restore

在新会话开始时从 session-notes.md 恢复会话上下文。如果“下一步行动”足够具体,则自动继续。

仓库最近推送
GitHub Stars
173
Forks
22
Issues / PRs
5

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "session-restore":https://skillpi.com/zh/skills/deepskill-6c31afc6bedaeb401dac47cce00f6731ab851a0784a2383beaf932548247718a。安装前核对上游来源和版本:https://github.com/Arman-Kudaibergenov/1c-ai-development-kit。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

在新会话开始时从 session-notes.md 恢复会话上下文。如果“下一步行动”足够具体,则自动继续。

0 下载

介绍来源: third_party · Arman-Kudaibergenov · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
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.

版本历史

  1. v1.2.0 GitHub ↗
    原版更新说明

    ## 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 ↗
    原版更新说明

    ## 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/

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值78/100

亮点

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

待提升项

  • 触发条件描述不够完整 原报告严重程度:轻微

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

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

亮点

  • 触发词覆盖合理,包含命令和语义触发
结构规范88/100

亮点

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

亮点

  • 使用内联脚本避免外部依赖
  • 覆盖文件不存在等异常情况
  • 遵循最小权限原则,仅读取不修改
证据可验 (前四项均值)82/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

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

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。