Skip to content
Skillpedia
Agents11k · #11800

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.md

Copy 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

Use this skill to help me: https://github.com/aden-hive/hive/blob/main/core/framework/skills/_default_skills/context-preservation/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills