hive.context-preservation

仓库创建 2026年1月12日最近提交 1 个月前SkillHot 收录 21 天前
▸ 精选理由

防止重要工具结果随上下文限制丢失,便于长期任务追踪。

这个 Skill 做什么

在上下文被裁剪前提取关键数据并保存到工作笔记以免丢失。

在对话或自动化流程里,工具返回的内容会被上下文裁剪,先把关键数据提取并存到工作笔记里,避免后续回溯丢失。常在多步推理、调用外部工具或需要长时间追踪结果时用到。特点是“随用随存”,把重要值写入 _working_notes 或 _preserved_data,能在有限的 context window 下保住关键信息。

▸ 展开 SKILL.md 英文原文

Proactively extract critical values from tool results into working notes before automatic context pruning destroys them.

Skill 开发管理上下文保留工作笔记短期记忆通用
1.1w
Stars
5.7k
Forks
18
仓库内 Skill
+136
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/aden-hive/hive/main/core/framework/skills/_default_skills/context-preservation/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/aden-hive/hive/main/core/framework/skills/_default_skills/context-preservation/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
## Operational Protocol: Context Preservation

You operate under a finite context window. Older tool results WILL be pruned. Extract what you need while it's still in context.

**Save-as-you-go.** After any tool call producing information you'll need later, immediately extract the key data into `_working_notes` or `_preserved_data`. Do not rely on referring back to old tool results — once they're pruned they're gone.

**What to extract:**
- URLs and key snippets (not full pages)
- Relevant API fields (not raw JSON blobs)
- Specific lines, values, or IDs (not entire files)
- Analysis conclusions (not raw data)

**Handoffs between tasks** happen through `progress.db`, not through shared-buffer
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有