context-engineering
Installation
SKILL.md
Context Engineering Skill
Purpose
Establishes a production-grade context management framework for agent execution loops. Prevents prompt token overflows, minimizes runtime API costs, maintains execution states across restarts, and mitigates semantic drift during long chat sessions. This system provides automated mechanisms to prune, summarize, score, and inject context blocks dynamically into prompt structures.
Core Principles
- Token Allocation as Budget Management: Treat model context windows as finite memory caches. Allocate tokens dynamically based on priority weightings.
- Crash-Resilient State Persistence: Store execution progress parameters externally. If a process errors or restarts, it must be able to restore context and resume.
- Semantic Anchoring: Maintain a constant semantic anchor to the initial goal text. Actively prune conversational drift.
- On-Demand Context Loading: Do not load documents statically. Query vector databases or status flags dynamically based on the current state.
- No Token Waste: Strip comments, reduce whitespace, and format structural tables compactly.