release
Trigger the CI release pipeline for gemini-plugin-cc. Maintainer-only.
Internal guidance for composing Gemini 2.5 Pro/Flash prompts for coding, review, diagnosis, and research tasks inside the Gemini Claude Code plugin
Claude Code
$ npx -y skills add bonboncinnabon/gemini-plugin-cc --skill gemini-prompting --agent claude-code
Codex
$ npx skills add bonboncinnabon/gemini-plugin-cc --skill gemini-prompting -a codex -y
Cursor
$ npx skills add bonboncinnabon/gemini-plugin-cc --skill gemini-prompting -a cursor -y
Gemini CLI
$ npx skills add bonboncinnabon/gemini-plugin-cc --skill gemini-prompting -a gemini-cli -y
GitHub Copilot
$ npx skills add bonboncinnabon/gemini-plugin-cc --skill gemini-prompting -a github-copilot -y
OpenCode
$ npx skills add bonboncinnabon/gemini-plugin-cc --skill gemini-prompting -a opencode -y
Windsurf
$ npx skills add bonboncinnabon/gemini-plugin-cc --skill gemini-prompting -a windsurf -y
name: gemini-prompting description: Internal guidance for composing Gemini 2.5 Pro/Flash prompts for coding, review, diagnosis, and research tasks inside the Gemini Claude Code plugin user-invocable: false
Reference document for writing effective prompts when delegating to Gemini 2.5 Pro or Flash. Covers model selection, thinking mode, context window use, structured output, tool use, and antipatterns.
---
Choose based on task complexity and cost tolerance:
| Model | Use when | Context | Thinking | |---|---|---|---| | `gemini-2.5-pro` | Complex architecture, cross-file refactors, SWE-bench-style tasks, novel algorithm design | 1M tokens | Always on (128–32,768 tokens, default dynamic) | | `gemini-2.5-flash` | Production tasks with good cost/quality balance: reviews, summaries, data extraction, chat | 1M tokens | Dynamic by default (0–24,576 tokens, can disable) | | `gemini-2.5-flash-lite` | High-volume, low-cost: classification, routing, simple translation, triage | 1M tokens | Off by default (512–24,576 tokens) |
**Decision rule:** Default to Flash for most coding assistance. Switch to Pro only when Flash produces shallow or incorrect reasoning on complex multi-step problems. Use Flash-Lite only when cost is the primary constraint and quality requirements are low.
**SWE-bench data point:** Gemini 2.5 Pro scores ~63.8% on SWE-bench Verified with a custom agent setup — comparable to frontier models for real-world GitHub issue resolution.
---
Gemini 2.5 models have an internal reasoning phase ("thinking") before responding. You control how many tokens it can spend reasoning.
# Python SDK
from google import genai
from google.genai import types
client = genai.Client()
response = client.models.generate_content(
model="gemini-2.5-flash",
contents="Refactor this authentication module...",
config=types.GenerateContentConfig(
thinking_config=types.ThinkingConfig(
thinking_budget=8192 # or -1 for dynamic, or 0 to disable
)
)
)| Model | Min | Max | Default | |---|---|---|---| | gemini-2.5-pro | 128 | 32,768 | Dynamic (cannot disable) | | gemini-2.5-flash | 0 | 24,576 | Dynamic (-1) | | gemini-2.5-flash-lite | 512 | 24,576 | 0 (disabled) |
**Disable (budget=0) or minimal:**
**Medium (512–4096 tokens):**
**High (8192–32,768 tokens) or dynamic (-1):**
**Cost warning:** High thinking budgets cost significantly more. One practitioner reported auto-mode costing ~37x more than flash-only mode for identical workloads ($6k vs $163/month at scale). Match thinking budget to actual task complexity.
---
[Role/persona — optional but effective] [Context: what exists, what matters] [Task: specific, scoped, explicit] [Constraints: what NOT to do, style rules] [Output format: how to structure the response]
Gemini responds well to role framing. Set it in the system prompt or at the start:
You are a senior Go engineer specializing in performance-critical systems. You follow idiomatic Go, prefer composition over inheritance, and always handle errors explicitly rather than panicking.
Break large tasks into sequential prompts. Do not cram multi-phase work into one prompt.
**Bad:**
Refactor the authentication module, add rate limiting, write tests, and update the API documentation.
**Good (4 separate prompts):** 1. "Refactor the auth module. Preserve the existing interface exactly." 2. "Add rate limiting middleware. Wire it after the auth middleware." 3. "Write unit tests for the rate limiter. Cover the burst and sustained rate cases." 4. "Update the API docs for the two new rate-limiting headers."
Gemini's most common failure mode: "I Know Better" syndrome — it fixes unrelated code you didn't ask it to touch. Always state what NOT to do:
**Bad:**
Refactor this function to be more efficient.
**Good:**
Refactor this function for efficiency. DO NOT change the function signature. DO NOT modify the input validation logic. DO NOT add or remove comments. DO NOT change error return types.
For complex features, establish the design before writing code:
Before writing any code, describe the architecture for adding webhook support to this service. Cover: data model changes, handler design, retry strategy, and failure modes. I'll confirm the approach before you implement.
For anything generating hundreds of lines, do it in stages:
Generate the HTML structure for the dashboard component first. Stop after the HTML. I'll review it before we proceed to CSS and JS.
---
Use Gemini from inside Claude Code for code reviews or to delegate tasks to Gemini. Based on openai/codex-plugin-cc, adapted for the Gemini CLI. Also adds /gemini:task for direct task delegation.
Trigger the CI release pipeline for gemini-plugin-cc. Maintainer-only.
Internal helper contract for calling the gemini-companion runtime from Claude Code
Internal guidance for presenting Gemini helper output back to the user
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.