🧠
AI EngineeringPython

Context Preservation

by aden-hive

Context Preservation is an AI Engineering skill for Claude Code, published by aden-hive in hive.

10.9K stars5.7K forkson aden-hive/hiveAdded 2026/08/15Repository updated 2026/08/13
agentagent-frameworkagent-skillsanthropicautomationautonomous-agentsclaudeharnessharness-engineeringhuman-in-the-loopopenaipythonself-hostedself-improving
Install in seconds
Install Context Preservation
Copy Context Preservation into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/aden-hive/hive/tree/main/core/framework/skills/_default_skills/context-preservation ~/.claude/skills/context-preservation

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/aden-hive/hive.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
core/framework/skills/_default_skills/context-preservation/SKILL.md in aden-hive/hive
Installs to
~/.claude/skills/context-preservation
Collection
One of 24 skills cataloged from this repository
Category
AI Engineering2451 skills

What Context Preservation does

Context Preservation proactively extracts critical values from tool results into working notes before automatic context pruning destroys them. Use it when an agent must retain URLs, API fields, IDs, and analysis conclusions across long tasks.

Context Preservation is cataloged under AI Engineering on DirSkills. Context Preservation comes from a repository tagged agent, agent-framework, agent-skills, anthropic and automation.

Documentation

README

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)

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Context Preservation

  • What else does aden-hive publish alongside Context Preservation?

    Context Preservation is one of 24 skills that DirSkills catalogs from aden-hive/hive, the repository it ships in. Its siblings there include Background Job Control, Browser Edge Cases and Chart Creation Foundations. Each one is a separate skill with its own page in this directory, installs the same way Context Preservation does, and is maintained by aden-hive in that same repository. The rest of the collection is listed on the aden-hive/hive page.

  • How does Context Preservation compare to other AI Engineering skills?

    Context Preservation ranks #372 by stars among the 2451 AI Engineering skills in this catalog. The most-starred ones next to it are Architecture Decision Records, AI-First Engineering and Agentic OS. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Context Preservation against them. Open each page to compare what they document and how they install.

More from aden-hive/hive

Context Preservation is one of 24 skills cataloged on DirSkills from aden-hive/hive.

See all 24 skills
2w ago

Background Job Control

Background Job Control manages long-running terminal jobs using start, poll, wait, and signal tools. Use it before launching builds, deploys, streaming logs, or taking over auto-backgrounded processes from terminal_exec.
Automation
10.9K5.7K
🔍
2w ago

Browser Edge Cases

Browser Edge Cases provides a standard operating procedure for debugging browser automation failures on complex websites. Use it when browser tools fail on LinkedIn, Twitter/X, SPAs, or sites with Shadow DOM.
Automation
10.9K5.7K
📊
2w ago

Chart Creation Foundations

Chart Creation Foundations teaches the one-tool embedding contract for rendering BI/financial-grade ECharts and Mermaid charts that appear live in chat and save as high-DPI PNGs. Use it whenever chart_* tools are available to avoid chartjunk and missing downloads.
Data
10.9K5.7K
📋
2w ago

Colony Progress Tracker

Colony Progress Tracker claims tasks, records step progress, and verifies SOP gates in a shared SQLite queue. Use when your spawn message includes db_path and colony_id fields.
Automation
10.9K5.7K
🔁
2w ago

Error Recovery

Error Recovery guides an agent through a decision tree for tool call failures: retry transient errors once, fix and retry structural ones, or escalate if blocking. It switches tools after repeated failures and logs failed tasks to a database.
AI Engineering
10.9K5.7K
🔍
2w ago

Filesystem Search

Filesystem Search teaches agents when to use terminal_rg, terminal_glob, and terminal_exec for filesystem search: content grep with ripgrep, filename globs, and predicate queries for mtime/size/type.
AI Engineering
10.9K5.7K