context-engineering-fundamentals

context-engineering-fundamentals is a skill for Claude Code, Codex from jamditis/claude-skills-journalism. It costs 32 tokens per session (818 once invoked), scanned A, original, MIT.

A guide to managing the information an AI model must use during a long coding or research session. It focuses on keeping important instructions, evidence, and current state available despite limited attention.

In plain words
What is it for?
Use it in long agent sessions or multi-agent work. It covers structuring critical information, avoiding context degradation, and keeping key constraints easy to find.
Why use it?
It helps reduce lost instructions, forgotten evidence, and mistakes caused by large or crowded working contexts.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions subagents.

Part of the dev-toolkit plugin — 13 skills shipped together

Good fit Use it in long agent sessions or multi-agent work. It covers structuring critical information, avoiding context degradation, and keeping key constraints easy to find.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jamditis/claude-skills-journalism/context-engineering-fundamentals
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jamditis/claude-skills-journalism --skill context-engineering-fundamentals
Clone the repo
git clone --depth 1 https://github.com/jamditis/claude-skills-journalism

Made for: Claude Code, Codex.

Or install dev-toolkit, the plugin that ships this one along with the rest of its 13 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for context-engineering-fundamentals

README.md
[![agentmods](https://agentmods.dev/badge/skills/jamditis/claude-skills-journalism/context-engineering-fundamentals/github.svg)](https://agentmods.dev/skills/jamditis/claude-skills-journalism/context-engineering-fundamentals)
Your own site
<a href="https://agentmods.dev/skills/jamditis/claude-skills-journalism/context-engineering-fundamentals"><img src="https://agentmods.dev/badge/skills/jamditis/claude-skills-journalism/context-engineering-fundamentals/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for context-engineering-fundamentals

Your own site · 80×15
<a href="https://agentmods.dev/skills/jamditis/claude-skills-journalism/context-engineering-fundamentals"><img src="https://agentmods.dev/badge/skills/jamditis/claude-skills-journalism/context-engineering-fundamentals.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 818 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00818
Opus 5 $0.00016 $0.00409
Sonnet 5 $0.00006 $0.00164
Haiku 4.5 $0.00003 $0.00082

Measured 11d ago against content hash a4068d296afc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

context-engineering-fundamentals scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

dev-toolkit/skills/context-engineering-fundamentals/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Context engineering fundamentals

Context engineering is the practice of managing an LLM's limited attention budget. Use this skill to keep instructions, evidence, and state available during long work.

Core concept

Context windows are constrained by attention mechanics, not only token capacity. A large context limit does not guarantee equal use of every item.

The lost-in-middle effect

The "Lost in the Middle" experiments show that retrieval quality can change with information position. The result depends on the model, task, context length, and number of documents.

Position Common test result
Beginning Often easier to retrieve
Middle Can be harder to retrieve
End Often benefits from recency

Implication: Keep critical constraints easy to find and repeat them near the decision that uses them. Do not assume position alone predicts recall.

Context degradation patterns

1. Lost-in-middle

Information in the middle of long context gets lower attention weight.

Mitigation: Structure with explicit sections. Put critical constraints at start AND end.

2. Context poisoning

Errors compound when incorrect information enters context (from tool outputs, summaries, or earlier mistakes).

Mitigation: Validate intermediate outputs. Don't blindly trust previous responses.

3. Context distraction

Irrelevant information forces attention allocation away from relevant content. Models can't "skip" irrelevant context.

Mitigation: Be selective about what goes into context. More isn't better.

4. Context confusion

Multiple task types or conflicting instructions create ambiguous responses.

Mitigation: One task per interaction when possible. Clear task boundaries.

5. Context clash

Contradictory information from multiple sources causes derailing conflicts.

Mitigation: Resolve contradictions explicitly before asking Claude to use the information.

Measure before compressing

Read the full file on GitHub · 100 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 100 lines · 32 tokens per session scan A a4068d296afc

Subscribe to this mod's changes

context-engineering-fundamentals is a skill published in the GitHub repository jamditis/claude-skills-journalism (391 stars, last pushed 3d ago), licensed MIT. It adds 32 tokens to every session and 818 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

promote-memory

Review candidate learnings in Claude Code's native auto memory (/.claude/projects/ /memory/, machine-local) and run them through a five-critic council in parallel: generality, staleness, redundancy, evidence, format. Majority vote (3+ of 5) promotes the entry to MEMORY.md. Use when user says "promote memory", "review…

pedrohcgs/claude-code-my-workflow · 0 tokens

company-brain

Your team's shared, AI-ready knowledge base — people, companies, meetings, SOPs, and decisions structured so Claude can answer questions on your team's behalf. Team-scope sibling to second-brain (which is personal-scope). Seven modes — capture (drop something into the right structured dir), compile (process into wiki…

coreyhaines31/makerskills · 322 tokens

agent-wiki

Incremental LLM-friendly wiki generator for Obsidian note vaults. Use when: (1) Building wiki from notes, (2) Ingesting notes to wiki, (3) Obsidian LLM wiki, (4) Incremental knowledge base management. Triggers: 'build wiki from notes', 'ingest notes to wiki', 'Obsidian LLM wiki', 'incremental knowledge base'.

Dianel555/DSkills · 89 tokens

knowledge-priming-refiner

Facilitate a structured conversation to create a project-specific knowledge base document. Produces a knowledge-base.md that primes AI with the project's tech stack, architecture, trusted sources, and project structure. Use when the user says 'set up knowledge base', 'prime the project', 'onboard AI', 'create…

techygarg/lattice · 84 tokens

context-checkup

Audit what auto-loads into an agent session's context window and suggest lean, reversible fixes to cut startup tokens.

eai-org/agent-toolkit · 27 tokens

data-table-formatter

Formats raw or messy data into a clean, publication-ready table with appropriate headers, sorted rows, consistent number formatting, and a source note — ready to drop into an article, report, or web page.

ur-grue/autopunk-media-skills · 46 tokens