AgentSkillsCN

summarize-context

将当前会话状态压缩至project-state.md,释放上下文窗口的令牌资源。在不丢失关键决策与进展的前提下,精准记录重要节点与阶段性成果。

SKILL.md
--- frontmatter
name: summarize-context
description: >
  Compresses current session state into project-state.md to free context
  window tokens. Captures key decisions and progress without losing the thread.
user-invocable: true

/summarize-context — Context Compression

Target File

.claude/memory/project-state.md

Steps

  1. Analyze recent conversation: What was achieved? What decisions were made? What's pending?
  2. Update project-state.md with current state:
    • Mark completed tasks [x]
    • Update current focus
    • Record blockers
    • Add recent decisions (keep last 5)
  3. Output: "Memory updated in project-state.md. Ready to continue with clean context."

Cap

project-state.md MUST NOT exceed 80 lines. If over cap:

  • Archive completed waves to .claude/memory/archive/
  • Keep only active wave + current focus + blockers