Oh-my-gemini-cli context-optimize

Purpose

install
source · Clone the upstream repo
git clone https://github.com/Joonghyun-Lee-Frieren/oh-my-gemini-cli
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Joonghyun-Lee-Frieren/oh-my-gemini-cli "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/context-optimize" ~/.claude/skills/joonghyun-lee-frieren-oh-my-gemini-cli-context-optimize && rm -rf "$T"
manifest: skills/context-optimize/SKILL.md
source content

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

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