context-engineering-advisor

deanpeters/product-manager-skills · updated Apr 8, 2026

MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.

$npx skills add https://github.com/deanpeters/product-manager-skills --skill context-engineering-advisor
0 commentsdiscussion
summary

Diagnose whether your AI workflows are context stuffing or context engineering, then implement structured practices to improve output quality.

  • Distinguishes between context stuffing (volume-based) and context engineering (structure-based), with five diagnostic questions to identify Context Hoarding Disorder
  • Guides two-layer memory architecture: short-term conversational memory plus long-term persistent memory via vector databases for semantic retrieval
  • Implements the Research→Plan→Re
skill.md

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.

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:

  1. Reflexively expanding context windows — "Just add more tokens!"
  2. Persisting everything "just in case" — No clear retention criteria
  3. Chaining agents without boundaries — Agent A passes everything to Agent B to Agent C
  4. Adding evaluations to mask inconsistency — "We'll just retry until it's right"
  5. 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:

  1. Context without shape becomes noise
  2. Structure > Volume
  3. Retrieve with intent, not completeness
  4. Small working contexts (like short-term memory)
  5. 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 Hoarding Disorder)

Ask these to identify context stuffing:

  1. What specific decision does this support? — If you can't answer, you don't need it
  2. Can retrieval replace persistence? — Just-in-time beats always-available
  3. Who owns the context boundary? — If no one, it'll grow forever
  4. What fails if we exclude this? — If nothing breaks, delete it
  5. Are we fixing structure or avoiding it? — Stuffing context often masks bad information architecture

Memory Architecture: Two-Layer System

Short-Term (Conversational) Memory:

  • Immediate interaction history for follow-up questions
  • Challenge: Space management → older parts summarized or truncated
  • Lifespan: Single session

Long-Term (Persistent) Memory:

  • User preferences, key facts across sessions → deep personalization
  • Implemented via vector database (semantic retrieval)
  • Two types:
    • Declarative Memory: Facts ("I'm vegan")
    • Procedural Memory: Behavioral patterns ("I debug by checking logs first")
  • Lifespan: Persistent across sessions

LLM-Powered ETL: Models generate their own memories by identifying signals, consolidating with existing data, updating database automatically.


The Research → Plan → Reset → Implement Cycle

The Context Rot Solution:

  1. Research: Agent gathers data → large, chaotic context window (noise + dead ends)
  2. Plan: Agent synthesizes into high-density SPEC.md or PLAN.md (Source of Truth)
  3. Reset: Clear entire context window (prevents context rot)
  4. Implement: Fresh session using only the high-density plan as context

Why This Works: Context rot is eliminated; agent starts clean with compressed, high-signal context.


Anti-Patterns (What This Is NOT)

  • Not about choosing AI tools — Claude vs. ChatGPT doesn't matter; architecture matters
  • Not about writing better prompts — This is systems design, not copywriting
  • Not about adding more tokens — "Infinite context" narratives are marketing, not engineering reality
  • Not about replacing human judgment — Context engineering amplifies judgment, doesn't eliminate it

When to Use This Skill

Use this when:

  • You're pasting entire PRDs/codebases into AI and getting vague responses
  • AI outputs are inconsistent ("works sometimes, not others")
  • You're burning tokens without seeing accuracy improvements
  • You suspect you're "context stuffing" but don't know how to fix it
  • You need to design context architecture for an AI product feature

Don't use this when:

  • You're just getting started with AI (start with basic prompts first)
  • You're looking for tool recommendations (this is about architecture, not tooling)
  • Your AI usage is working well (if it ain't broke, don't fix it)

Facilitation Source of Truth

Use workshop-facilitation as the default interaction protocol for this skill.

It defines:

  • session heads-up + entry mode (Guided, Context dump, Best guess)
  • one-question turns with plain-language prompts
  • progress labels (for example, Context Qx/8 and Scoring Qx/5)
  • interruption handling and pause/resume behavior
  • numbered recommendations at decision points
  • quick-select numbered response options for regular questions (include Other (specify) when useful)

This file defines the domain-specific assessment content. If there is a conflict, follow this file's domain logic.

Application

This interactive skill uses adaptive questioning to diagnose context stuffing, identify boundaries, and provide tactical implementation guidance.


Step 0: Gather Context

Agent asks:

Before we diagnose your context practices, let's gather information:

Current AI Usage:

  • What AI tools/systems do you use? (ChatGPT, Claude, custom agents, etc.)
  • What PM tasks do you use AI for? (PRD writing, user research synthesis, discovery, etc.)
  • How do you provide context? (paste docs, reference files, use projects/memory)

