# context-engineering

> Claude/Codex skill by [@rohitg00](https://omgskills.com/library/rohitg00/index.md) · 2.9k stars · Updated 2026-09-29

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.

Tags: agent-orchestration, ai-agents, ai-coding, ai-workflow, claude, claude-code, claude-code-plugin, claude-code-skills, claude-skills, codex, context-engineering, cursor, developer-tools, gemini-cli, hooks, productivity, self-correction, workflow, worktrees

## Install

```sh
git clone https://github.com/rohitg00/pro-workflow /tmp/pro-workflow && ln -s /tmp/pro-workflow/skills/context-engineering ~/.claude/skills/context-engineering
```

## From README

Context Engineering Four operations control everything about how context flows through an AI coding session. Master them and you control the quality of every response. The Four Operations Write — Persist Info Outside Context Move information out of the context window into durable storage so it survives compaction and session boundaries. Where to write: | Target | When | Example | |--------|------|---------| | CLAUDE.md | Permanent project rules | "Always use pnpm, never npm" | | NOTES.md / scratchpad | Working state for current task | Architecture decisions, open questions | | .claude/memory/ | Learnings and patterns | \[LEARN\] rules from corrections | | External files | Data too large for context | Test plans, migration checklists | Pattern — Scratchpad workflow: Select — Retrieve Relevant Info Pull the right information into context at the right time. Precision matters more than volume.

## Links

- HTML page: https://omgskills.com/library/rohitg00/pro-workflow/skills/context-engineering/
- GitHub: https://github.com/rohitg00/pro-workflow
- Author: [@rohitg00](https://omgskills.com/library/rohitg00/index.md)

## More from this repo

- [auto-setup](https://omgskills.com/library/rohitg00/pro-workflow/skills/auto-setup/index.md) — Auto-configure quality gates, hooks, and settings for a new project.
   - [@rohitg00](https://omgskills.com/library/rohitg00/index.md) · 2.8k stars
- [batch-orchestration](https://omgskills.com/library/rohitg00/pro-workflow/skills/batch-orchestration/index.md) — Decompose large-scale changes into independent units and spawn parallel agents in isolated worktrees.
   - [@rohitg00](https://omgskills.com/library/rohitg00/index.md) · 2.8k stars
- [bug-capture](https://omgskills.com/library/rohitg00/pro-workflow/skills/bug-capture/index.md) — Capture a user-reported defect as a durable GitHub issue written in the project's own domain language.
   - [@rohitg00](https://omgskills.com/library/rohitg00/index.md) · 2.8k stars
