You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: simplify collaborative examples to single natural prompts
Cleaned up all collaborative examples:
- Removed sequential steps ("Step 1", "Step 2", etc.)
- Removed example labels ("Example 1 - ", etc.)
- Made each example a single, complete prompt showing full collaboration
- These are now natural prompts users can copy/paste to Claude Code
Each prompt now clearly shows the complete flow:
1. Claude does initial work
2. Shares with Gemini for review/extension
3. Incorporates Gemini's feedback
4. Presents final result to user
The examples are now clean, concise, and immediately usable.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+42-47Lines changed: 42 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,26 +113,15 @@ Just ask Claude naturally:
113
113
114
114
**Collaborative Claude + Gemini Examples:**
115
115
```
116
-
# First prompt to Claude:
117
-
"Design an authentication system for our SaaS platform with JWT tokens and OAuth2"
116
+
"Design an authentication system for our SaaS platform. Then ask gemini to review your design for security vulnerabilities. After getting gemini's feedback, incorporate the suggestions and show me the final improved design."
118
117
119
-
# After Claude responds, second prompt:
120
-
"Now ask gemini to review the authentication design above and identify any security vulnerabilities or architectural concerns"
118
+
"Create an event-driven architecture for our order processing system. Share it with gemini to think deeper about event ordering and failure scenarios. Then integrate gemini's insights and present me with the enhanced architecture."
121
119
122
-
# Another example flow:
123
-
"Create an event-driven architecture for our order processing system"
124
-
# Then:
125
-
"Have gemini think deeper about the design above, particularly around event ordering, failure scenarios, and recovery strategies"
120
+
"Analyze our database performance and create an optimization plan. Have gemini validate your approach and suggest additional improvements. Combine both your analysis and gemini's suggestions into a comprehensive optimization strategy."
126
121
127
-
# Performance optimization flow:
128
-
"Analyze our database performance and create an optimization plan"
129
-
# Then:
130
-
"Get gemini to validate the optimization approach above and suggest additional improvements"
122
+
"Design a microservices decomposition strategy for our monolith. Ask gemini to review it focusing on service boundaries and data consistency. Based on gemini's feedback, refine the strategy and give me the final decomposition plan."
131
123
132
-
# Architecture review flow:
133
-
"Design a microservices decomposition strategy for our monolith application"
134
-
# Then:
135
-
"Ask gemini to review and extend the analysis above, focusing on service boundaries and data consistency"
124
+
"Think deeply about implementing a caching strategy for our API. Share your analysis with gemini for validation and additional ideas. Then create a final implementation plan that incorporates both your insights and gemini's recommendations."
136
125
```
137
126
138
127
**Parameters Available:**
@@ -208,25 +197,15 @@ Just ask Claude naturally:
208
197
209
198
**Collaborative Claude + Gemini Examples:**
210
199
```
211
-
# Refactoring review flow:
212
-
"Refactor the authentication module to use dependency injection"
213
-
# After refactoring:
214
-
"Ask gemini to review the refactored auth module above and ensure I haven't introduced any security vulnerabilities"
200
+
"Refactor the authentication module to use dependency injection. Then ask gemini to review your refactoring for any security vulnerabilities. Based on gemini's feedback, make any necessary adjustments and show me the final secure implementation."
215
201
216
-
# Performance optimization review:
217
-
"Optimize these slow database queries in user_service.py"
218
-
# After optimization:
219
-
"Have gemini review the optimized queries above for any potential performance regressions or edge cases"
202
+
"Optimize the slow database queries in user_service.py. Have gemini review your optimizations for potential regressions or edge cases. Incorporate gemini's suggestions and present the final optimized queries with performance analysis."
220
203
221
-
# Implementation review:
222
-
"Implement a comprehensive error handling strategy for our API"
223
-
# After implementation:
224
-
"Get gemini to review error_handler.py and validate that all edge cases are covered"
204
+
"Implement error handling for our API. Ask gemini to review error_handler.py and validate edge case coverage. Based on gemini's analysis, enhance the error handling and show me the complete robust solution."
225
205
226
-
# API design review:
227
-
"Design a new REST API for our user management system"
228
-
# After design:
229
-
"Ask gemini to review the API design above against REST best practices and suggest improvements"
206
+
"Design a REST API for user management. Get gemini to review it against REST best practices. Using gemini's suggestions, refine the API design and provide me with the final specification including all improvements."
207
+
208
+
"Review the payment module for code quality issues. Share your findings with gemini for a second opinion and additional insights. Combine both reviews into a comprehensive report with prioritized fixes."
230
209
```
231
210
232
211
**Parameters Available:**
@@ -306,6 +285,15 @@ Just ask Claude naturally:
306
285
"Ask gemini to debug this memory leak in the image processing service. Memory usage grows to 4GB after 1000 images. Stack: Python with Pillow, running in Docker. Files: image_processor.py, dockerfile"
307
286
```
308
287
288
+
**Collaborative Claude + Gemini Examples:**
289
+
```
290
+
"I'm getting 'ConnectionPool limit exceeded' errors under load. Debug the issue and ask gemini to analyze it deeper with context from db/pool.py. Based on gemini's root cause analysis, implement a fix and have gemini validate the solution will scale. Show me the final fix with explanation."
291
+
292
+
"Our API is crashing with OOM errors. Analyze the memory usage patterns, then ask gemini to debug with heap dumps and profiler output. Implement the fix gemini suggests, then have gemini provide long-term optimization strategies. Present the complete solution."
293
+
294
+
"Debug why tests fail randomly on CI. Once you identify potential causes, share with gemini along with test logs and CI configuration. Apply gemini's debugging strategy, then ask gemini to suggest preventive measures. Give me the fix and prevention plan."
295
+
```
296
+
309
297
**Parameters Available:**
310
298
-`error_description`: Error message or symptoms (required)
"Have gemini examine the microservices in services/ directory for an architecture analysis. Focus on service boundaries and communication patterns. Output format: summary"
372
360
```
373
361
362
+
**Collaborative Claude + Gemini Examples:**
363
+
```
364
+
"Analyze our project structure in src/ and identify architectural improvements. Share your analysis with gemini for a deeper review of design patterns and anti-patterns. Based on both analyses, create a refactoring roadmap and present the prioritized improvements."
365
+
366
+
"Perform a security analysis of our authentication system. Ask gemini to analyze auth/, middleware/, and api/ for vulnerabilities. Combine your findings with gemini's to create a comprehensive security report with fixes prioritized by risk level."
367
+
368
+
"Analyze the data processing pipeline for performance bottlenecks. Have gemini examine pipeline/, workers/, and queues/ to identify optimization opportunities. Synthesize both analyses into an optimization plan with expected performance gains."
369
+
```
370
+
374
371
**Parameters Available:**
375
372
-`files`: Files or directories to analyze (required)
376
373
-`question`: What to analyze or look for (required)
@@ -438,6 +435,15 @@ Just ask Claude naturally:
438
435
"Ask gemini about implementing zero-downtime deployments with our current stack: Node.js, PostgreSQL, Redis"
439
436
```
440
437
438
+
**Collaborative Claude + Gemini Examples:**
439
+
```
440
+
"Research the best message queue for our use case (high throughput, exactly-once delivery). Ask gemini to compare RabbitMQ, Kafka, and AWS SQS. Based on gemini's analysis and your research, recommend the best option with implementation plan."
441
+
442
+
"Design a caching strategy for our API. Get gemini's input on Redis vs Memcached vs in-memory caching. Combine both perspectives to create a comprehensive caching implementation guide."
443
+
444
+
"Explain how to implement the Circuit Breaker pattern. Ask gemini to provide advanced implementation details and edge cases. Create a complete implementation guide combining both explanations with code examples."
445
+
```
446
+
441
447
**Parameters Available:**
442
448
-`prompt`: Your question or topic (required)
443
449
-`context_files`: Optional files to provide context
@@ -459,33 +465,22 @@ Just ask Claude naturally:
459
465
460
466
### 1. **Design → Review → Implement Pattern**
461
467
```
462
-
Step 1: "Design a real-time collaborative editor with conflict resolution"
463
-
Step 2: "Ask gemini to think deeper about the design above, focusing on conflict resolution and scalability edge cases"
464
-
Step 3: "Implement the improvements Gemini suggested for the collaborative editor"
468
+
"Design a real-time collaborative editor with conflict resolution. Once you have the design, ask gemini to think deeper about it focusing on edge cases and scalability. Then implement an improved version incorporating gemini's suggestions and show me the final architecture."
465
469
```
466
470
467
471
### 2. **Code → Review → Fix → Verify Pattern**
468
472
```
469
-
Step 1: "Implement JWT authentication for our API"
470
-
Step 2: "Ask gemini to do a security review of the implementation above, focusing on OWASP top 10"
471
-
Step 3: "Fix the security issues Gemini identified"
472
-
Step 4: "Have gemini verify the fixes above are secure"
473
+
"Implement JWT authentication for our API. Then ask gemini to do a security review focusing on OWASP top 10. Fix any issues gemini identifies, then have gemini verify the fixes are secure. Finally, show me the secure implementation with a summary of what was fixed."
473
474
```
474
475
475
476
### 3. **Debug → Analyze → Solution Pattern**
476
477
```
477
-
Step 1: "Debug why our API crashes under load. Here's the error log: [paste logs]"
478
-
Step 2: "Ask gemini to debug this deeper with context from api/handlers/ and db/queries.js"
479
-
Step 3: "Fix the memory leak Gemini found"
480
-
Step 4: "Have gemini think deeper about preventing this issue long-term"
478
+
"Debug why our API crashes under load. Here's the error log: [logs]. Ask gemini to analyze this deeper with context from api/handlers/ and db/queries.js. Based on gemini's root cause analysis, implement a fix. Then have gemini suggest long-term architectural improvements to prevent similar issues. Present me with both the immediate fix and the long-term solution."
481
479
```
482
480
483
481
### 4. **Iterative Improvement Pattern**
484
482
```
485
-
Step 1: "Create a refactoring plan for user_service.py to improve maintainability"
486
-
Step 2: "Ask gemini to review the refactoring plan above and identify potential issues"
487
-
Step 3: "Implement phase 1 of the refactoring based on the plan"
488
-
Step 4: "Have gemini review the refactored code above against SOLID principles"
483
+
"Create a refactoring plan for user_service.py to improve maintainability. Share the plan with gemini for feedback on potential issues. Implement phase 1 incorporating gemini's suggestions. Have gemini review the refactored code against SOLID principles. Show me the final refactored code with a summary of improvements made based on both your analysis and gemini's feedback."
0 commit comments