One-click install
npx skills add https://github.com/jangtrinh/demo-Lam --skill ck-context-engineering-jangtrinh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ck:context-engineering
Source: https://github.com/jangtrinh/demo-Lam/tree/main/.claude/skills/context-engineering
Command: npx skills add https://github.com/jangtrinh/demo-Lam --skill ck-context-engineering-jangtrinh

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you keep LLM context within limits while preserving the most useful information, reducing failures like lost-in-the-middle, context poisoning, and inefficient token usage.

Core Features & Use Cases

  • Context health monitoring: Detects context utilization risk, lost-in-middle critical items, and potential context poisoning indicators.
  • Token- and budget-aware planning: Produces actionable thresholds and compaction triggers to plan context allocation across system, tools, docs, and history.
  • Compression quality evaluation: Uses probe-based (recall/artifact/continuation/decision) testing and heuristics to estimate whether compressed context preserves key outcomes.
  • Optimization guidance for multi-agent systems: Supports isolation-first workflows, compaction strategies, and measurement-before-optimization principles.

Quick Start

Ask an AI agent to analyze your current context messages JSON for utilization, degradation risk, and poisoning risk using the ck:context-engineering skill.

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 token usage and prevent context window failures?

To optimize LLM token usage, you can analyze context utilization to detect degradation and poisoning risks, then apply compaction and isolation strategies to preserve high-signal context and maintain stable performance.

What is context poisoning in LLM agents and how do I detect it?

Context poisoning occurs when irrelevant or corrupted data degrades LLM performance. You can detect it by monitoring context health indicators and evaluating utilization risks across system messages, tools, and history.

How do I manage context allocation for multi-agent coordination workflows?

For multi-agent coordination, you can partition context across sub-agents using isolation-first workflows and trigger compaction near utilization thresholds to ensure each agent maintains stable context windows.

How can I validate that context compression preserves key LLM outcomes?

You can validate context compression quality by using probe-based metrics, including recall, artifact, continuation, and decision testing, to estimate whether the compressed context preserves key outcomes.

When should I trigger context compaction in long-running agent workflows?

You should trigger context compaction in long-running agent workflows when token utilization approaches predefined thresholds, extracting high-signal context to prevent lost-in-the-middle failures before they occur.

Does this context engineering approach work with existing LLM memory systems?

Yes, this approach applies to memory systems by evaluating context utilization and applying measurement-before-optimization principles to ensure stable performance across long-running agent workflows and multi-agent coordination.