Reinjected attachment pruning before summary

From ychampion/cskill-agents · View interactive version

Reinjected attachment pruning before summary is an AI agent skill from the GitHub repository ychampion/cskill-agents. Drop attachment classes that will be regenerated after compaction so the summarizer spends tokens on lasting context instead of disposable payloads.

How to use this skill

Skill file

SKILL: Reinjected Attachment Pruning Before Summary

Domain: context-management

Trigger: Use when some attachment types are guaranteed to be regenerated after compaction and should not consume summary budget.

Source Pattern: Distilled from reviewed reinjected-attachment pruning strategies.

Core Method

Remove only the attachment classes that the system already knows it will regenerate after compaction. This keeps the summary focused on durable conversational state and avoids paying twice for transient discovery or guidance payloads. Prune before normalization and summary generation so the saved budget reduces the compaction request itself.

Key Rules

Example Application

If skill discovery attachments are recreated on the next turn after compaction, strip them before summary generation so the compactor focuses on the real debugging conversation.

Anti-Patterns (What NOT to do)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.