context-engineering

Solid

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

Data & Documents 47,560 stars 5274 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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: ``` ┌─────────────────────────────────────┐ │ 1. Rules Files (CLAUDE.md, etc.) │ ← Always loaded, project-wide ├─────────────────────────────────────┤ │ 2. Spec / Architecture Docs │ ← Loaded per feature/session ├─────────────────────────────────────┤ │ 3. Relevant Source Files │ ← Loaded per task ├─────────────────────────────────────┤ │ 4. Error Output / Test Results │ ← Loaded per iteration ├─────────────────────────────────────┤ │ 5. Conversation History │ ← Accumulates, compacts └─────────────────────────────────────┘ ``` ### Level 1: Rules Files Create a rules file that persists across sessions. This is the highest-leverage context you can provide. **CLAUDE.md** (for Claude Code): ```markdown # Project: [Name] #...

Details

Author
addyosmani
Repository
addyosmani/agent-skills
Created
3 months ago
Last Updated
4 days ago
Language
Shell
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

context-engineering

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

2 Updated 2 days ago
nota-america
AI & Automation Listed

context-engineering

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

15 Updated 3 days ago
sampleXbro
AI & Automation Listed

context-engineering

Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

2 Updated today
LLl0k0laD
AI & Automation Listed

context-engineering

Engineer what goes into the LLM context window — system prompts, retrieved docs, tool schemas, conversation history, memory, examples. Apply the four operations write/select/compress/isolate to manage context as a finite resource. Enforce the 40% rule on context utilization. Use whenever the user is designing system prompts, debugging quality degradation in long conversations, hitting context limits, managing per-step retrieval, dealing with sub-agent context isolation, or asking about "context engineering" / "prompt engineering" / CLAUDE.md / AGENTS.md / instruction files.

5 Updated today
AlexDuchDev
AI & Automation Listed

context-engineering

Master the four operations of context engineering — Write, Select, Compress, Isolate. Manage token budgets, compaction strategies, and context partitioning to keep AI sessions sharp and efficient.

2,259 Updated 4 days ago
rohitg00