AgentSkillsCN

transfer-context

当当前会话出现降级或触及 Token 限制时,为新聊天会话做好上下文准备。适用于上下文占比超过 70%,或需要在全新会话中继续对话时使用。

SKILL.md
--- frontmatter
name: transfer-context
description: Prepare context for a new chat session when this one is degraded or hitting token limits. Use when context is above 70% or conversation needs to continue in a fresh session.
disable-model-invocation: true

Transfer Context

Prepare context for a new chat session when this one is degraded or hitting limits.

Output Format

code
## Context Transfer

### Summary
[What was accomplished in this session]

### Key Decisions
- [Decision 1 and why]
- [Decision 2 and why]

### Important Context
- [Gotchas discovered]
- [Patterns to follow]
- [Things that didn't work]

### Relevant Files
- path/to/file.ts - [what it does, why it matters]
- path/to/other.ts - [description]

### Current State
[What's working, what's broken, what's next]

### Prompt for New Chat
[Ready-to-paste prompt with all necessary context to continue]

Instructions

  1. Summarize what we accomplished (not just what we tried)
  2. List decisions made and their reasoning
  3. Note gotchas, failed approaches, important discoveries
  4. List files touched with brief descriptions
  5. Describe current state clearly
  6. Create a complete prompt I can paste into a fresh chat

The prompt should give the new session everything it needs to continue without re-explaining.