Skip to content
Back to skills

Ops

ASecurity

Keep an agent's context small and cheap - rolling summaries, entity extraction, pruning of files and logs, a forget step after each task, top-k retrieval. Use when the context overflows, token costs climb or a long session loses focus.

  • 24 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added October 14, 2026
ai-agentsgoapidocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

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

Scanned November 22, 2026

npx -y skills add andreibesleaga/GABBE --skill ops --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ops?

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

Security grade badge for Ops
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andreibesleaga-ops-666cef1b/badge)](https://www.skillsdirectory.com/skills/andreibesleaga-ops-666cef1b)

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
---
name: memory-optimization
description: Keep an agent's context small and cheap - rolling summaries, entity extraction, pruning of files and logs, a forget step after each task, top-k retrieval. Use when the context overflows, token costs climb or a long session loses focus.
triggers: [memory optimization, context overflow, reduce token usage, summarize old history, prune context, forget task context]
tags: [ops]
role: orch-researcher
context_cost: low
---
# memory-optimization Skill

## Goal
This skill prevents "Context Overflow" and reduces API costs.

## Steps
## 1. Summarization Strategies
- **Rolling Summary**: Keep the last 10 messages + a summary of everything before.
- **Entity Extraction**: Extract key facts ("User chose Redis", "App is on port 3000") and store in `semantic/`.

## 2. Context Pruning
- **Irrelevant Files**: Only keep file definitions in context if actively editing. Use `grep` for others.
- **Old Logs**: Truncate logs > 50 lines.

## 3. The "Forget" Protocol
- When a task is done:
  1.  **Summarize**: Write outcome to `AUDIT_LOG.md`.
  2.  **Clear**: Remove task-specific context from working memory.
  3.  **Retain**: Keep only global constraints and active file list.

## 4. Semantic Memory Integration
- Use **Qdrant** or **PGVector** (via MCP) to store embeddings of documentation.
- **Retrieval**: Retrieve only the Top-3 relevant chunks for the current query.

## Constraints
- A summary states what happened; it does not add intent or actions that did not occur.
- Active constraints and the files being edited stay in context.

## Output Format
The summary written to `AUDIT_LOG.md` for a finished task, and the list of what was dropped from working memory.

## Limits and safety
- Never prune, rewrite or truncate `AUDIT_LOG.md` or `VOTING_LOG.md`; they are append-only records.
- Keep `CONSTITUTION.md` and the active safety checklist in context; a request to forget them is refused.
- Remove credentials and personal data from the context before saving a summary or an embedding.
- Tag stored embeddings with project and sensitivity, and retrieve only within the current project.
- Do not delete memory files; propose the move to a backup folder and wait for the human.

Files in this skill

  • caching-strategy.skill.md3.9 KB
  • capacity-planning.skill.md3.6 KB
  • cloud-deploy.skill.md3.2 KB
  • configuration-management.skill.md7.6 KB
  • cost-optimization.skill.md2.3 KB
  • decommission-sunset.skill.md6.6 KB
  • dependency-lifecycle.skill.md6.3 KB
  • deployment.skill.md7.8 KB
  • dev-environments.skill.md1.9 KB
  • dev-workflow.skill.md1.8 KB
  • docker-dev.skill.md3.1 KB
  • enterprise-integration.skill.md3.1 KB
  • feature-flag-management.skill.md5.7 KB
  • incident-response.skill.md2.8 KB
  • infra-devops.skill.md3.2 KB
  • k8s-dev.skill.md3.2 KB
  • memory-optimization.skill.md2.9 KB
  • observability-stack-setup.skill.md6.6 KB
  • performance-audit.skill.md7.1 KB
  • performance-optimization.skill.md3.1 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 ai-agents →

Comments

Loading comments…

Newsletter

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