Context Engineering Review logo

Context Engineering Review

CommunityPopular
mohitagw15856
context-engineering-review

Review what an LLM feature or agent actually puts in its context window — and find what's bloating, missing, or fighting itself. Use when asked to review a system prompt and context assembly, cut token usage without losing quality, debug an agent that ignores instructions, or audit how retrieval results, history, and tool definitions are packed into the window. Produces a context inventory with a keep/cut/restructure verdict per component, ordering and caching fixes, and a token budget. For wording-level prompt tuning use prompt-optimizer.

Overview

Publishermohitagw15856
Repositorypm-claude-skills
Skill namecontext-engineering-review
Stars
1.4K
Forks
257
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by mohitagw15856 on GitHub. Read the source before you install it.

Installation

Install the Context Engineering Review AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/mohitagw15856/pm-claude-skills/tree/main/plugins/pm-agentops/skills/context-engineering-review
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mohitagw15856/pm-claude-skills.git /tmp/pm-claude-skills
mkdir -p .claude/skills
cp -r /tmp/pm-claude-skills/plugins/pm-agentops/skills/context-engineering-review .claude/skills/context-engineering-review
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Context Engineering Review in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Context Engineering Review on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Context Engineering Review is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Context Engineering Review Skill

Most agent failures aren't model failures — they're context failures: instructions buried under retrieval dumps, stale history contradicting fresh facts, twelve tool definitions the task never needed. This skill audits the assembled window, not just the prompt text.

What This Skill Produces

  • A context inventory: every component in the window, its size, and who put it there
  • A keep / cut / restructure verdict per component, with the reasoning
  • Ordering and cache-alignment fixes (stable prefix first, volatile content last)
  • A token budget per component with an enforcement point

Required Inputs

Ask for (if not already provided):

  • A real assembled context — an actual logged request (system prompt + messages + tools), not the template. If only the template exists, review that but flag that dynamic bloat is invisible
  • The failure or goal — ignoring instructions? too expensive? inconsistent? slow?
  • What varies per request (retrieval, history, user data) vs. what is static
  • The model and its context limit, and current typical request size

Review Method

1. Inventory. List every component in window order: system prompt sections, tool definitions, retrieved documents, conversation history, few-shot examples, injected state. For each: token count (estimate if unlogged), static vs. dynamic, and owner.

2. Interrogate each component:

  • Earning its tokens? Would removing it change outputs on real traffic? The honest test is ablation, not intuition.
  • Right form? Raw dumps (full HTML, whole files, unabridged history) almost always beat down to summaries, excerpts, or references the agent can expand via a tool.
  • Right position? Instructions that must win go in the system prompt; volatile data goes late; nothing critical hides in the middle of a long window.
  • Fighting anything? Contradictions between sections (persona says terse, examples are verbose; old history asserts what retrieval now refutes) are the classic "ignores instructions" root cause.

3. Check the structural patterns:

  • Cache alignment — a byte-stable prefix (system prompt, tools) with per-request content after it; anything dynamic inside the prefix (timestamps, user names) breaks caching every request.
  • Tool sprawl — tools the task can't need this turn dilute selection accuracy; load narrow toolsets per task or defer rarely-used schemas.
  • History policy — unbounded transcripts are the top silent cost driver; define truncation/summarisation and what must survive it.
  • Retrieval discipline — cap chunks by relevance score, not by k; label each chunk's source so the model can weigh it.

4. Budget. Assign each component a token ceiling that sums comfortably under the limit at p95, and name where it's enforced (the assembly code, not hope).

Output Format

Context Engineering Review: [feature/agent]

Reviewed: [a real request from date / the template]. Current size: [n] tokens typical, [n] p95, limit [n].

#ComponentTokensStatic?VerdictFix
1[system: persona]✓Keep—
2[12 tool defs]✓Restructure[narrow per task]
3[retrieval, k=20]dynCut to k≤8 by score

Conflicts found: [each contradiction and which side should win]

Ordering / caching: [the reordered layout; what moves out of the stable prefix]

Token budget: [component → ceiling; enforcement point]. Projected size: [n] (−[x]%).

Verify: re-run [the eval suite / golden cases] after changes — cuts must be validated, not assumed safe (see prompt-regression-suite).

Quality Checks

  • The review used at least one real assembled request, or explicitly flags it could not
  • Every verdict has a reason tied to the stated failure/goal, not generic advice
  • Cache-breaking dynamic content in the stable prefix is called out with its cost
  • The token budget sums under the model limit at p95 including output headroom
  • Recommended cuts come with a validation step before they ship

Anti-Patterns

  • Do not review the prompt template and call it a context review — the bloat lives in the dynamic parts
  • Do not recommend "shorten everything" — cutting the wrong 200 tokens costs more than keeping 2,000 idle ones
  • Do not leave contradictions in place because each section "is fine alone" — the window is read as one document
  • Do not treat more retrieval as more grounding — irrelevant chunks actively mislead
  • Do not propose structure the assembly code can't enforce — a budget without an enforcement point is a wish

Example Trigger Phrases

  • "Review a system prompt and context assembly."
  • "Cut token usage without losing quality."
  • "Debug an agent that ignores instructions."
  • "Audit how retrieval results."

Frequently asked questions

What does the Context Engineering Review AI skill do?

Review what an LLM feature or agent actually puts in its context window — and find what's bloating, missing, or fighting itself. Use when asked to review a system prompt and context assembly, cut token usage without losing quality, debug an agent that ignores instructions, or audit how retrieval results, history, and tool definitions are packed into the window. Produces a context inventory with a keep/cut/restructure verdict per component, ordering and caching fixes, and a token budget. For wording-level prompt tuning use prompt-optimizer.

Why use Context Engineering Review on TypingMind?

Because you install it once and use it with any model. Context Engineering Review is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Context Engineering Review in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mohitagw15856/pm-claude-skills/tree/main/plugins/pm-agentops/skills/context-engineering-review. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Context Engineering Review?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Context Engineering Review?

As many as you like. As long as a model supports skills, you can use Context Engineering Review with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Context Engineering Review AI skill free?

Yes. It is published on GitHub by mohitagw15856 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