context-engineering-collection

Provides structured guidance for building and optimizing context-managed AI agent systems.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills --skill context-engineering-collection-lgj-jonathan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-engineering-collection
Source: https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills/tree/main/context-engineering
Command: npx skills add https://github.com/LGJ-Jonathan/Jonathan_Global_Claude_Skills --skill context-engineering-collection-lgj-jonathan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building production AI agents fails when context windows degrade: models lose track of information, hallucinate, and waste tokens. This collection teaches context engineering principles so you can design agents that curate the right information at every step. ## Core Features & Use Cases - Foundational Context Knowledge: Covers context anatomy, degradation patterns (lost-in-middle, poisoning, distraction), and compression strategies for long-running sessions. - Architectural Patterns: Guidance on multi-agent orchestration, memory systems, tool design, filesystem-based context, and hosted background agents. - Operational Excellence: Compaction, observation masking, KV-cache optimization, and evaluation frameworks including LLM-as-a-judge techniques. - Use Case: When designing a multi-agent research system, activate this collection to decide between supervisor and peer-to-peer patterns, design sub-agent context isolation, and plan memory persistence. ## Quick Start Ask the agent to explain context engineering fundamentals and recommend an architecture for your agent system.

Frequently Asked Questions about context-engineering-collection

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

FAQPage Schema
What is context engineering for AI agents?

Context engineering is the discipline of curating all information entering a model's context window, including system prompts, tool definitions, retrieved documents, and message history. It addresses attention limits like the lost-in-the-middle phenomenon rather than just raw token capacity.

How do I fix lost-in-the-middle problems in long agent conversations?

Apply compression strategies such as structured summarization with explicit sections for files, decisions, and next steps. You can also offload tool outputs to the filesystem and use observation masking to replace verbose results with references.

When should I use multi-agent architecture instead of a single agent?

Use sub-agents primarily to isolate context, not to simulate organizational roles. Supervisor, peer-to-peer, and hierarchical patterns each fit different coordination needs, but expect significantly higher token usage with multi-agent designs.

Does this collection work with Cursor and Claude Code?

Yes, the skills are platform-agnostic and work with Claude Code, Cursor, and any agent framework supporting custom instructions or skill-like constructs. It is distributed as a Claude Code plugin marketplace and follows the Open Plugins manifest standard.

How do I evaluate an AI agent's performance in production?

Use multi-dimensional rubrics covering factual accuracy, completeness, tool efficiency, and process quality. Combine LLM-as-a-judge for scalability with human evaluation for edge cases and end-state evaluation for agents that mutate persistent state.