360 Secure SkillHub
360 安全技能中心

Structured Context Compressor

把长 Agent 对话压缩成九段式续接摘要:主要请求、关键技术概念、文件与代码、错误与修复、问题解决、全部用户消息、待办任务、当前工作、下一步;附带提示模板与模板渲染脚本,强调保留全部用户消息以避免丢失方向性修正。

分类:效率
2020必胜
2020必胜
热度 58.42
最近更新 2026-04-03 21:41:36

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add 3127743018/structured-context-compressor
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
structured-context-compressor
description
Compress a long agent conversation into a nine-part continuation summary that preserves request, files, errors, user messages, current work, and the next aligned step.

Structured Context Compressor

Use this skill when a free-form summary is too lossy and you need a reliable continuation artifact.

Use It For

  • long coding conversations
  • session handoff
  • agent-to-agent continuation
  • preserving user intent under context pressure

Quick Start

Render the standard template:

python3 {baseDir}/scripts/render_template.py

Then apply the prompt in references/prompt-template.md.

Nine Sections

  1. primary request and intent
  2. key technical concepts
  3. files and code sections
  4. errors and fixes
  5. problem solving
  6. all user messages
  7. pending tasks
  8. current work
  9. next aligned step

Highest-Value Rule

Preserve all user messages or an accurate equivalent. Do not compress away the corrections that changed the direction of work.

Supporting Files