context-engineering

context-engineering is a skill for Claude Code, Codex from atuljha23/holocron. It costs 49 tokens per session (516 once invoked), scanned A, original, MIT.

A method for managing the information an AI coding agent keeps available during a task. It covers saving important notes, loading only relevant files, shortening old conversation history, and separating research into smaller tasks.

In plain words
What is it for?
Use it during long tasks, when the conversation is crowded, when the agent starts drifting, or before handing work to another agent.
Why use it?
Long conversations and large codebases can make an agent lose track of decisions or important details. This method helps keep its working information focused and recoverable.

Skill for Claude CodeCodex

Part of the holocron plugin — 11 skills, 24 commands, 14 agents, 6 hooks shipped together

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.

agentmods
npx agentmods add skills/atuljha23/holocron/context-engineering
Any agent
npx skills add atuljha23/holocron --skill context-engineering
Clone the repo
git clone --depth 1 https://github.com/atuljha23/holocron

Made for: Claude Code, Codex.

Or install holocron, the plugin that ships this one along with the rest of its 11 skills, 24 commands, 14 agents, 6 hooks.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/atuljha23/holocron/context-engineering.svg)](https://agentmods.dev/skills/atuljha23/holocron/context-engineering)
Your own site
<a href="https://agentmods.dev/skills/atuljha23/holocron/context-engineering"><img src="https://agentmods.dev/badge/skills/atuljha23/holocron/context-engineering.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 516 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00049 $0.00516
Opus 5 $0.00024 $0.00258
Sonnet 5 $0.00010 $0.00103
Haiku 4.5 $0.00005 $0.00052

Measured 4d ago against content hash c2e077d9e1d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

context-engineering 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 4d 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.

skills/context-engineering/SKILL.md · 38 lines

What it actually says

Context engineering

Your context window is a working set. Like any working set, it has limits, and the cost of a bad one compounds.

The four moves

  1. Write — commit durable info out of the transcript and into files the model can re-read later. Plans, decisions, learnings, todos. Don't leave them floating in chat.
  2. Select — load exactly what you need for the current step. Not the whole repo. The specific files that matter for the specific change.
  3. Compress — summarize old transcript turns into one line each, and offload details to files. After a long debugging arc: one paragraph of "what we tried and what happened" beats 30 turns of blow-by-blow.
  4. Isolate — delegate sub-problems to subagents so their discovery doesn't pollute the main context. Research-heavy exploration → Explore agent. Review → code-reviewer agent.

Practical heuristics

  • Hot > cold. Keep recent decisions, current plan, and the ~3 files you're actively editing in context. Everything else can be retrieved.
  • References, not contents. "See docs/adr/0007-queue.md" beats pasting 400 lines of ADR.
  • One plan, one place. If the plan is in context AND in a file, they'll drift. Canonicalize in the file; reference from context.
  • Invalidate explicitly. When a decision changes, say so. "We said X, now we're doing Y because Z." Don't let old assumptions linger.

Smells that say "you've lost the plot"

  • The model repeats analysis you already gave it
  • Transcript is >50 turns and you don't remember what turn 10 decided
  • You're answering the same question for a second time
  • The model confidently contradicts itself

Act on the smell. Use /holocron:handoff to write a durable doc and start fresh.

  • /holocron:handoff — persist state before compaction
  • /holocron:learn — persist rules for future sessions
  • /holocron:plan — write the plan to a file rather than carry it in chat
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. 4d ago First seen · 38 lines · 49 tokens per session scan A c2e077d9e1d2

Subscribe to this mod's changes

context-engineering is a skill published in the GitHub repository atuljha23/holocron (2 stars, last pushed 4mo ago), licensed MIT. It adds 49 tokens to every session and 516 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-31.

Related

Other skills, from other repositories

context-optimizer

Optimize token usage and context management. Use when sessions feel slow, context is degraded, or you're running out of budget.

rohitg00/pro-workflow · 28 tokens

insights

Show session analytics, learning patterns, correction trends, heatmaps, and productivity metrics. Computes stats from project memory and session history. Use when asking for stats, statistics, progress, how am I doing, coding history, or dashboard.

rohitg00/pro-workflow · 50 tokens

replay-learnings

Surface past learnings relevant to the current task before starting work. Searches correction history, recalls past mistakes, and applies prior patterns. Use when starting a task, saying "what do I know about", "previous mistakes", "lessons learned", or "remind me about".

rohitg00/pro-workflow · 61 tokens

systems-programming

Systems programming from memory management through networking. Covers memory models (stack vs heap, manual allocation, garbage collection, ownership/borrowing), concurrency (threads, mutexes, channels, async/await, actor model, data races vs race conditions), operating system concepts (processes, virtual memory, page…

Tibsfox/gsd-skill-creator · 154 tokens

microcontroller-firmware

Embedded firmware development for microcontrollers including memory-mapped I/O, GPIO, interrupts, timers, UART/SPI/I2C serial protocols, PWM generation, ADC sampling, interrupt-driven versus polled architectures, RTOS fundamentals, and the bring-up sequence from power-on reset through first printf. Covers AVR/Arduino…

Tibsfox/gsd-skill-creator · 96 tokens

language-learning-strategies

Meta-cognitive and practical strategies for learning any language -- learner autonomy, goal setting, strategy taxonomy (Oxford's SILL framework), memory strategies, cognitive strategies (note-taking, summarizing, analyzing, reasoning), compensation strategies, metacognitive strategies (planning, monitoring…

Tibsfox/gsd-skill-creator · 126 tokens