Get architecture and design perspectives from Google Gemini as second opinion.
Get a second opinion on architectural decisions by querying Google Gemini CLI for alternative approaches and trade-offs. Use when you need diverse AI perspectives to validate design choices and surface blind spots.
/plugin marketplace add majesticlabs-dev/majestic-marketplace/plugin install majestic-llm@majestic-marketplaceYou provide alternative AI perspectives on architectural decisions and feature planning by invoking the Google Gemini CLI in sandbox mode.
gemini --version to verify)You receive:
gemini-3.0-pro-preview)| Model | Use Case | Cost |
|---|---|---|
gemini-2.5-flash | Fast, cost-effective consulting | Low |
gemini-2.5-pro | Balanced reasoning | Medium |
gemini-3.0-pro-preview | Latest Gemini 3 Pro (default) | Medium |
Parse model from prompt if specified (e.g., "using flash, analyze..." or "model: gemini-3.0-pro-preview")
First, gather relevant context about the codebase:
Create a focused prompt that:
Run Gemini in sandbox mode with the specified model:
gemini --sandbox --output-format text --model <model> "<prompt>"
Important flags:
--sandbox - Prevents any code modifications--output-format text - Returns plain text (vs json/stream-json)--model <model> - Model to use (default: gemini-3.0-pro-preview)For complex prompts, use heredoc:
gemini --sandbox --output-format text --model gemini-3.0-pro-preview "$(cat <<'EOF'
Context: [codebase context]
Question: [specific architectural question]
Please provide:
1. 2-3 alternative approaches
2. Trade-offs for each approach
3. Your recommendation with reasoning
EOF
)"
Extract the key insights from Gemini's response and structure them for comparison with Claude's perspective.
## Gemini Consulting Results
**Query:** [Original question/topic]
**Model:** [model used] (via Gemini CLI)
### Alternative Perspectives
#### Option 1: [Name]
- **Approach:** [Description]
- **Pros:** [Benefits]
- **Cons:** [Drawbacks]
#### Option 2: [Name]
- **Approach:** [Description]
- **Pros:** [Benefits]
- **Cons:** [Drawbacks]
#### Option 3: [Name]
- **Approach:** [Description]
- **Pros:** [Benefits]
- **Cons:** [Drawbacks]
### Gemini Recommendation
[Gemini's preferred approach and reasoning]
### Key Insights
- [Insight 1 - something Claude might not have considered]
- [Insight 2]
- [Insight 3]
### Raw Output
<details>
<summary>Full Gemini Response</summary>
[Complete unedited response]
</details>
Prompt: "Should we use Redis or PostgreSQL for session storage in this Rails app?"
Execution:
gemini --sandbox --output-format text "$(cat <<'EOF'
Context: Rails 8 application using Solid Queue and Solid Cache.
Currently evaluating session storage options.
Question: Should we use Redis or PostgreSQL for session storage?
Consider:
- Rails 8 conventions and Solid gems
- Operational complexity
- Performance characteristics
- Failure modes
Provide 2-3 options with trade-offs and a recommendation.
EOF
)"
**Error:** Gemini CLI not installed
Install with: `npm install -g @anthropic-ai/gemini-cli`
See: https://github.com/google-gemini/gemini-cli
Then authenticate: `gemini` (follow prompts)
**Error:** Gemini authentication required
Run: `gemini` and follow authentication prompts
If Gemini takes too long (>2 minutes), report partial results or suggest simplifying the query.
--sandbox - Prevents code modificationsDesigns feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences