context-engineering-advisor
它能做什么
该技能审视一个感觉臃肿、脆弱或难以驾驭的 AI 工作流程,并解释原因。适用于向 AI 工具输入大量文档却得到不一致结果的产品经理和构建者。
适用场景
- ✓你提供了大量文档,AI 工作流程却仍给出不可靠的答案的时候。
- ✓你即将把整份文档或文字稿粘贴进 AI 工具的时候。
- ✓你希望为某个 AI 任务建立清晰的研究、计划、重置和实施循环的时候。
技能链接
https://github.com/deanpeters/Product-Manager-Skills/blob/main/skills/context-engineering-advisor/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们的支持智能体每次都要读取一份 40 页的政策文件。请诊断它为何不可靠,并说明如何修复。”
每周 5 个新技能,1 分钟读完。
工作原理
它会询问你向模型输入了什么,以及输出在哪里失败,然后建议一些步骤,例如把上下文限制在有界的范围内,只检索相关的部分。
技术内容(原始 SKILL.md)
作者在 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
常见问题
灌入文本与工程化有什么区别?
灌入假设文本越多结果越好。工程化则是塑造模型所见的内容,使其注意力集中在重要之处。
它涵盖提示词的措辞吗?
不涵盖。它关注的是 AI 所见信息的结构,而不是提示词的措辞。
主要的做法有哪些?
有界领域、分段式检索,以及研究、计划、重置、实施的循环。
详情
作者的原始描述
Diagnose context stuffing vs. context engineering. Use when an AI workflow feels bloated, brittle, or hard to steer reliably.
热度
- GitHub 星标
- 7.8k
- 排名
- #12764
- 许可证
- —
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquisition-channel-advisor
7.8k帮你的智能体用客户获取成本、客户终身价值和回本时间,判断某个营销渠道值得扩大、测试还是停止。
agent-orchestration-advisor
7.8k帮你的智能体把复杂的产品任务规划为多个并行工作的专业 AI 智能体,明确交接环节并进行监控。
ai-shaped-readiness-advisor
7.8k帮你的智能体判断产品团队是只用 AI 加速旧任务,还是已围绕 AI 重新设计工作,以及下一步该构建什么。
altitude-horizon-framework
7.8k通过“高度”和“视野”两个概念,解释从产品经理到总监的转变,并帮你找出摩擦的来源。