context-engineering

Manage context windows with just-in-time loading and subagent patterns.

2|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/slabgorb/sidequest --skill context-engineering-slabgorb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-engineering
Source: https://github.com/slabgorb/sidequest/tree/main/.pennyfarthing/skills/pf-context-engineering
Command: npx skills add https://github.com/slabgorb/sidequest --skill context-engineering-slabgorb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Context Engineering Skill provides strategies to manage and optimize context windows in long-running agent sessions, helping you avoid hitting context limits, design effective subagent prompts, and implement just-in-time context loading.

Core Features & Use Cases

  • Just-in-Time Context Loading: read and load data on demand instead of upfront, preserving tokens for critical tasks.
  • Subagent Patterns: spawn summarizing subagents to return concise findings and file references rather than full data dumps.
  • Memory Tools: use external session state, progress logs, and sidecar notes to maintain cross-session continuity.
  • Best Practices: follow CLAUDE.md guidance to keep context metadata lean and navigable.

Quick Start

Begin by enabling just-in-time context loading and practice summarizing large data chunks before loading full content.

Frequently Asked Questions about context-engineering

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

FAQPage Schema
How do I manage context windows in long-running AI agent sessions?

Manage context windows by applying just-in-time data loading, subagent orchestration, and memory tooling with documented patterns and guardrails. This preserves tokens and prevents hitting context limits during extended agent sessions.

What is just-in-time context loading and when should I use it?

Just-in-time context loading reads and loads data on demand instead of upfront, preserving tokens for critical tasks. Use it in long-running agent sessions where upfront data dumps would exhaust context budgets prematurely.

How do I design effective subagent prompts to avoid context limits?

Design subagent prompts to spawn summarizing subagents that return concise findings and file references rather than full data dumps. This pattern prevents context overflow and maintains efficient context budgeting across orchestration workflows.

Can I maintain cross-session continuity for AI agents without loading full memory?

Maintain cross-session continuity using memory tools like external session state, progress logs, and sidecar notes. These memory tools preserve continuity without consuming critical context window space in long-running agent sessions.

What's the best way to keep context metadata lean for AI agents?

Keep context metadata lean by following CLAUDE.md guidance to ensure metadata remains navigable. Lean context metadata prevents unnecessary token consumption and supports efficient context budgeting in long-running agent sessions.

When should I not use upfront data loading in agent prompting?

Avoid upfront data loading when long-running agent sessions risk hitting context limits. Instead, apply just-in-time context loading patterns to read data on demand, preserving context budget for critical tasks and subagent orchestration.