context-save

当用户发送"换窗口处理-"时调用。总结当前窗口的上下文信息、已完成任务、未完成任务,保存到 docs/context-sessions/ 目录,便于新窗口恢复。

242 stars

Best use case

context-save is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. 当用户发送"换窗口处理-"时调用。总结当前窗口的上下文信息、已完成任务、未完成任务,保存到 docs/context-sessions/ 目录,便于新窗口恢复。

当用户发送"换窗口处理-"时调用。总结当前窗口的上下文信息、已完成任务、未完成任务,保存到 docs/context-sessions/ 目录,便于新窗口恢复。

Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.

Practical example

Example input

Use the "context-save" skill to help with this workflow task. Context: 当用户发送"换窗口处理-"时调用。总结当前窗口的上下文信息、已完成任务、未完成任务,保存到 docs/context-sessions/ 目录,便于新窗口恢复。

Example output

A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.

When to use this skill

  • Use this skill when you want a reusable workflow rather than writing the same prompt again and again.

When not to use this skill

  • Do not use this when you only need a one-off answer and do not need a reusable workflow.
  • Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/context-save/SKILL.md --create-dirs "https://raw.githubusercontent.com/aiskillstore/marketplace/main/skills/claudate/context-save/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/context-save/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How context-save Compares

Feature / Agentcontext-saveStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

当用户发送"换窗口处理-"时调用。总结当前窗口的上下文信息、已完成任务、未完成任务,保存到 docs/context-sessions/ 目录,便于新窗口恢复。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 上下文保存指南

## 触发条件

当用户发送 `换窗口处理-` 时,调用此 Skill。

---

## 执行步骤

### Step 1: 分析当前上下文

回顾当前会话,提取以下信息:

1. **核心任务** - 用户最初的请求是什么
2. **已完成任务** - 本次会话中完成了哪些工作
3. **未完成任务** - 还有哪些工作待完成
4. **关键文件** - 正在操作或需要关注的文件
5. **技术要点** - 重要的技术决策、踩过的坑
6. **下一步行动** - 建议新窗口首先做什么

### Step 2: 生成 Session 文件

**文件命名规则**: `{YYYYMMDD}-{HHMM}-{简短描述}.md`

示例: `20251128-1430-实现用户登录功能.md`

**文件位置**: `docs/context-sessions/`

### Step 3: 写入标准格式

```markdown
# Session: {简短描述}

## 元信息
- **创建时间**: {当前时间}
- **状态**: 进行中

## 上下文摘要
{简洁描述当前正在做什么、背景信息、关键决策}

## 已完成任务
- [x] 任务1描述
- [x] 任务2描述

## 未完成任务
- [ ] 🔴 高优先级: {任务描述}
- [ ] 🟡 中优先级: {任务描述}
- [ ] 🟢 低优先级: {任务描述}

## 关键文件
- `{文件路径}` - {说明}
- `{文件路径}` - {说明}

## 注意事项
{需要注意的技术细节、已知问题、踩过的坑}

## 下一步行动
{建议新窗口首先执行的操作}
```

### Step 4: 告知用户

保存完成后,输出:

```
✅ 上下文已保存到: docs/context-sessions/{文件名}

新窗口恢复方法:
1. 调用 skill: context-resume
2. 选择对应的 session 文件

未完成任务数: {数量}
```

---

## 优先级标记说明

| 标记 | 含义 | 使用场景 |
|------|------|---------|
| 🔴 | 高优先级 | 阻塞性任务、核心功能 |
| 🟡 | 中优先级 | 重要但不紧急 |
| 🟢 | 低优先级 | 优化、可选功能 |

---

## 示例输出

```markdown
# Session: 实现微信公众号发布功能

## 元信息
- **创建时间**: 2025-11-28 14:30
- **状态**: 进行中

## 上下文摘要
用户需要实现微信公众号的自动发布功能。已完成登录态获取和 Cookie 管理,正在实现文章发布 API 对接。

## 已完成任务
- [x] 创建 WechatPublisher 基础类结构
- [x] 实现 Cookie 存储和读取
- [x] 完成登录检测逻辑

## 未完成任务
- [ ] 🔴 高优先级: 实现 publishArticle 方法
- [ ] 🔴 高优先级: 处理图片上传到微信服务器
- [ ] 🟡 中优先级: 添加发布结果回调
- [ ] 🟢 低优先级: 添加草稿箱功能

## 关键文件
- `electron/services/publish/publishers/wechat.publisher.ts` - 主要开发文件
- `electron/services/core/cookie.service.ts` - Cookie 管理
- `shared/types/publish.types.ts` - 类型定义

## 注意事项
- 微信 API 有频率限制,需要添加请求间隔
- 图片需要先上传到微信素材库获取 media_id
- 登录态 24 小时过期,需要定期刷新

## 下一步行动
1. 先读取 wechat.publisher.ts 了解当前进度
2. 继续实现 publishArticle 方法
3. 参考 xiaohongshu.publisher.ts 的图片上传实现
```

---

## 注意事项

1. **精炼总结** - 只保留关键信息,避免冗余
2. **可执行性** - 未完成任务要具体、可操作
3. **文件路径准确** - 确保关键文件路径正确
4. **优先级合理** - 帮助新窗口快速确定工作重点

Related Skills

json-to-llm-context

242
from aiskillstore/marketplace

Turn JSON or PostgreSQL jsonb payloads into compact readable context for LLMs. Use when a user wants to compress JSON, reduce token usage, summarize API responses, or convert structured data into model-friendly text without dumping raw paths.

opencontext

242
from aiskillstore/marketplace

Persistent memory and context management for AI agents using OpenContext. Keep context across sessions/repos/dates, store conclusions, and provide document search workflows.

hig-project-context

242
from aiskillstore/marketplace

Create or update a shared Apple design context document that other HIG skills use to tailor guidance. Use when the user says 'set up my project context,' 'what platforms am I targeting,' 'configure HIG settings,' or when starting a new Apple platform project.

ddd-context-mapping

242
from aiskillstore/marketplace

Map relationships between bounded contexts and define integration contracts using DDD context mapping patterns.

context7-auto-research

242
from aiskillstore/marketplace

Automatically fetch latest library/framework documentation for Claude Code via Context7 API

context-window-management

242
from aiskillstore/marketplace

Strategies for managing LLM context windows including summarization, trimming, routing, and avoiding context rot Use when: context window, token limit, context management, context engineering, long context.

context-manager

242
from aiskillstore/marketplace

Elite AI context engineering specialist mastering dynamic context management, vector databases, knowledge graphs, and intelligent memory systems. Orchestrates context across multi-agent workflows, enterprise AI systems, and long-running projects with 2024/2025 best practices. Use PROACTIVELY for complex AI orchestration.

context-management-context-save

242
from aiskillstore/marketplace

Use when working with context management context save

context-management-context-restore

242
from aiskillstore/marketplace

Use when working with context management context restore

context-driven-development

242
from aiskillstore/marketplace

Use this skill when working with Conductor's context-driven development methodology, managing project context artifacts, or understanding the relationship between product.md, tech-stack.md, and workflow.md files.

code-refactoring-context-restore

242
from aiskillstore/marketplace

Use when working with code refactoring context restore

c4-context

242
from aiskillstore/marketplace

Expert C4 Context-level documentation specialist. Creates high-level system context diagrams, documents personas, user journeys, system features, and external dependencies. Synthesizes container and component documentation with system documentation to create comprehensive context-level architecture. Use when creating the highest-level C4 system context documentation.