Skip to content
Back to skills

676 Context Compaction B26bfbcb

ASecurity

When context window reaches high capacity, you will be instructed to perform these steps: ```markdown [STATUS: Context Compaction] Context window above 85% capacity Initiating maintenance agents for context preservation... ``` {todos}

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
documentationdocumentation

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 676-context-compaction_b26bfbcb --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 676 Context Compaction B26bfbcb?

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

Security grade badge for 676 Context Compaction B26bfbcb
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-676-context-compaction-b26bfbcb/badge)](https://www.skillsdirectory.com/skills/tools-only-676-context-compaction-b26bfbcb)

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

SKILL.md
# Context Compaction Protocol

When context window reaches high capacity, you will be instructed to perform these steps:

```markdown
[STATUS: Context Compaction] Context window above 85% capacity Initiating maintenance agents for context preservation...
```

{todos}

## 1. Run Maintenance Agents

Before compacting, delegate to agents:

1. **logging agent** - Update work logs in task file

   ```markdown
   [RUNNING: Logging Agent] Consolidating work logs and updating task documentation...
   ```

   - Automatically receives full conversation context
   - Logs work progress and updates task status

   After completion:

   ```markdown
   ✓ Complete
   ```

2. **context-refinement agent** - Check for discoveries/drift

   ```markdown
   [RUNNING: Context-Refinement Agent] Checking for new discoveries or context drift...
   ```

   - Reads transcript files automatically
   - Will update context ONLY if changes found
   - Skip if task is complete

   After completion:

   ```markdown
   ✓ Complete - [No updates needed / Context manifest updated]
   ```

3. **service-docs-maintainer agent** - Update CLAUDE.md files

   ```markdown
   [RUNNING: service-docs-maintainer agent] Updating service documentation if needed...
   ```

   - Only if service interfaces changed significantly
   - Include list of modified services

   After completion:

   ```markdown
   ✓ Complete - [No updates needed / Updated X service files]
   ```

## 2. Completion Summary

After all agents complete, report status:

```markdown
[COMPLETE: Context Compaction] ✓ Work logs consolidated ✓ Context manifest [updated/current] ✓ Service documentation [updated/current]

Ready to continue with fresh context window.
```

## Note on Context Refinement

The context-refinement agent is speculative - it will only update the context manifest if genuine drift or new discoveries occurred. This prevents unnecessary updates while ensuring important findings are captured.

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.

Comments

Loading comments…