r3dlex/oh-my-antigravity/context-optimize
Claude Code and agent skill by r3dlex/oh-my-antigravity
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Analyze and compress context for higher signal-to-noise ratio. Use when GEMINI.md or session context is bloated and needs cleanup.
Install
npx vskill@latest install r3dlex/oh-my-antigravity/context-optimizeSKILL.md
Context Optimize Skill (oh-my-antigravity)
Quick Start
- Measure current context size, identify low-signal sections, then propose the smallest cleanup that improves signal density.
Optimize prompt and context files for maximum signal density.
Quick Start
- GEMINI.md or context files have grown large and unfocused
- Session context feels bloated with stale information
- Token budget is tight and every token must count
- After a major feature addition that expanded context
Workflow
- Audit: Measure current context size and composition
- Score: Rate each section for signal density (useful / total tokens)
- Identify issues: Flag duplicates, stale entries, verbose sections
- Propose changes: Show diff of recommended optimizations
- Apply: With user approval, apply the optimizations
Optimization Strategies
| Strategy | Description | Risk | |
|---|---|---|---|
| Deduplicate | Remove repeated instructions across layers | Low | |
| Compress | Shorten verbose sections preserving meaning | Low | |
| Prioritize | Move high-signal content earlier in context | Low | |
| Prune | Remove stale or irrelevant entries | Medium | |
| Restructure | Improve formatting for model parsing | Low |
Metrics
5-Layer Context Model
oh-my-antigravity contexts follow this priority hierarchy:
- System/Runtime: Gemini CLI constraints (immutable)
- Project Standards: GEMINI.md + context/omg-core.md
- Session Memory: .omg/state/, memory entries
- Active Task: Current plan, taskboard, PRD
- Execution Traces: Recent iteration results
Optimization targets layers 2-5 (layer 1 is immutable).
Safety Rules
- Never remove user-authored content without confirmation
- Always show diff before applying changes
- Preserve semantic meaning — compress, don't delete meaning
- Back up original before modifying
Related commands
/omg:optimize— quick context optimization command/omg:memory compact— compact memory entries specifically
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/context-optimize/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/r3dlex/oh-my-antigravity/context-optimize)