hive.context-preservation
What it does
This skill tells an AI to copy important facts from large results into short notes as it works. It is for long jobs where the AI could otherwise lose early details.
When to use it
- ✓When a long task produces many search or tool results.
- ✓When the AI warns that its working memory is nearly full.
- ✓When later steps depend on values, links or IDs from earlier results.
Skill link
https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/context-preservation/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I want you to keep the key links and numbers from each search so nothing gets lost later.”
5 new skills a week. 1 minute to read.
How it works
After each tool call, the AI pulls out the values it will need, such as links, IDs and short snippets, and saves them in a notes area. This keeps the important facts even when older tool results are cleared.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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 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.
You will receive an alert when context reaches {{warn_at_usage_ratio_pct}}% — preserve immediately.
FAQ
What should the AI save?
It saves links, key snippets, specific values, IDs and conclusions, not whole pages or raw data.
Where are the notes kept?
They are kept in a working notes area that the AI can read later.
Is this useful for short tasks?
It matters most for long jobs where early results could be cleared before they are used.
Details
Original description by the author
Proactively extract critical values from tool results into working notes before automatic context pruning destroys them.
repo: aden-hive/hive
Popularity
- GitHub stars
- 11k
- Ranking position
- #11800
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
browser-edge-cases
11kHelps your agent fix browser automation that fails on tricky sites such as LinkedIn, X or pages with heavy scripts.
hive.browser-automation
11kTeaches your agent to control your own Chrome browser with the hive-browser tool, using screenshots and clicks.
hive.colony-progress-tracker
11kHelps your agent claim tasks and record its steps and checks in a shared database, so work is tracked as it goes.
hive.error-recovery
11kHelps your agent handle failed tool steps with a clear plan: retry once, fix the input, skip the item, or escalate.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.