Symptoms:

  • Are AI outputs inconsistent? (works sometimes, not others)
  • Are you retrying prompts multiple times to get good results?
  • Are responses vague or hedged despite providing "all the context"?
  • Are token costs escalating without accuracy improvements?

System Architecture (if applicable):

  • Do you have custom AI agents or workflows?
  • How is context shared between agents?
  • Do you use RAG, vector databases, or memory systems?

You can describe briefly or paste examples.


Step 1: Diagnose Context Stuffing Symptoms

Agent asks:

Let's assess whether you're experiencing context stuffing. Which of these symptoms do you recognize?

Select all that apply:

  1. "I paste entire documents into AI" — Full PRDs, complete user interview transcripts, entire codebases
  2. "AI gives vague, hedged responses despite having 'all the context'" — Responses like "it depends," "consider these options," non-committal
  3. "I have to retry prompts 3+ times to get usable output" — Inconsistency is normalized
  4. "Token costs are escalating but accuracy isn't improving" — Spending more, getting same or worse results
  5. "I keep adding more context hoping it'll help" — Reflexive expansion without strategy
  6. "My agents pass everything to each other" — Agent A → Agent B → Agent C with full context chain
  7. "I don't have clear criteria for what to include/exclude" — No context boundary definitions
  8. "None of these—my AI usage is working well" — Skip to advanced optimization

User response: [Select symptoms]

Agent analyzes:

Based on your selections:

  • 0-1 symptoms: Healthy context practices; proceed to optimization
  • 2-3 symptoms: Early context stuffing; address before it scales
  • 4+ symptoms: Active Context Hoarding Disorder; immediate intervention needed

Agent proceeds to diagnostic questions.


Step 2: Diagnostic Question 1 — What Specific Decision Does This Support?

Agent asks:

Let's start with the most critical question: For each piece of context you're including, what specific decision does it support?

Example Context Analysis:

Imagine you're asking AI to "help with discovery planning." You're providing:

  • Entire PRD (20 pages)
  • 50 user interview transcripts (full)
  • Competitive analysis doc (15 pages)
  • Team meeting notes from last 3 months

Question: What decision are you making right now?

Offer 3 scenarios:

  1. "I'm deciding which user segment to interview first"

    • Context needed: User segments from PRD (2 paragraphs), prior interview themes (1 page synthesis), not full transcripts
    • Context NOT needed: Meeting notes, full competitive analysis, full PRD
  2. "I'm deciding which discovery questions to ask in interviews"

    • Context needed: Research objectives (from PRD), past interview insights (synthesis), Jobs-to-be-Done framework
    • Context NOT needed: Full competitive analysis, full meeting notes
  3. "I'm not sure what decision I'm making—I just want AI to 'understand my product'"

    • Problem: No specific decision = context stuffing trap
    • Fix: Define the decision first, then select context

Agent recommends:

Best Practice: Before adding context, complete this sentence:

"I need this context because I'm deciding [specific decision], and without [specific information], I can't make that decision."

If you can't complete that sentence, you don't need the context.

User response: [Describe their decision + context]

Agent validates: Does the context directly support the stated decision? If not, recommend trimming.


Step 3: Diagnostic Question 2 — Can Retrieval Replace Persistence?

Agent asks:

Second question: Is this information you always need, or something you can retrieve just-in-time?

The Distinction:

Always-Needed (Persist):

  • Core product constraints (technical, regulatory, strategic)
  • User preferences that apply to every interaction
  • Critical definitions (operational glossary)
  • Non-negotiable rules

Episodic (Retrieve on-demand):

  • Project-specific details (this epic, this sprint)
  • Historical data (past PRDs, old interview transcripts)
  • Contextual facts (competitive analysis, market research)
  • Temporary decisions

Key Insight: Just-in-time retrieval beats always-available. Don't persist what you can retrieve.

Offer 3 options:

  1. "Most of my context is always-needed (core constraints, user prefs)"

    • Assessment: Good instinct; verify with Question 4 (what fails if excluded?)
    • Recommendation: Build constraints registry and operational glossary (persist these)
  2. "Most of my context is episodic (project details, historical data)"

    • Assessment: Perfect candidate for RAG or retrieval
    • Recommendation: Implement semantic search; retrieve only relevant chunks for each query
  3. "I'm not sure which is which—I persist everything to be safe"

    • Assessment: Classic Context Hoarding Disorder symptom
    • Fix: Apply Question 4 test to each piece of context

Agent recommends:

