rohitg00 avatar

Context Engineering

You know how AI sessions start sharp and then gradually turn into mush as context fills up? This gives you the actual operations to prevent that: write critical state to files so it survives compaction, select with surgical precision instead of dumping whole modules, compress at task boundaries before you hit 95% and lose coherence, and isolate heavy work to subagents so your main session stays clean. The token budget breakdowns are practical, the compaction triggers make sense, and the anti-patterns section will save you from the grep-then-read-entire-file mistake everyone makes. Basically the missing manual for keeping Claude sharp across long sessions.

skills.sh installs
171
GitHub stars
2.9K
last updated
Jun 8, 2026

Install

$ npx -y skills add rohitg00/pro-workflow --skill context-engineering --agent claude-code

Installs into .claude/skills of the current project.

Files

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

1. 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:

TargetWhenExample
CLAUDE.mdPermanent project rules"Always use pnpm, never npm"
NOTES.md / scratchpadWorking state for current taskArchitecture decisions, open questions
.claude/memory/Learnings and patterns[LEARN] rules from corrections
External filesData too large for contextTest plans, migration checklists

Pattern — Scratchpad workflow:

1. Start complex task → create NOTES.md with goals and constraints
2. After research → write findings to NOTES.md
3. After compaction → NOTES.md survives, context does not
4. Resume → read NOTES.md to recover full state

2. Select — Retrieve Relevant Info

Pull the right information into context at the right time. Precision matters more than volume.

Sponsors

Details

Repository
github.com/rohitg00/pro-workflow
Category
Automation & Workflows
First seen
Jun 11, 2026

More from rohitg00/pro-workflow

All 35
1rohitg00 avatarmcp-auditrohitg00/pro-workflowAudit connected MCP servers for token overhead, redundancy, and security. Use when sessions feel slow or before adding new MCPs.169skills.sh installs
2cloudai-x avatardevops-infrastructurecloudai-x/claude-workflow-v2Guides Docker, CI/CD pipelines, deployment strategies, infrastructure as code, and observability setup. Use when writing Dockerfiles, configuring GitHub Actions166skills.sh installs
3rohitg00 avatarthoroughness-scoringrohitg00/pro-workflowScore every decision point with a Thoroughness Rating (1-10). AI makes the marginal cost of doing things properly near-zero — pick the higher-rated option every166skills.sh installs
4rohitg00 avatarauto-setuprohitg00/pro-workflowAuto-configure quality gates, hooks, and settings for a new project. Detects project type and sets up appropriate tooling. Use when onboarding a new codebase.165skills.sh installs
5rohitg00 avatarfile-watcherrohitg00/pro-workflowConfigure file watching hooks to auto-react to config changes, env file updates, and dependency modifications. Use to set up reactive workflows.165skills.sh installs
6rohitg00 avatarsafe-moderohitg00/pro-workflowEnforce directory lockdown when active164skills.sh installs