Skip to content
Back to skills

Context Optimizer

ASecurity

Automatically summarizes conversation context and cleans up old messages to prevent context overflow and save tokens.

  • 33 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
tools

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill context-optimizer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context Optimizer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Context Optimizer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-context-optimizer-a1ebaa8c/badge)](https://www.skillsdirectory.com/skills/dvcrn-context-optimizer-a1ebaa8c)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Context Optimizer Skill

Automatically summarizes conversation context and cleans up old messages to prevent context overflow and save tokens.

## Description
This skill periodically summarizes the conversation into 10-20 bullet points plus facts to remember, saves them to memory, then clears the old context while keeping only the summary.

## Triggers
- Manual activation: "optimize context", "clean context", "summarize and clear"
- Scheduled: Can be run periodically via cron to maintain optimal context size

## Process
1. Analyze current conversation context
2. Extract key points into 10-20 bullet points
3. Identify important facts to remember
4. Save summary to memory files
5. Clear old context while preserving essential information

## Files Used
- memory/context-summary-YYYY-MM-DD.md - Stores conversation summaries
- MEMORY.md - Updates with important facts
- memory/context-history.json - Tracks context optimization history

## Configuration
- Summary frequency (manual or scheduled)
- Number of bullet points to generate
- Retention period for context

Files in this skill

  • README.md2.8 KB
  • SKILL.md1 KB
  • config.json802 B
  • optimize.js11.6 KB
  • run-optimization.js2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.