Rule of Thumb:

  • Persist: Information referenced in 80%+ of interactions
  • Retrieve: Information referenced in <20% of interactions
  • Gray zone (20-80%): Depends on retrieval latency vs. context window cost

User response: [Categorize their context]

Agent provides: Specific recommendations on what to persist vs. retrieve.


Step 4: Diagnostic Question 3 — Who Owns the Context Boundary?

Agent asks:

Third question: Who is responsible for defining what belongs in vs. out of your AI's context?

The Ownership Problem:

If no one owns the context boundary, it will grow indefinitely. Every PM will add "just one more thing," and six months later, you're stuffing 100k tokens per query.

Offer 3 options:

  1. "I own the boundary (solo PM or small team)"

    • Assessment: Good—you can make fast decisions
    • Recommendation: Document your boundary criteria (use Questions 1-5 as framework)
  2. "My team shares ownership (collaborative boundary definition)"

    • Assessment: Can work if formalized
    • Recommendation: Create a "Context Manifest" doc: what's always included, what's retrieved, what's excluded (and why)
  3. "No one owns it—it's ad-hoc / implicit"

    • Assessment: Critical risk; boundary will expand uncontrollably
    • Fix: Assign explicit ownership; schedule quarterly context audits

Agent recommends:

Best Practice: Create a Context Manifest

# Context Manifest: [Product/Feature Name]

## Always Persisted (Core Context)
- Product constraints (technical, regulatory)
- User preferences (role, permissions, preferences)
- Operational glossary (20 key terms)

## Retrieved On-Demand (Episodic Context)
- Historical PRDs (retrieve via semantic search)
- User interview transcripts (retrieve relevant quotes)
- Competitive analysis (retrieve when explicitly needed)

## Excluded (Out of Scope)
- Meeting notes older than 30 days (no longer relevant)
- Full codebase (use code search instead)
- Marketing materials (not decision-relevant)

## Boundary Owner: [Name]
## Last Reviewed: [Date]
## Next Review: [Date + 90 days]

User response: [Describe current ownership model]

Agent provides: Recommendation on formalizing ownership + template for Context Manifest.


Step 5: Diagnostic Question 4 — What Fails if We Exclude This?

Agent asks:

Fourth question: For each piece of context, what specific failure mode occurs if you exclude it?

This is the falsification test. If you can't identify a concrete failure, you don't need the context.

Offer 3 scenarios:

  1. "If I exclude product constraints, AI will recommend infeasible solutions"

    • Failure Mode: Clear and concrete
    • Assessment: Valid reason to persist constraints
  2. "If I exclude historical PRDs, AI won't understand our product evolution"

    • Failure Mode: Vague and hypothetical
    • Assessment: Historical context rarely needed for current decisions
    • Fix: Retrieve PRDs only when explicitly referencing past decisions
  3. "If I exclude this, I'm not sure anything would break—I just include it to be thorough"

    • Failure Mode: None identified
    • Assessment: Context stuffing; delete immediately

Agent recommends:

The Falsification Protocol:

For each context element, complete this statement:

"If I exclude [context element], then [specific failure] will occur in [specific scenario]."

Examples:

  • ✅ Good: "If I exclude GDPR constraints, AI will recommend features that violate EU privacy law."
  • ❌ Bad: "If I exclude this PRD, AI might not fully understand the product." (Vague)

User response: [Apply falsification test to their context]

Agent provides: List of context elements to delete (no concrete failure identified).


Step 6: Diagnostic Question 5 — Are We Fixing Structure or Avoiding It?

Agent asks:

Fifth question: Is adding more context solving a problem, or masking a deeper structural issue?

The Root Cause Question:

Context stuffing often hides bad information architecture. Instead of fixing messy, ambiguous documents, teams add more documents hoping AI will "figure it out."

Offer 3 options:

  1. "I'm adding context because our docs are poorly structured/ambiguous"

    • Assessment: You're masking a structural problem
    • Fix: Clean up the docs first (remove ambiguity, add constraints, define terms)
    • Example: Instead of pasting 5 conflicting PRDs, reconcile them into 1 Source of Truth
  2. "I'm adding context because we don't have a shared operational glossary"

how to use context-engineering-advisor

How to use context-engineering-advisor on Cursor

AI-first code editor with Composer

1

Prerequisites

Before installing skills in Cursor, ensure your development environment meets these requirements:

  • Cursor installed and configured on your development machine
  • Node.js version 16.0+ with npm package manager (verify with node --version)
  • Active project directory or workspace where you want to add context-engineering-advisor
2

Execute installation command

