---
name: Context Optimize
slug: context-optimize
category: AI Engineering
description: Context Optimize helps when a conversation gets long, repetitive, or unstable. It identifies stale context and suggests compaction and session rules to keep turns coherent.
github: "https://github.com/Joonghyun-Lee-Frieren/oh-my-antigravity/tree/main/skills/context-optimize"
language: JavaScript
stars: 210
forks: 27
install: "npx degit https://github.com/Joonghyun-Lee-Frieren/oh-my-antigravity/tree/main/skills/context-optimize ~/.claude/skills/context-optimize"
installs_to: ~/.claude/skills/context-optimize
source_path: skills/context-optimize/SKILL.md
collection_size: 11
category_size: 2970
collection_url: "https://dirskills.com/collections/Joonghyun-Lee-Frieren/oh-my-antigravity"
added: 2026-09-04T05:26:20.772Z
last_synced: 2026-09-04T05:26:20.772Z
canonical_url: "https://dirskills.com/skills/context-optimize"
---

# Context Optimize

Context Optimize helps when a conversation gets long, repetitive, or unstable. It identifies stale context and suggests compaction and session rules to keep turns coherent.

**Install:**

```bash
npx degit https://github.com/Joonghyun-Lee-Frieren/oh-my-antigravity/tree/main/skills/context-optimize ~/.claude/skills/context-optimize
```

## README

## Purpose

Use this skill when context is growing quickly or cache consistency drops.

## Trigger

- Conversation becomes long and repetitive
- The model loses thread coherence
- Frequent prompt restarts or unstable behavior appears

## Workflow

1. Identify repeated, stale, or low-value context.
2. Detect likely cache breakers (instruction churn, unstable prefixes).
3. Propose cache-safe compaction and message hygiene rules.
4. Produce an actionable operating checklist for next turns.

## Output Template

```markdown
## Context Health
- ...

## Cache Risks
- ...

## Optimization Actions
1. ...
2. ...
3. ...

## Session Rules
- ...
```

## Notes

- Keep stable instructions unchanged during a session.
- Prefer summaries over re-sending raw large blocks.
