context-engineering

context-engineering is a skill for Claude Code, Codex from trinhhaox/ag-kit. It costs 27 tokens per session (1,088 once invoked), scanned A, original, no licence file.

A guide to managing the information supplied to a language model during an AI interaction.

In plain words
What is it for?
Planning context budgets, compressing information, loading material progressively, and retrieving relevant content with RAG, a method for looking up supporting information when needed.
Why use it?
It helps keep useful details within the model's limited context window while reducing unnecessary input.

Skill for Claude CodeCodex

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/trinhhaox/ag-kit/context-engineering
Any agent
npx skills add trinhhaox/ag-kit --skill context-engineering
Clone the repo
git clone --depth 1 https://github.com/trinhhaox/ag-kit

Made for: Claude Code, Codex.

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/trinhhaox/ag-kit/context-engineering.svg)](https://agentmods.dev/skills/trinhhaox/ag-kit/context-engineering)
Your own site
<a href="https://agentmods.dev/skills/trinhhaox/ag-kit/context-engineering"><img src="https://agentmods.dev/badge/skills/trinhhaox/ag-kit/context-engineering.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,088 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00027 $0.01088
Opus 5 $0.00014 $0.00544
Sonnet 5 $0.00005 $0.00218
Haiku 4.5 $0.00003 $0.00109

Measured 3d ago against content hash 9bf922c9f26e, 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 3d 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 · 159 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 3d ago First seen · 159 lines · 27 tokens per session scan A 9bf922c9f26e

Subscribe to this mod's changes

context-engineering is a skill published in the GitHub repository trinhhaox/ag-kit (1 stars, last pushed 28d ago), with no licence file. It adds 27 tokens to every session and 1,088 once invoked, about $0.0001 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

firstsun-harness

Build, audit, and improve harnesses that make AI coding agents reliable: AGENTS.md/CLAUDE.md instruction files, feature/state tracking, verification gates, scope boundaries, session lifecycle, memory persistence, context budgets, tool-permission safety, and multi-agent coordination. Use this whenever a coding agent is…

firstsun-dev/skills · 141 tokens

autonomous-project-manager

This is the 'Master Blueprint' for long-running autonomous tasks. Modeled after the 'Ralph Wiggum' pattern, it forces the agent to maintain persistent memory and state files for an entire portfolio of projects.

akhilkannur/marketing-agent-blueprints · 49 tokens

context-budget

Audits Gemini CLI context window consumption across agents, skills, MCP servers, and rules. Identifies bloat, redundant components, and produces prioritized token-savings recommendations.

Jamkris/everything-gemini-code · 37 tokens

pick-a-pii-model

Select an on-device OpenMed PII model from the committed registry by language, runtime format, and size budget, then require recall validation before deployment. Use when an agent must choose a local PII detector for CPU, Apple Silicon, or a mobile export without relying on live model discovery.

maziyarpanahi/openmed · 64 tokens

moai-foundation-core

Provides MoAI-ADK foundational principles including TRUST 5 quality framework, SPEC-First DDD methodology, delegation patterns, progressive disclosure, agent catalog reference, and token budget management (absorbed from moai-foundation-context). Use when referencing TRUST 5 gates, SPEC workflow, or context window…

modu-ai/moai-adk · 68 tokens

system-design-estimation

Compute defensible capacity numbers before architecture: average and peak QPS, storage growth, bandwidth, working-set memory, latency and availability budgets. Use when sizing a service, provisioning infrastructure, or checking that a design survives peak load.

HoangNguyen0403/agent-skills-standard · 51 tokens