Execute the skills CLI command in your project's root directory to begin installation:

$npx skills add https://github.com/deanpeters/product-manager-skills --skill context-engineering-advisor

The skills CLI fetches context-engineering-advisor from GitHub repository deanpeters/product-manager-skills and configures it for Cursor.

3

Select Cursor when prompted

The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:

◆ Which agents do you want to install to?
│ ── Universal (.agents/skills) ── always included ────
│ • Amp
│ • Antigravity
│ • Cline
│ • Codex
│ ●Cursor(selected)
│ • Cursor
│ • Windsurf
4

Verify installation

Confirm successful installation by checking the skill directory location:

.cursor/skills/context-engineering-advisor

Reload or restart Cursor to activate context-engineering-advisor. Access the skill through slash commands (e.g., /context-engineering-advisor) or your agent's skill management interface.

Security & Verification Notice

We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.

Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.

List & Monetize Your Skill

Submit your Claude Code skill and start earning

GET_STARTED →

Use Cases

User Story & Requirements Generation

Create detailed user stories, acceptance criteria, and feature specs

Example

Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios

Reduce spec writing time by 50%, ensure comprehensive coverage

Competitive Analysis

Research competitors, compare features, identify gaps

Example

Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities

Complete competitive research in 2 hours instead of 2 days

Roadmap Prioritization

Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs

Example

Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale

Make data-driven prioritization decisions faster

Stakeholder Communication

Draft PRDs, status updates, and stakeholder presentations

Example

Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement

Save 3-5 hours/week on communication overhead

Implementation Guide

Prerequisites

  • Claude Desktop or compatible AI client
  • Access to product documentation and roadmap tools (Jira, Notion, etc.)
  • Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
  • Stakeholder contact information and communication channels

Time Estimate

30-60 minutes to see productivity improvements

Installation Steps

  1. 1.Install product management skill
  2. 2.Start with user story generation for known feature
  3. 3.Progress to competitive analysis: research 2-3 competitors
  4. 4.Use for roadmap prioritization: apply RICE/ICE scoring
  5. 5.Draft stakeholder communications and refine based on feedback
  6. 6.Build template library for recurring PM tasks
  7. 7.Share effective prompts with product team

Common Pitfalls

  • Not validating competitive research—verify facts before sharing
  • Accepting user stories without involving engineering team
  • Over-relying on frameworks without qualitative judgment
  • Not customizing outputs to company culture and communication style
  • Skipping stakeholder validation of generated requirements

Best Practices

✓ Do

  • +Validate research and competitive analysis with real data
  • +Collaborate with engineering when generating technical requirements
  • +Customize frameworks and templates to your company context
  • +Use skill for first drafts, refine with stakeholder input
  • +Document successful prompt patterns for PM tasks
  • +Combine AI efficiency with human judgment and intuition

✗ Don't

  • Don't publish competitive analysis without fact-checking
  • Don't finalize user stories without engineering review
  • Don't make prioritization decisions solely on AI scoring
  • Don't skip customer validation of generated requirements
  • Don't ignore company-specific context and culture

💡 Pro Tips

  • Provide context: company goals, constraints, customer feedback
  • Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
  • Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
  • Use skill for 70% generation + 30% customization to company needs

When to Use This

✓ Use When

Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.

✗ Avoid When

Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.

Learning Path

  1. 1Basic: user stories, feature specs, status updates
  2. 2Intermediate: competitive analysis, prioritization frameworks, PRDs
  3. 3Advanced: product strategy, go-to-market planning, OKR setting
  4. 4Expert: product vision, market positioning, business model innovation

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.742 reviews
  • Chen Bansal· Dec 20, 2024

    Useful defaults in context-engineering-advisor — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Zaid Srinivasan· Dec 12, 2024

    context-engineering-advisor reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Ganesh Mohane· Dec 8, 2024

    context-engineering-advisor is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Rahul Santra· Nov 27, 2024

    Useful defaults in context-engineering-advisor — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Aanya Abebe· Nov 27, 2024

    Useful defaults in context-engineering-advisor — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Chen Perez· Nov 11, 2024

    context-engineering-advisor is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Zaid Li· Nov 3, 2024

    Registry listing for context-engineering-advisor matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Aisha Sethi· Oct 22, 2024

    Useful defaults in context-engineering-advisor — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Pratham Ware· Oct 18, 2024

    Registry listing for context-engineering-advisor matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Chen Gonzalez· Oct 18, 2024

    Registry listing for context-engineering-advisor matched our evaluation — installs cleanly and behaves as described in the markdown.

showing 1-10 of 42

1 / 5