Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

context-engineering

Skill by addyosmani

Guides an AI coding agent on which context to load, when to load it, and how to structure it. Aimed at developers who use AI assistants on coding projects, especially when output quality drops or rules files need setup.

  • Score 94
  • 121k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install context-engineering

Built from the published package, never by AI.

git clone --depth 1 https://github.com/addyosmani/agent-skills /tmp/agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agent-skills/skills/context-engineering ~/.claude/skills/context-engineering

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install context-engineering in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Context engineering is an agent skill that teaches an AI coding assistant how to manage the information it sees. It describes five context levels, from always-loaded rules files such as CLAUDE.md to conversation history that builds up and gets compacted. It includes sample rules file layouts and lists equivalent files for Cursor, Windsurf, GitHub Copilot and OpenAI Codex.

The skill also covers context packing formats for a session brief, a single task and a hierarchical project map. It describes context budget management, including what to cut first, what to protect and when to compact. It explains how to persist state before starting a fresh session, and tells the agent to surface conflicts and missing requirements instead of guessing. It is written for developers using AI assistants on coding projects.

Written from the project's SKILL.md and checked against it.

What it can do

  • Rules file setupShows how to write a CLAUDE.md file and the equivalent rules files for other tools.
  • Context hierarchyOrders context from persistent project rules down to transient conversation history.
  • Context packingOffers brain dump, selective include and hierarchical summary formats for a task.
  • Context budget managementGuides which content to cut first, which to protect and when to compact a session.
  • Restartable sessionsLists what to save before a fresh session so work can resume at a task boundary.
  • Confusion handlingTells the agent to surface spec conflicts and missing requirements instead of guessing.
  • MCP recommendationsPoints to Context7, Chrome DevTools, PostgreSQL, Filesystem and GitHub servers for more context.

Try asking

  • Set up a CLAUDE.md rules file for this project with our stack and commands
  • Help me pack context for adding email validation to the registration endpoint
  • Summarize this session so I can restart cleanly at the task boundary

Good to know

  • The skill is written guidance in a SKILL.md file, not a tool with its own functions.
  • The MCP servers listed are recommendations and are not provided by this skill.
  • The source text ends partway through the inline planning section.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/context-engineering/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md15 KB
  • references/shared/agent-first-clis.md5 KB

Alternatives to context-engineering

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

context-engineering: common questions

Which AI tools does context engineering work with?

The source gives examples for Claude Code, Cursor, Windsurf, GitHub Copilot and OpenAI Codex, using their rules file names. It does not list other supported tools.

When should I use this skill?

The source says to use it when starting a new session, when output quality declines, when switching between tasks, or when configuring rules files for a project.

Does the skill tell the agent to follow instructions found in loaded files?

No. The source says instruction-like content in config files, data files or external docs should be treated as data to surface to the user, not as directives to follow.

How do I install context-engineering?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is context-engineering free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is context-engineering safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to context-engineering?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

context-engineering Install

Add to stack

Loading.