Tooluck logoTooluck
SKILL.md

hive.context-preservation

Agent skill fromaden-hive/hive

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

How to install hive.context-preservation

install hive.context-preservation
# install the hive pack with the skills CLI
npx skills add aden-hive/hive

# or add only this skill to Claude Code: copy the folder

core/framework/skills/_default_skills/context-preservation/

# into

~/.claude/skills/context-preservation/ (all projects)

.claude/skills/context-preservation/ (one project)

core/framework/skills/_default_skills/context-preservation/SKILL.md

Apache-2.0Full file
1## Operational Protocol: Context Preservation
2
3You operate under a finite context window. Older tool results WILL be pruned. Extract what you need while it's still in context.
4
5**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.
6
7**What to extract:**
8- URLs and key snippets (not full pages)
9- Relevant API fields (not raw JSON blobs)
10- Specific lines, values, or IDs (not entire files)
11- Analysis conclusions (not raw data)
12
13**Handoffs between tasks** happen through `progress.db`, not through shared-buffer handoff blobs. When you finish a task, any state the next worker needs goes into the task row itself (`steps.evidence`, `tasks.last_error`, `sop_checklist.note`) — see `hive.colony-progress-tracker`. Use `_working_notes` for things the DB schema doesn't cover.
14
15You will receive an alert when context reaches {{warn_at_usage_ratio_pct}}% — preserve immediately.

Excerpt shown under the repository's Apache-2.0 license.

More skills in hive

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates