Agent skill

Context Preservation

by juanandresgs in juanandresgs/claude-ctrl

Generate structured context summaries for session continuity across compaction

No licenceAuto-check passedBackend & APIs

Install Context Preservation

skills CLI
$ npx skills add juanandresgs/claude-ctrl --skill context-preservation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install juanandresgs/claude-ctrl context-preservation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/juanandresgs/claude-ctrl.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/context-preservation .claude/skills/context-preservation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
context-preservation
GitHub stars
193
Token cost
~1.1k tokens
SKILL.md length
357 words
Files
1
Skills in repo
10
Repo updated
First seen
Licence
None found

At a glance

Generate structured context summaries for session continuity across compaction

  • Backend & APIs work in your project
  • SKILL.md covers Output Format (STRICT - NO…, Content Extraction, Anti-Patterns (NEVER DO) and Validation Checklist
  • Calls npm

What it does

Context Preservation is an agent skill from juanandresgs/claude-ctrl. Generate structured context summaries for session continuity across compaction

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs. The repository describes itself as: DEPRECATED / UNMAINTAINED — historical reference only. Do not install or rely on this project.

When your agent uses it

  • Backend & APIs work in your project

Example prompts

  • “/context-preservation”

What it can do on your machine

Read from SKILL.md and the folder at commit dfbdd82. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Context Preservation loads about 1.1k tokens when it runs. Until then it costs about 25 tokens; SKILL.md has 357 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~25
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 357 words (~1,061 tokens).

“Generate structured context summaries when compaction is imminent or requested, ensuring session continuity without information loss.”

— opening of SKILL.md by juanandresgs
name
context-preservation

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/context-preservation of juanandresgs/claude-ctrl.

Open the folder on GitHubat commit dfbdd82

Compare with similar skills

Context Preservation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Context Preservation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Context Preservation this skilljuanandresgs/claude-ctrl193—~1.1kAutomated safety check: PassNone
Infer Conventionsanonaddy/anonaddy4.9k5 repos~3.1kAutomated safety check: PassMIT
Durable Objectscloudflare/skills3k2 repos~1.5kAutomated safety check: PassApache-2.0
Design An Interfacefossasia/eventyay-interpretation1.6k9 repos~842Automated safety check: PassApache-2.0
Coding Directivesgreenpau/caddy-security2.3k—~4.1kAutomated safety check: PassApache-2.0
Octo LoopMininglamp-OSS/octo-cli918—~2.3kAutomated safety check: PassApache-2.0

Similar skills

  • Infer Conventions

    anonaddy/anonaddy

    A skill your agent uses to analyze how a Laravel application is actually written and record its conventions as shared rules.

    4.9k GitHub starsUsed in 5 repos~3.1k tokens
    Backend & APIsAuto-check passed
  • Durable Objects

    cloudflare/skills

    Official

    Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.

    3k GitHub starsUsed in 2 repos~1.5k tokens
    Backend & APIsAuto-check passed
  • Design An Interface

    fossasia/eventyay-interpretation

    Generate multiple radically different interface designs for a module using parallel sub-agents.

    1.6k GitHub starsUsed in 9 repos~842 tokens
    Backend & APIsAuto-check passed
  • Coding Directives

    greenpau/caddy-security

    Implement or review caddy-security Go code, Caddy modules, parsers, lifecycle, and HTTP delegation.

    2.3k GitHub stars~4.1k tokensUpdated 5 days ago
    Backend & APIsAuto-check passed
  • Octo Loop

    Mininglamp-OSS/octo-cli

    A skill your agent uses when operating the Octo Loop control plane through the octo-cli loop commands: reading or writing Fleet tasks, comments, metadata, projects, and labels; dispatching work to…

    918 GitHub stars~2.3k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Zalo Agent

    PhucMPham/zalo-agent-cli

    Automate Zalo messaging, Official Account (OA), and MCP server integration via zalo-agent-cli.

    166 GitHub stars~2.3k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed

More from juanandresgs/claude-ctrl

All 10 skills in this repo
  • Deep Research

    juanandresgs/claude-ctrl

    Multi-model deep research with comparative assessment (OpenAI + Perplexity + Gemini).

    193 GitHub stars~3.1k tokensUpdated 2 mo ago
    Auto-check: notes
  • Prd

    juanandresgs/claude-ctrl

    Write structured feature specifications with problem statements, user journeys, use cases, functional requirements, and success metrics.

    193 GitHub stars~2.9k tokensUpdated 2 mo ago
    Auto-check passed
  • Decide

    juanandresgs/claude-ctrl

    Generate an interactive decision configurator from research or plan analysis.

    193 GitHub stars~6.1k tokensUpdated 2 mo ago
    Auto-check: notes
  • Observatory

    juanandresgs/claude-ctrl

    Analyze system health, surface patterns, manage improvement suggestions.

    193 GitHub stars~1.9k tokensUpdated 2 mo ago
    Auto-check: notes
  • Signal Trace

    juanandresgs/claude-ctrl

    Trace systemic brittleness from symptom to root cause. An agent skill from juanandresgs/claude-ctrl.

    193 GitHub stars~1.5k tokensUpdated 2 mo ago
    Auto-check: notes
  • Reckoning

    juanandresgs/claude-ctrl

    Analyze a project's MASTERPLAN.md to assess coherence, evolution trajectory, and intent alignment.

    193 GitHub stars~7.4k tokensUpdated 2 mo ago
    Auto-check: notes

Questions about Context Preservation

What does Context Preservation do?

Generate structured context summaries for session continuity across compaction. Context Preservation is an agent skill from juanandresgs/claude-ctrl.

When should I use Context Preservation?

Context Preservation fits situations like: backend & APIs work in your project.

How do I install Context Preservation in Claude Code?

Run `npx skills add juanandresgs/claude-ctrl --skill context-preservation -a claude-code`. Or copy the skill folder (skills/context-preservation in juanandresgs/claude-ctrl) into .claude/skills/context-preservation in your project. Claude Code loads it when a task matches its description.

How do I install Context Preservation in Codex?

Run `npx skills add juanandresgs/claude-ctrl --skill context-preservation -a codex`. Or copy the skill folder (skills/context-preservation in juanandresgs/claude-ctrl) into .agents/skills/context-preservation in your project. Codex loads it when a task matches its description.

Can I use Context Preservation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add juanandresgs/claude-ctrl --skill context-preservation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/context-preservation, .gemini/skills/context-preservation, .github/skills/context-preservation and .opencode/skills/context-preservation in your project.

What does Context Preservation need to run?

Going by SKILL.md and its folder, Context Preservation needs the command-line tools its instructions call (npm).

Does Context Preservation access the network?

SKILL.md contains no URLs. Its commands use npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Context Preservation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Context Preservation use?

No licence was found for Context Preservation or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Context Preservation use?

About 1.1k tokens (SKILL.md is roughly 4.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Context Preservation?

Skills that share tags, products or a category with Context Preservation: Infer Conventions (anonaddy/anonaddy, 4.9k stars), Durable Objects (cloudflare/skills, 3k stars), Design An Interface (fossasia/eventyay-interpretation, 1.6k stars) and Coding Directives (greenpau/caddy-security, 2.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Context Preservation?

juanandresgs (a GitHub user) maintains it in juanandresgs/claude-ctrl, which has 193 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on August 7, 2026.

Source: juanandresgs/claude-ctrl on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.