restore

restore is a skill for Claude Code from lisihao/Solar. It costs 16 tokens per session (534 once invoked), scanned A, original, MIT.

A session recovery helper that reads a small checkpoint file containing the previous task, project, stage, branch, and next steps. It restores the working context without rereading the whole project.

In plain words
What is it for?
Use it to resume a saved coding session or inspect an earlier saved session checkpoint.
Why use it?
It helps continue interrupted work while reducing unnecessary file reading and setup. If no checkpoint exists, it reports that clearly.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to resume a saved coding session or inspect an earlier saved session checkpoint.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lisihao/solar/restore
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lisihao/Solar --skill restore
Clone the repo
git clone --depth 1 https://github.com/lisihao/Solar

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for restore

README.md
[![agentmods](https://agentmods.dev/badge/skills/lisihao/solar/restore/github.svg)](https://agentmods.dev/skills/lisihao/solar/restore)
Your own site
<a href="https://agentmods.dev/skills/lisihao/solar/restore"><img src="https://agentmods.dev/badge/skills/lisihao/solar/restore/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for restore

Your own site · 80×15
<a href="https://agentmods.dev/skills/lisihao/solar/restore"><img src="https://agentmods.dev/badge/skills/lisihao/solar/restore.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 534 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00534
Opus 5 $0.00008 $0.00267
Sonnet 5 $0.00003 $0.00107
Haiku 4.5 $0.00002 $0.00053

Measured 7d ago against content hash ad2980948820, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

restore scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/restore/SKILL.md · 92 lines

What it actually says

/restore - 快速恢复会话

功能

.solar/session.md 恢复上次会话状态,极大减少 token 消耗。

执行步骤

  1. 检查检查点文件

    # 检查是否存在
    ls .solar/session.md
    
  2. 读取会话状态

    • 只读取 .solar/session.md (精简的状态摘要)
    • 不要 重新读取所有源文件
    • 不要 重新分析整个项目
  3. 输出恢复摘要

    ═══════════════════════════════════════
    🔄 Session Restored
    ═══════════════════════════════════════
    
    📋 任务: [任务摘要]
    📍 阶段: P[x] [阶段名称]
    📁 项目: [项目路径]
    🌿 分支: [git 分支]
    
    ⏰ 上次保存: [时间]
    
    📝 待办事项:
    - [ ] 任务1
    - [ ] 任务2
    
    ➡️ 下一步: [下一步行动]
    
    ═══════════════════════════════════════
    
  4. 询问用户

    继续上次的任务,还是开始新任务?
    

Token 优化原则

⚠️ 关键: 恢复时只读取 .solar/session.md

禁止在恢复时:

  • 读取所有源代码文件
  • 重新分析项目结构
  • 执行构建或测试
  • 调用其他 Agent

只有在用户确认继续后:

  • 按需读取必要文件
  • 继续之前的任务流程

无检查点时

如果 .solar/session.md 不存在:

⚠️ 未找到会话检查点

建议:
1. 描述你想继续的任务
2. 或开始新任务

提示: 使用 /checkpoint 保存当前状态

历史恢复

如果需要恢复更早的会话:

ls .solar/history/
# session_20240128_143022.md
# session_20240128_120515.md

用户可指定: /restore 20240128_143022

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 92 lines · 16 tokens per session scan A ad2980948820

Subscribe to this mod's changes

restore is a skill published in the GitHub repository lisihao/Solar (2 stars, last pushed 28d ago), licensed MIT. It adds 16 tokens to every session and 534 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

Cortex

Operate Cortex, the LifeOS memory system — the typed Knowledge Archive (People, Companies, Ideas, Research with typed related: links) plus recall of prior work sessions, ISAs, and conversations. Search, add, harvest, develop, ingest, distill, graph-navigate, recall. USE WHEN cortex, knowledge, knowledge base, search…

danielmiessler/LifeOS · 196 tokens

Migrate

Intakes external content, classifies chunks against LifeOS taxonomy, commits with provenance. Sources: .md/.txt, stdin, LifeOS dirs, CLAUDE.md/Cursor/OpenAI Custom Instructions, Obsidian/Notion/Apple Notes exports. MigrateScan classifies → routing table. MigrateApprove with…

danielmiessler/LifeOS · 158 tokens

daily-briefing

Proactive daily briefing that fires on a recurring schedule, pulls recent memory and workspace context, composes a structured summary (action items, progress, radar, next steps), and delivers it to all active channels. Enable with a time like "set up my daily briefing at 9am". Disable, reschedule, or check status at…

vellum-ai/vellum-assistant · 75 tokens

company-brain

Your team's shared, AI-ready knowledge base — people, companies, meetings, SOPs, and decisions structured so Claude can answer questions on your team's behalf. Team-scope sibling to second-brain (which is personal-scope). Seven modes — capture (drop something into the right structured dir), compile (process into wiki…

coreyhaines31/makerskills · 322 tokens

calendar

Manage calendar events via CalDAV (Google/iCloud/Nextcloud) or local ICS files. View, create, and query events.

fuyuxiang/echo-agent · 29 tokens

email-assistant

Read, search, draft, and send emails via Himalaya CLI or Python IMAP/SMTP. Requires email account configuration.

fuyuxiang/echo-agent · 29 tokens