context-engineering-advisor
What it does
This skill reviews an AI workflow that feels bloated, brittle, or hard to steer, and explains why. It is for product managers and builders who feed large documents into AI tools and get inconsistent results.
When to use it
- ✓When your AI workflow keeps giving unreliable answers even though you supply lots of documents.
- ✓When you are about to paste a whole document or transcript into an AI tool.
- ✓When you want a clear research, plan, reset, and implement cycle for an AI task.
Skill link
https://github.com/deanpeters/Product-Manager-Skills/blob/main/skills/context-engineering-advisor/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Our support agent gets a 40-page policy every time. Diagnose why it is unreliable and how to fix it.”
5 new skills a week. 1 minute to read.
How it works
It asks what you feed the model and where the output fails, then recommends steps such as limiting context to bounded areas and retrieving only the relevant parts.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Purpose
Guide product managers through diagnosing whether they're doing context stuffing (jamming volume without intent) or context engineering (shaping structure for attention). Use this to identify context boundaries, fix "Context Hoarding Disorder," and implement tactical practices like bounded domains, episodic retrieval, and the Research→Plan→Reset→Implement cycle.
Key Distinction: Context stuffing assumes volume = quality ("paste the entire PRD"). Context engineering treats AI attention as a scarce resource and allocates it deliberately.
This is not about prompt writing—it's about designing the information architecture that grounds AI in reality without overwhelming it with noise.
Input
Works best with: A description of the AI workflow, agent, or prompt setup that feels bloated, brittle, or hard to steer. Also useful: What you've already stuffed into context (docs, transcripts, schemas) and where outputs go wrong.
Anything supplied with the invocation itself — text after the skill name, a pasted context dump, or an appended ARGUMENTS: line — counts as answers already given. Use it and skip whatever it covers; don't re-ask.
Arriving empty-handed? That works too. The advisor opens by asking what you're feeding the model today and what breaks.
Example invocation: Diagnose my setup: our support-triage agent gets the full 40-page policy manual per ticket and still misroutes edge cases.
Key Concepts
The Paradigm Shift: Parametric → Contextual Intelligence
The Fundamental Problem:
- LLMs have parametric knowledge (encoded during training) = static, outdated, non-attributable
- When asked about proprietary data, real-time info, or user preferences → forced to hallucinate or admit ignorance
- Context engineering bridges the gap between static training and dynamic reality
PM's Role Shift: From feature builder → architect of informational ecosystems that ground AI in reality
Context Stuffing vs. Context Engineering
| Dimension | Context Stuffing | Context Engineering |
|---|---|---|
| Mindset | Volume = quality | Structure = quality |
| Approach | "Add everything just in case" | "What decision am I making?" |
| Persistence | Persist all context | Retrieve with intent |
| Agent Chains | Share everything between agents | Bounded context per agent |
| Failure Response | Retry until it works | Fix the structure |
| Economic Model | Context as storage | Context as attention (scarce resource) |
Critical Metaphor: Context stuffing is like bringing your entire file cabinet to a meeting. Context engineering is bringing only the 3 documents relevant to today's decision.
The Anti-Pattern: Context Stuffing
Five Markers of Context Stuffing:
- Reflexively expanding context windows — "Just add more tokens!"
- Persisting everything "just in case" — No clear retention criteria
- Chaining agents without boundaries — Agent A passes everything to Agent B to Agent C
- Adding evaluations to mask inconsistency — "We'll just retry until it's right"
- Normalized retries — "It works if you run it 3 times" becomes acceptable
Why It Fails:
- Reasoning Noise: Thousands of irrelevant files compete for attention, degrading multi-hop logic
- Context Rot: Dead ends, past errors, irrelevant data accumulate → goal drift
- Lost in the Middle: Models prioritize beginning (primacy) and end (recency), ignore middle
- Economic Waste: Every query becomes expensive without accuracy gains
- Quantitative Degradation: Accuracy drops below 20% when context exceeds ~32k tokens
The Hidden Costs:
- Escalating token consumption
- Diluted attention across irrelevant material
- Reduced output confidence
- Cascading retries that waste time and money
Real Context Engineering: Core Principles
Five Foundational Principles:
- Context without shape becomes noise
- Structure > Volume
- Retrieve with intent, not completeness
- Small working contexts (like short-term memory)
- Context Compaction: Maximize density of relevant information per token
Quantitative Framework:
Efficiency = (Accuracy × Coherence) / (Tokens × Latency)
Key Finding: Using RAG with 25% of available tokens preserves 95% accuracy while significantly reducing latency and cost.
The 5 Diagnostic Questions (Detect Context
FAQ
What is the difference between stuffing and engineering?
Stuffing assumes more text means better results. Engineering shapes what the model sees so its attention goes to what matters.
Does it cover prompt wording?
No. It is about the structure of the information the AI sees, not the wording of prompts.
What are the main practices?
Bounded domains, episodic retrieval, and a Research, Plan, Reset, Implement cycle.
Details
Original description by the author
Diagnose context stuffing vs. context engineering. Use when an AI workflow feels bloated, brittle, or hard to steer reliably.
Popularity
- GitHub stars
- 7.8k
- Ranking position
- #12764
- License
- —
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
acquisition-channel-advisor
7.8kHelps your agent judge whether a marketing channel is worth scaling, testing, or stopping, using customer acquisition cost, lifetime value, and payback time.
agent-orchestration-advisor
7.8kHelps your agent plan a complex product task as several specialized AI agents working in parallel, with clear hand-offs and monitoring.
ai-shaped-readiness-advisor
7.8kHelps your agent check whether your product team only uses AI to speed up old tasks, or has redesigned its work around AI, and what to build next.
altitude-horizon-framework
7.8kExplains the shift from product manager to director through two ideas, altitude and horizon, and helps you find where your friction comes from.
Similar skills
writing-skills
311kTeaches your agent to write new skills and test each one first, checking that the skill actually changes how the agent behaves.
writing-for-agents
310kExplains how to write clear instructions for AI agents, including skills, AGENTS.md, and CLAUDE.md files, so the agent behaves predictably.
bengali-nlp
280kHas your agent process Bengali text. It helps understand and work with the language, normalizing text and handling its unique characteristics.