A framework for using AI as a thinking partner,
not a writing assistant
Ahmed Khaled
github.com/ahmedkhaledmohamed
The Problem
The Problem
TRADITIONAL PM
Read Docs → Form Opinions → Write More Docs → Hope
❌ Slow iteration
❌ Context lost between sessions
❌ Tribal knowledge
The Framework
The Framework
Technical
"What CAN happen?"
Contextual
"What's EXPECTED?"
Empirical
"What IS happening?"
Human
"What SHOULD happen?"
The Framework
💻 ≠ 📄
"We claim X but code shows Y"
📊 ≠ 📝
"Strategy says X matters, metrics show Y"
🧠 ≠ 📊
"I think X, but data shows Y"
AI helps you find these conflicts. You decide how to resolve them.
How It Works
Different AI "modes" for different tasks — install with npx pm-ai-partner@latest
How It Works
| Skill | Command | What It Does |
|---|---|---|
| 🤝 Thought Partner | /pm:thought-partner | Brainstorm, explore options |
| 🔍 Technical Analyst | /pm:technical-analyst | Code → product insights |
| ✍️ Writer | /pm:writer | Briefs, updates, emails |
| 👹 Devil's Advocate | /pm:devil-advocate | Stress-test proposals |
| 🛠️ Builder | /pm:builder | Tools, scripts, prototypes |
| 📊 Data Analyst | /pm:data-analyst | Queries, metrics, insights |
| 📋 Product Brief | /pm:product-brief | Structured PRDs |
| 🎯 Meeting Prep | /pm:meeting-prep | Talking points, Q&A |
| 📢 Stakeholder Update | /pm:stakeholder-update | Status reports |
| 🧭 Strategic Clarity | /pm:strategic-clarity | Team identity, charter |
How It Works
New role, unclear team identity → Charter, Value Prop
Quarterly planning → Roadmap, Priorities
Understanding what exists → Capability Audit
Need internal tools → Working Prototype
Big meetings → Talk Structure, Q&A Prep
Translating code ↔ product → Engineering Questions
Metrics analysis → Insights, Hypotheses
Confusing docs → Cleaner Structure
Live Demo
Cursor + Claude in action
🔍
Semantic search across repos
📊
Analyze metrics from chat
✍️
Grounded in reality
Results
4 months building clarity for a platform team
Team now has clarity — crisp answers to "what do you do?" grounded in implementation reality.
Pitfalls
| ❌ Don't | Why It Fails |
|---|---|
| "Write me a strategy doc" | No direction = generic output |
| Accept first draft | Always needs human refinement |
| Skip codebase grounding | Strategy disconnected from reality |
| Use AI for judgment calls | Can't know your organizational context |
| Long sessions, no commits | Lost context, no rollback |
Key Practice
Your repo is the persistent layer; chat is ephemeral.
Preserve context
Safe experimentation
Maintain ownership
Future you will thank you
Get Started
npx pm-ai-partner@latest
One command installs 10 skills, 4 commands, and 3 hooks.
Works with Claude Code, Cursor, and Codex.
AI helps you explore. You decide.
Ahmed Khaled
github.com/ahmedkhaledmohamed/PM-AI-Partner-Framework