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.
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-engineeringRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/addyosmani/agent-skills /tmp/agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agent-skills/skills/context-engineering ~/.gemini/antigravity-cli/skills/context-engineeringAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install context-engineering in Antigravity CLI
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
ANo 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 →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
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.
