New advertisers: 50% off your first month with code FIRSTMONTHSee slots
addyosmani avatar

Context Engineering

Structured context curation that feeds agents the right information at the right time to improve output quality.

skills.sh installs
75.6K
GitHub stars
119.7K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the five context levels: rules files, specs, relevant source files, error output, and conversation history
  • Includes templates for CLAUDE.md and equivalent rules files for Cursor, Windsurf, Copilot, and Codex
  • Guides context packing with brain dump, selective include, and hierarchical summary patterns
  • Designed for starting new sessions, recovering declining output quality, and switching between tasks

Install

$ npx -y skills add addyosmani/agent-skills --skill context-engineering -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Context Engineering

Overview

Feed agents the right information at the right time. Context is the single biggest lever for agent output quality — too little and the agent hallucinates, too much and it loses focus. Context engineering is the practice of deliberately curating what the agent sees, when it sees it, and how it's structured.

When to Use

  • Starting a new coding session
  • Agent output quality is declining (wrong patterns, hallucinated APIs, ignoring conventions)
  • Switching between different parts of a codebase
  • Setting up a new project for AI-assisted development
  • The agent is not following project conventions

The Context Hierarchy

Structure context from most persistent to most transient:

Details

Repository
github.com/addyosmani/agent-skills
Categories
Memory & Context, Agent Workflow & Planning
First seen
Apr 16, 2026

More from addyosmani/agent-skills

All 25

Similar to Context Engineering

More Memory & Context