360 Secure SkillHub
360 安全技能中心

Structured Context Compressor

核心功能是将冗长的Agent对话(尤其编码类)压缩为9部分结构化摘要,涵盖核心请求、文件代码、错误修复、用户消息等关键信息,避免自由摘要的信息丢失。典型场景包括长编码对话记录、会话交接、Agent间任务续接,可精准保留用户意图与关键修正。提供模板文档与辅助脚本,输入长对话内容,输出规范的结构化摘要,助力高效续接工作。

2020必胜
2020必胜
热度 98.22
最近更新 2026-04-03 21:41:36
分类:效率依赖:代码执行 / 内部调用大模型应用场景:摘要总结

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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