Context Resume logo

Context Resume

Community
jiaxiaojunQAQ
context-resume

恢复之前保存的会话上下文。列出所有待处理的 session,读取选定 session 的任务信息,更新进度,任务全部完成后删除文件。

Overview

PublisherjiaxiaojunQAQ
RepositorySkillJect
Skill namecontext-resume
Stars
79
Forks
8
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jiaxiaojunQAQ on GitHub. Read the source before you install it.

Installation

Install the Context Resume AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jiaxiaojunQAQ/SkillJect.git /tmp/SkillJect
mkdir -p .claude/skills
cp -r /tmp/SkillJect/data/skills_sample/context-resume .claude/skills/context-resume
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Context Resume in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Context Resume on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Context Resume is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

上下文恢复指南

使用场景

在新的 Claude Code 窗口中,需要继续之前未完成的任务时调用此 Skill。


执行步骤

Step 1: 列出所有 Session

读取 docs/context-sessions/ 目录下的所有 .md 文件(排除 .gitkeep)。

输出格式:

📋 待处理的 Session 列表:

1. 20251128-1430-实现用户登录功能.md
   未完成任务: 3 项

2. 20251128-1600-修复导出bug.md
   未完成任务: 1 项

请告诉我要恢复哪个 session(输入序号或文件名)

如果目录为空,输出:

📭 当前没有待处理的 session。

所有任务已完成,或尚未使用 context-save 保存过上下文。

Step 2: 读取并展示 Session 内容

用户选择后,读取对应的 session 文件,完整展示内容。

输出格式:

📂 已加载 Session: {文件名}

---
{session 文件完整内容}
---

🎯 接下来要处理哪个任务?或者需要我继续之前的工作?

Step 3: 开始工作

根据 session 中的信息:

  1. 读取关键文件,恢复上下文理解
  2. 按优先级处理未完成任务
  3. 遵循"下一步行动"的建议

Step 4: 更新任务进度

每完成一个任务后,立即更新 session 文件:

  1. 将已完成的任务从"未完成"移到"已完成"
  2. 更新元信息中的"最后更新"时间
  3. 添加新发现的任务(如果有)

示例更新:

markdown
## 已完成任务
- [x] 任务1描述
- [x] 任务2描述
- [x] 🔴 高优先级: 实现 publishArticle 方法  ← 新完成

## 未完成任务
- [ ] 🔴 高优先级: 处理图片上传到微信服务器
- [ ] 🟡 中优先级: 添加发布结果回调

Step 5: 任务完成处理

当所有未完成任务都被完成后:

  1. 立即删除 session 文件
  2. 输出完成信息

输出格式:

🎉 Session 所有任务已完成!

已完成任务汇总:
- [x] 任务1
- [x] 任务2
- [x] 任务3

Session 文件已删除: docs/context-sessions/{文件名}

工作流程图

┌─────────────────┐
│  调用 skill     │
└────────┬────────┘
┌─────────────────┐
│  列出所有       │
│  session 文件   │
└────────┬────────┘
┌─────────────────┐
│  用户选择       │
│  要恢复的       │
│  session        │
└────────┬────────┘
┌─────────────────┐
│  读取并展示     │
│  session 内容   │
└────────┬────────┘
┌─────────────────┐
│  开始处理任务   │◄──────────┐
└────────┬────────┘           │
         │                    │
         ▼                    │
┌─────────────────┐           │
│  完成一个任务   │           │
│  更新 session   │           │
└────────┬────────┘           │
         │                    │
         ▼                    │
    ┌────────────┐            │
    │ 还有未完成 │───Yes──────┘
    │   任务?   │
    └─────┬──────┘
          │ No
┌─────────────────┐
│  删除 session   │
│  文件           │
└─────────────────┘

命令快捷方式

在恢复 session 后,可以使用以下指令:

指令作用
继续按优先级继续处理下一个任务
更新进度手动触发 session 文件更新
查看剩余显示剩余未完成任务
换窗口处理-再次保存并切换窗口

注意事项

  1. 及时更新 - 每完成一个任务立即更新 session 文件
  2. 保持文件同步 - 如果发现新任务,添加到未完成列表
  3. 删除确认 - 只有当所有任务完成才删除文件
  4. 关键文件 - 恢复时优先读取 session 中列出的关键文件

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Context Resume AI skill do?

恢复之前保存的会话上下文。列出所有待处理的 session,读取选定 session 的任务信息,更新进度,任务全部完成后删除文件。

Why use Context Resume on TypingMind?

Because you install it once and use it with any model. Context Resume is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Context Resume in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jiaxiaojunQAQ/SkillJect/tree/main/data/skills_sample/context-resume. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Context Resume?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Context Resume?

As many as you like. As long as a model supports skills, you can use Context Resume with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Context Resume AI skill free?

It is published on GitHub by jiaxiaojunQAQ. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