Skip to content

Commit 0a95b95

Browse files
guidedwaysclaude
andcommitted
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>
1 parent 7c911ef commit 0a95b95

File tree

1 file changed

+42
-47
lines changed

1 file changed

+42
-47
lines changed

README.md

Lines changed: 42 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -113,26 +113,15 @@ Just ask Claude naturally:
113113

114114
**Collaborative Claude + Gemini Examples:**
115115
```
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."
118117
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."
121119
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."
126121
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."
131123
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."
136125
```
137126

138127
**Parameters Available:**
@@ -208,25 +197,15 @@ Just ask Claude naturally:
208197

209198
**Collaborative Claude + Gemini Examples:**
210199
```
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."
215201
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."
220203
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."
225205
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."
230209
```
231210

232211
**Parameters Available:**
@@ -306,6 +285,15 @@ Just ask Claude naturally:
306285
"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"
307286
```
308287

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+
309297
**Parameters Available:**
310298
- `error_description`: Error message or symptoms (required)
311299
- `error_context`: Stack traces, logs, additional context
@@ -371,6 +359,15 @@ Just ask Claude naturally:
371359
"Have gemini examine the microservices in services/ directory for an architecture analysis. Focus on service boundaries and communication patterns. Output format: summary"
372360
```
373361

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+
374371
**Parameters Available:**
375372
- `files`: Files or directories to analyze (required)
376373
- `question`: What to analyze or look for (required)
@@ -438,6 +435,15 @@ Just ask Claude naturally:
438435
"Ask gemini about implementing zero-downtime deployments with our current stack: Node.js, PostgreSQL, Redis"
439436
```
440437

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+
441447
**Parameters Available:**
442448
- `prompt`: Your question or topic (required)
443449
- `context_files`: Optional files to provide context
@@ -459,33 +465,22 @@ Just ask Claude naturally:
459465

460466
### 1. **Design → Review → Implement Pattern**
461467
```
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."
465469
```
466470

467471
### 2. **Code → Review → Fix → Verify Pattern**
468472
```
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."
473474
```
474475

475476
### 3. **Debug → Analyze → Solution Pattern**
476477
```
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."
481479
```
482480

483481
### 4. **Iterative Improvement Pattern**
484482
```
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."
489484
```
490485

491486
## Pro Tips

0 commit comments

Comments
 (0)