context-engineering▌
mrgoonie/claudekit-skills · updated Apr 8, 2026
Context engineering curates the smallest high-signal token set for LLM tasks. The goal: maximize reasoning quality while minimizing token usage.
Context Engineering
Context engineering curates the smallest high-signal token set for LLM tasks. The goal: maximize reasoning quality while minimizing token usage.
When to Activate
- Designing/debugging agent systems
- Context limits constrain performance
- Optimizing cost/latency
- Building multi-agent coordination
- Implementing memory systems
- Evaluating agent performance
- Developing LLM-powered pipelines
Core Principles
- Context quality > quantity - High-signal tokens beat exhaustive content
- Attention is finite - U-shaped curve favors beginning/end positions
- Progressive disclosure - Load information just-in-time
- Isolation prevents degradation - Partition work across sub-agents
- Measure before optimizing - Know your baseline
Quick Reference
| Topic | When to Use | Reference |
|---|---|---|
| Fundamentals | Understanding context anatomy, attention mechanics | context-fundamentals.md |
| Degradation | Debugging failures, lost-in-middle, poisoning | context-degradation.md |
| Optimization | Compaction, masking, caching, partitioning | context-optimization.md |
| Compression | Long sessions, summarization strategies | context-compression.md |
| Memory | Cross-session persistence, knowledge graphs | memory-systems.md |
| Multi-Agent | Coordination patterns, context isolation | multi-agent-patterns.md |
| Evaluation | Testing agents, LLM-as-Judge, metrics | evaluation.md |
| Tool Design | Tool consolidation, description engineering | tool-design.md |
| Pipelines | Project development, batch processing | project-development.md |
Key Metrics
- Token utilization: Warning at 70%, trigger optimization at 80%
- Token variance: Explains 80% of agent performance variance
- Multi-agent cost: ~15x single agent baseline
- Compaction target: 50-70% reduction, <5% quality loss
- Cache hit target: 70%+ for stable workloads
Four-Bucket Strategy
- Write: Save context externally (scratchpads, files)
- Select: Pull only relevant context (retrieval, filtering)
- Compress: Reduce tokens while preserving info (summarization)
- Isolate: Split across sub-agents (partitioning)
Anti-Patterns
- Exhaustive context over curated context
- Critical info in middle positions
- No compaction triggers before limits
- Single agent for parallelizable tasks
- Tools without clear descriptions
Guidelines
- Place critical info at beginning/end of context
- Implement compaction at 70-80% utilization
- Use sub-agents for context isolation, not role-play
- Design tools with 4-question framework (what, when, inputs, returns)
- Optimize for tokens-per-task, not tokens-per-request
- Validate with probe-based evaluation
- Monitor KV-cache hit rates in production
- Start minimal, add complexity only when proven necessary
Scripts
- context_analyzer.py - Context health analysis, degradation detection
- compression_evaluator.py - Compression quality evaluation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.7★★★★★58 reviews- ★★★★★Yash Thakker· Dec 20, 2024
context-engineering fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Jin Li· Dec 16, 2024
context-engineering has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Dev Bansal· Dec 12, 2024
context-engineering fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
- ★★★★★Jin Khanna· Dec 8, 2024
I recommend context-engineering for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Hana Kapoor· Dec 8, 2024
context-engineering reduced setup friction for our internal harness; good balance of opinion and flexibility.
- ★★★★★Valentina Torres· Dec 4, 2024
We added context-engineering from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Jin Wang· Nov 27, 2024
Solid pick for teams standardizing on skills: context-engineering is focused, and the summary matches what you get after install.
- ★★★★★Min Diallo· Nov 23, 2024
Keeps context tight: context-engineering is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Pratham Ware· Nov 11, 2024
context-engineering is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Hana Smith· Nov 11, 2024
Registry listing for context-engineering matched our evaluation — installs cleanly and behaves as described in the markdown.
showing 1-10 of 58