Skills for Real Engineers. Straight from my .agents directory.
context-engineering
Agent skill fromaddyosmani/agent-skills
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.
How to install context-engineering
npx skills add addyosmani/agent-skills# or add only this skill to Claude Code: copy the folder
skills/context-engineering/
# into
~/.claude/skills/context-engineering/ (all projects)
.claude/skills/context-engineering/ (one project)
1# Context Engineering23## Overview45Feed 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.67## When to Use89- Starting a new coding session10- Agent output quality is declining (wrong patterns, hallucinated APIs, ignoring conventions)11- Switching between different parts of a codebase12- Setting up a new project for AI-assisted development13- The agent is not following project conventions1415## The Context Hierarchy1617Structure context from most persistent to most transient:1819```20┌─────────────────────────────────────┐21│ 1. Rules Files (CLAUDE.md, etc.) │ ← Always loaded, project-wide22├─────────────────────────────────────┤23│ 2. Spec / Architecture Docs │ ← Loaded per feature/session24├─────────────────────────────────────┤25│ 3. Relevant Source Files │ ← Loaded per task26├─────────────────────────────────────┤27│ 4. Error Output / Test Results │ ← Loaded per iteration28├─────────────────────────────────────┤29│ 5. Conversation History │ ← Accumulates, compacts30└─────────────────────────────────────┘31```3233### Level 1: Rules Files3435Create a rules file that persists across sessions. This is the highest-leverage context you can provide.3637**CLAUDE.md** (for Claude Code):38```markdown39# Project: [Name]40…
Excerpt shown under the repository's MIT license.
More skills in agent-skills
- ▸api-and-interface-design
- ▸browser-testing-with-devtools
- ▸ci-cd-and-automation
- ▸code-review-and-quality
- ▸code-simplification
- ▸constraint-driven-development
- ▸debugging-and-error-recovery
- ▸deprecation-and-migration
- ▸documentation-and-adrs
- ▸doubt-driven-development
- ▸frontend-ui-engineering
- ▸git-workflow-and-versioning
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
