ck:context-engineering

Curate, compress, and isolate high-signal context to prevent LLM performance degradation.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/MinhHoangDono/antigravity-kit --skill ck-context-engineering-minhhoangdono
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:context-engineering
Source: https://github.com/MinhHoangDono/antigravity-kit/tree/main/.agent/skills/context-engineering
Command: npx skills add https://github.com/MinhHoangDono/antigravity-kit --skill ck-context-engineering-minhhoangdono

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pytest, and includes scripts (resource) and references (resource) components.

What problem does it solve?

It helps you prevent context-window overflows and degraded reasoning by curating the highest-signal information and actively monitoring usage pressure.

Core Features & Use Cases

  • Token-efficient context curation: Identifies when context quantity hurts quality and applies progressive disclosure to keep only what matters for the current step.
  • Context degradation debugging: Detects lost-in-the-middle patterns and context poisoning risks to recover from performance drops and persistent hallucinations.
  • Compression evaluation with probes: Uses probe-based heuristics to judge whether summaries retain accuracy, artifact tracking, continuity, and instruction compliance.
  • Runtime usage awareness guidance: Provides explicit thresholds for WARNING/CRITICAL utilization so agents take compaction or reset actions on time.

Quick Start

Use ck:context-engineering when you notice a model warning about high context usage or when answers become inconsistent despite unchanged requirements.

Frequently Asked Questions about ck:context-engineering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize LLM context usage to prevent token limit overflows?

Debug context degradation by detecting lost-in-the-middle patterns and context poisoning risks that cause performance drops and persistent hallucinations. Identifying these issues helps recover model accuracy by isolating high-signal information from corrupted or irrelevant context.

How do I evaluate if context compression retains accuracy and instruction compliance?

Evaluate context compression using probe-based heuristics to judge whether summaries retain artifact tracking, continuity, and instruction compliance. Running the provided scripts measures summary accuracy, ensuring compressed context maintains the required reasoning fidelity.

Can I use pytest to test multi-agent isolation and context compression?

Set explicit WARNING and CRITICAL thresholds for runtime context utilization so agents take compaction or reset actions on time. Defining these thresholds prevents degraded performance by ensuring agents proactively manage context pressure before hitting hard token limits.

What is the best way to isolate high-signal information in multi-agent pipelines?

Isolate high-signal information in multi-agent pipelines by curating and compressing context to prevent cross-agent poisoning and lost-in-the-middle patterns. This approach maintains reasoning quality by ensuring each agent operates only on the most relevant data for its specific step.