- Save Conversation Context - Universal Prompt
- 📋 How to Use
- 🔖 Prompt (Copy & Use Directly)
- 📖 Prompt Explanation
- 🚀 Usage Examples
- 🎯 How to Use Generated Document in Next Conversation
- 💡 Advanced Usage
- 📋 Document Naming Convention
- ⚙️ Customization Options
- 🎁 Bonus: Quick Command Version
- 📝 Best Practices
- 🔄 Complete Workflow
- 📚 Example Library
- 💬 FAQ
- 🎯 Advantages of This Prompt
- 📝 Real Effect Demonstration
- 🎉 Ready to Use Now!
- 🌍 Language Support
- 🔧 Template Customization
- 📖 Quick Reference Card
Save Conversation Context - Universal Prompt
📋 How to Use
When you want to save the current conversation context, simply copy the prompt below and send it to Claude:
🔖 Prompt (Copy & Use Directly)
Please analyze our current conversation history and generate a complete "Conversation Context Document" for quickly restoring context in new conversations.Document Requirements:1. Automatically extract problem background, core issues, objectives, and constraints2. Record attempted solutions (successful/failed)3. Record current progress and status4. Record key code changes and files5. List unresolved issues and next steps6. Include usage instructions and important notesDocument Structure Reference:- 📋 Problem Background (project info, current state, involved components)- 🔴 Core Problem (symptoms, root cause analysis, specific data)- 🎯 Implementation Goals (main objectives, specific requirements, constraints)- 🔧 Technical Constraints (principles to follow, technical limitations, key files)- 🚫 Attempted Solutions (failed approaches and reasons)- ✅ Current/Final Solution (design approach, core mechanisms, key code)- 📝 Key Code Changes (modified files, change details, code statistics)- 🎯 Current Progress (completed, in-progress, pending)- 💡 Usage Guide (configuration steps, example code, important notes)- 🐛 Known Issues and Pending Items- 🚀 Next Steps- 📝 Notes (development insights, lessons learned, references)Please save the document as: conversation-context-[auto-identify-topic]-[current-status].mdAfter generating the document, please tell me:1. The document save path2. How to use this document in new conversations3. A summary of the core content
📖 Prompt Explanation
This Prompt Will Make Claude Automatically:
- ✅ Analyze conversation history - Extract all key information
- ✅ Identify problem type - Automatically determine if it’s bug fix, feature development, performance optimization, etc.
- ✅ Extract technical details - Code changes, file paths, configuration parameters, etc.
- ✅ Record progress status - Completed, in-progress, pending
- ✅ Generate structured document - Using unified format
- ✅ Auto-name file - Based on problem topic and status
Applicable Scenarios:
- ✅ Complex problems requiring multiple conversation rounds
- ✅ Need to pause conversation and continue later
- ✅ Want to save solutions as knowledge base
- ✅ Need to share context with team members
- ✅ Conversation approaching length limit
🚀 Usage Examples
Scenario 1: Mid-conversation, need to pause
You: We're solving the login functionality issue...[Conversation continues for 10 rounds]You: [Copy & paste the universal prompt]Claude:✅ Generated document: conversation-context-login-optimization-in-progress.md📍 Location: /path/to/conversation-context-login-optimization-in-progress.mdCore Content Summary:- Issue: Login token expiration time too short- Attempted: Solution 1 (failed), Solution 2 (partially successful)- Current Progress: Implementing Solution 3 (JWT + Refresh Token)- Next Steps: Test refresh token logicFor next conversation:1. Start new conversation2. Send: "Please read conversation-context-login-optimization-in-progress.md and continue helping me with the login issue"3. I'll immediately restore context and continue
Scenario 2: Problem solved, save as knowledge base
You: [Copy & paste the universal prompt]Claude:✅ Generated document: conversation-context-viewpager-height-adaptation-resolved.md📍 Location: /path/to/conversation-context-viewpager-height-adaptation-resolved.mdThis document can serve as:- Part of team knowledge base- Reference solution for similar problems- Learning material for new team members
🎯 How to Use Generated Document in Next Conversation
Method 1: Direct Reference (Recommended)
New conversation starts:You: Please read conversation-context-XXX-in-progress.md and let's continue solving this problem.The new situation is: [describe new changes]
Method 2: Paste Document Content
New conversation starts:You: I previously encountered a problem. Here's the context:[Paste document content]Now I want to continue with the XXX part.
Method 3: Combine with New Problem
New conversation starts:You: Please read conversation-context-XXX-resolved.md. I'm now facing a similar problem, but with some differences:[Describe new problem]
💡 Advanced Usage
Merge Multiple Conversation Contexts
You: I have two related problems:1. conversation-context-login-functionality-resolved.md2. conversation-context-permission-management-in-progress.mdPlease analyze the relationship between these two problems and continue solving the permission management issue.
Update Existing Context Document
You: Please update conversation-context-XXX-in-progress.md with our newly discussed solution and update the progress status.
📋 Document Naming Convention
Generated documents will automatically follow this naming convention:
conversation-context-[topic]-[status].mdStatus Indicators:- in-progress: Problem still being solved- resolved: Problem completely solved- pending-verification: Solution ready, awaiting testing- paused: Temporarily shelved, to continue later- abandoned: Approach not viable, abandoning this directionExamples:✅ conversation-context-viewpager-height-adaptation-resolved.md🔄 conversation-context-login-optimization-in-progress.md⏳ conversation-context-payment-flow-refactor-pending-verification.md⏸️ conversation-context-performance-optimization-paused.md❌ conversation-context-legacy-migration-abandoned.md
⚙️ Customization Options
If you need specific document format, add to the prompt:
Please generate conversation context document with additional requirements:- Include detailed code examples- Include performance test data- Include UI screenshots- Focus on [specific aspect]
🎁 Bonus: Quick Command Version
If you find the full prompt too long, use the simplified version:
Simplified Prompt
/save-context(Please analyze current conversation and generate structured context document for quick restoration in new conversations.)
> Note: Simplified version may miss some details. Recommend using full version for first time.
📝 Best Practices
✅ Recommended Practices
- Save regularly - Save once every 10-15 conversation rounds
- Update timely - Update document when problem status changes
- Organize by category - Organize documents by project/module
- Version control - Add important documents to Git
❌ Practices to Avoid
- ❌ Wait until conversation ends to save (may miss details)
- ❌ Random document naming (hard to find)
- ❌ Never update status (don’t know what’s solved)
- ❌ Use one document for all problems (messy)
🔄 Complete Workflow
1. Start new problem↓2. Conversation in progress (10-15 rounds)↓3. [Use universal prompt] Save context↓4. Get document: conversation-context-XXX-in-progress.md↓5. [Need to pause]↓6. New conversation: "Please read conversation-context-XXX-in-progress.md and continue..."↓7. Problem solved↓8. [Use universal prompt] Update document status to "resolved"↓9. Archive to knowledge base
📚 Example Library
Common problem types document examples:
✅ conversation-context-viewpager-height-adaptation-resolved.md✅ conversation-context-database-migration-solution-resolved.md🔄 conversation-context-network-request-optimization-in-progress.md🔄 conversation-context-ui-adaptation-issues-in-progress.md⏳ conversation-context-new-architecture-evaluation-pending-verification.md
💬 FAQ
Q: Will the document include all conversation content? A: No. Only key information (problems, solutions, code, progress) will be extracted, filtering out irrelevant discussions.
Q: What if document is too long? A: Claude will automatically compress, keeping core content. If still too long, you can request a “simplified version”.
Q: Can I modify the document structure? A: Yes! Specify your desired structure in the prompt.
Q: Can multiple problems be merged? A: Yes! Tell Claude “Please merge XXX.md and YYY.md to generate new context document”.
Q: Where is the document saved? A: By default in current working directory. You can specify path in prompt.
🎯 Advantages of This Prompt
Compared to manual organization:
| Manual Organization | Using Prompt |
|---|---|
| ❌ Need to extract key info yourself | ✅ Automatic analysis & extraction |
| ❌ May miss important details | ✅ Comprehensive coverage |
| ❌ Inconsistent format | ✅ Unified structured format |
| ❌ Takes 10-20 minutes | ✅ Complete in 30 seconds |
| ❌ Need to remember all attempts | ✅ Auto-record all solutions |
📝 Real Effect Demonstration
Before (Traditional Way):
New conversation:You: "I previously solved a ViewPager problem, but forgot how I did it..."Me: "Can you describe it in detail?"You: "Um... it was a height issue... page 2 had blank space..."Me: "What caused it?"You: "Something about preloading... I forgot..."[Repeated questioning, wasting 10 rounds]
After (With Context Document):
New conversation:You: "Please read conversation-context-viewpager-height-adaptation-resolved.md"Me: "Got it. I see:- Problem: Page 2 has 827px blank space at bottom- Cause: Preloading mechanism takes max height- Solution: Fully automated WrapContentHeightViewPager- Status: Completely resolvedAny new requirements now?"You: "I want to copy this component to another project"Me: "You can copy directly! Steps are..."[Immediately on topic, saving time]
🎉 Ready to Use Now!
For next conversation:
- Copy universal prompt
- Send to me
- I’ll automatically generate document
- Save document for backup
- Provide document link in new conversation
This allows you to:
- ✅ Pause and resume conversations anytime
- ✅ Maintain context across multiple conversations
- ✅ Accumulate project knowledge base
- ✅ Share solutions with team
🌍 Language Support
This prompt works in any language. Claude will:
- Analyze conversation in original language
- Generate document in same language as conversation
- Or specify language: “Please generate in [English/Chinese/Japanese/etc.]”
🔧 Template Customization
You can customize the prompt for specific needs:
For Code-Heavy Projects
[Add to prompt]Additional focus:- Include complete code snippets with line numbers- Record all file paths and directory structure- Include dependency versions and package info
For UI/UX Projects
[Add to prompt]Additional focus:- Include design decisions and rationale- Record color codes, spacing, font sizes- Include before/after screenshots if discussed
For Architecture Decisions
[Add to prompt]Additional focus:- Record all considered approaches and trade-offs- Include decision matrix or comparison table- Document stakeholder concerns and responses
📖 Quick Reference Card
Save Context:
[Copy universal prompt] → Send
Restore Context:
"Please read [filename].md and continue..."
Update Status:
"Please update [filename].md, status changed to resolved"
Merge Contexts:
"Please merge [file1].md and [file2].md"
Created: 2025-11-17 Version: v1.0 For: Claude Code / Claude - Any Conversation Scenario Language: English (中文版本: 保存对话上下文-通用Prompt.md)
