Context Engineering Fundamentals
A principles skill for managing attention and evidence so long agent sessions stop dropping instructions.
Dev & CodingIntermediate★ 368⑂ 64AI score 9/10Last updated: Aug 21, 2026
What it does
Helps you diagnose and counter context quality decay in long conversations and multi-agent setups.
- Five degradation patterns: lost-in-middle, context poisoning, distraction, confusion, and clash — each with a concrete mitigation.
- Symptom-to-cause table: maps behaviors like "ignores earlier instructions" or "gets progressively worse" back to a likely root cause.
- Measure before compressing: rejects fixed token thresholds and asks you to test retrieval quality at several evidence positions on your own model and task.
- Four strategies: write state externally (path agreed with the user, ideally a gitignored scratch file), select context carefully, compress strategically, and isolate contexts via subagents.
Who it's for
- Developers running long refactor or investigation sessions where early rules get forgotten
- Anyone designing subagents or multi-step agent pipelines
- Researchers and PMs who want measurable agent-quality improvements
Examples
- Diagnosing dropped rules: after two hours the code style constraints are ignored; you identify lost-in-middle and restate critical constraints at both the start and end.
- Navigating a big codebase: instead of "here are all 50 files, find the bug," narrow it to the 3 files involved in the error.
- Resuming long work: log each major step to an agreed, gitignored PROGRESS.md and read it back at the start of the next session to restore state.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/jamditis/claude-skills-journalism/HEAD/dev-toolkit/skills/context-engineering-fundamentals/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the dev-toolkit/skills/context-engineering-fundamentals folder from the GitHub repo jamditis/claude-skills-journalism into my ~/.claude/skills/context-engineering-fundamentals/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/jamditis/claude-skills-journalism.git && mkdir -p ~/.claude/skills && cp -r claude-skills-journalism/dev-toolkit/skills/context-engineering-fundamentals ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/jamditis/claude-skills-journalism.git - Create the skills directory if needed:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r claude-skills-journalism/dev-toolkit/skills/context-engineering-fundamentals ~/.claude/skills/ - Restart Claude Code and confirm the skill appears in your skills list.
- Trigger it by saying something like "this session is long and Claude keeps ignoring my earlier instructions."
View source on GitHub ↗License: MIT