c/agents › command
0votes

Context engineering (Addy Osmani)

SkillLow risk
submitted by CommandVault editors to c/agents

Sets up what an agent sees so its output stays accurate and focused.

Describes a context hierarchy: rules files, specs and architecture notes, relevant source files, error output and conversation management. It gives a rules-file template and packing strategies such as a brain dump, a selective include and a hierarchical project map, plus advice on managing the context budget and when to restart a session. Use it at the start of a project, when switching tasks or when output quality drops.

Try asking:

  • "Write a CLAUDE.md for this repo following the context hierarchy"
  • "The agent keeps losing track in this long session. Help me restructure context"
  • "Build a project map so the agent can find the right files"

Source: addyosmani/agent-skills · MIT · by Addy Osmani

0 commentsreport

Install this skill

Agent Skills are folders with a SKILL.md file. Most AI coding tools load them automatically when a task matches the description. Tip: .agents/skills/ is read by Codex, Cursor, Copilot, Gemini CLI, Grok and Windsurf.

One command
npx commandvault add context-engineering-addy-osmani-b3b5784d --tool claude
Easiest: install as a Claude Code plugin (stays up to date)
/plugin marketplace add addyosmani/agent-skills
/plugin install agent-skills@addy-agent-skills
Install (run in your project folder)
mkdir -p .claude/skills/context-engineering && curl -fsSL https://raw.githubusercontent.com/addyosmani/agent-skills/main/skills/context-engineering/SKILL.md -o .claude/skills/context-engineering/SKILL.md

Use it: Claude uses it automatically when a task matches, or type /context-engineering.

From Claude Code's docs , checked Oct 17, 2026.

Made by Addy Osmani, MIT license. Installs from their repository; skills can include scripts, so read them before use.

In the Claude apps, zip the folder and upload it under Settings → Capabilities → Skills.

Use this file with your AI tool

Each tool reads project instructions from a different file name. Fill in the blanks above, then save it where your tool looks.

One command
npx commandvault add context-engineering-addy-osmani-b3b5784d --tool claude
Save as CLAUDE.md
Describes a context hierarchy: rules files, specs and architecture notes, relevant source files, error output and conversation management. It gives a rules-file template and packing strategies such as a brain dump, a selective include and a hierarchical project map, plus advice on managing the context budget and when to restart a session. Use it at the start of a project, when switching tasks or when output quality drops.

**Try asking:**
- "Write a CLAUDE.md for this repo following the context hierarchy"
- "The agent keeps losing track in this long session. Help me restructure context"
- "Build a project map so the agent can find the right files"

**Source:** [addyosmani/agent-skills](https://github.com/addyosmani/agent-skills/tree/HEAD/skills/context-engineering) · MIT · by Addy Osmani

Use it: Claude Code loads it at the start of every session. Check with /context (Memory files).

From Claude Code's docs , checked Oct 17, 2026.

More from c/agents

See all of c/agents →
0 comments

Log in to join the discussion.