skills/gemini-llm/SKILL.md
Invoke Google Gemini 3 Pro for text generation, reasoning, and code tasks using the Python google-genai SDK. Supports gemini-3-pro-preview (best multimodal), gemini-2.5-pro (reasoning), and gemini-2.5-flash (fast).
npx skillsauth add rdfitted/claude-code-setup gemini-llmInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Invoke Google Gemini models for text generation, reasoning, code analysis, and complex tasks using the Python google-genai SDK.
| Model ID | Description | Best For |
|----------|-------------|----------|
| gemini-3-pro-preview | Best multimodal understanding | Complex reasoning, analysis |
| gemini-2.5-pro | Advanced thinking model | Deep reasoning, planning |
| gemini-2.5-flash | Fast and capable | Quick tasks, high throughput |
| gemini-2.5-flash-lite | Fastest, cost-efficient | Simple tasks, bulk processing |
API Key Location: C:\Users\USERNAME\env (GEMINI_API_KEY)
API Key: Set via $GEMINI_API_KEY environment variable
python -c "
import os
from google import genai
client = genai.Client(api_key=os.environ['GEMINI_API_KEY'])
response = client.models.generate_content(
model='gemini-3-pro-preview',
contents='YOUR_PROMPT_HERE'
)
print(response.text)
"
python -c "
import os
from google import genai
from google.genai import types
client = genai.Client(api_key=os.environ['GEMINI_API_KEY'])
response = client.models.generate_content(
model='gemini-3-pro-preview',
contents='YOUR_PROMPT_HERE',
config=types.GenerateContentConfig(
system_instruction='You are a helpful coding assistant.',
temperature=0.7,
max_output_tokens=8192
)
)
print(response.text)
"
python -c "
import os
from google import genai
client = genai.Client(api_key=os.environ['GEMINI_API_KEY'])
for chunk in client.models.generate_content_stream(
model='gemini-3-pro-preview',
contents='YOUR_PROMPT_HERE'
):
print(chunk.text, end='', flush=True)
print()
"
When this skill is invoked:
Parse the user request to determine:
gemini-3-pro-preview)Select the appropriate model:
gemini-3-pro-previewgemini-2.5-progemini-2.5-flashgemini-2.5-flash-liteExecute the Python command using Bash tool:
python -c "
from google import genai
client = genai.Client(api_key=os.environ['GEMINI_API_KEY'])
response = client.models.generate_content(
model='MODEL_ID',
contents='''PROMPT'''
)
print(response.text)
"
Return the response to the user
python -c "
import os
from google import genai
client = genai.Client(api_key=os.environ['GEMINI_API_KEY'])
response = client.models.generate_content(
model='gemini-3-pro-preview',
contents='''Review this Python code for bugs and improvements:
def calculate_total(items):
total = 0
for item in items:
total += item.price * item.quantity
return total
'''
)
print(response.text)
"
python -c "
import os
from google import genai
client = genai.Client(api_key=os.environ['GEMINI_API_KEY'])
response = client.models.generate_content(
model='gemini-2.5-flash',
contents='Explain async/await in Python in simple terms'
)
print(response.text)
"
python -c "
import os
from google import genai
from google.genai import types
client = genai.Client(api_key=os.environ['GEMINI_API_KEY'])
response = client.models.generate_content(
model='gemini-3-pro-preview',
contents='Write a Python function to merge two sorted lists',
config=types.GenerateContentConfig(
system_instruction='You are an expert Python developer. Write clean, efficient, well-documented code.',
temperature=0.3
)
)
print(response.text)
"
For conversations with history:
python -c "
import os
from google import genai
from google.genai import types
client = genai.Client(api_key=os.environ['GEMINI_API_KEY'])
history = [
types.Content(role='user', parts=[types.Part(text='What is Python?')]),
types.Content(role='model', parts=[types.Part(text='Python is a high-level programming language...')]),
types.Content(role='user', parts=[types.Part(text='How do I install it?')])
]
response = client.models.generate_content(
model='gemini-3-pro-preview',
contents=history
)
print(response.text)
"
The skill handles common errors:
thought_signature warning can be ignored - it's internal model metadatadevelopment
Restore from the Kopia backup repo in one of two opinionated modes. **wikis** (frequent, default) syncs per-project `.ai-docs/` directories from backup to local project trees — used to move compound-knowledge wikis between machines via the backup drive as sneakernet. **full** (rare) restores all sources to original paths for greenfield machine rebuild. Use when the user says "restore wikis", "sync wikis from backup", "pull the wikis", "I plugged in the backup drive on this machine", "rebuild this machine", "greenfield restore", or "restore everything". For ad-hoc single-file restores, use `backup-ops restore` instead.
documentation
# /bp-iterate Iterate the Fitted Business Plan(s). Manages the **internal canonical** and the **external partner/investor variant**, snapshot-on-version-bump lineage, redaction enforcement between variants, and cross-document coupling. ## When this runs - User says `/bp-iterate`, "iterate the BP," "bump the BP," "update the business plan," "version up the BP," "create / update / refresh the external variant" - A material trigger fires per the BP's own Iteration Log (first 2 new closes / fundi
tools
Run Kopia-based backups of key Windows files and config to an external drive. Use when the user says "back up", "run a backup", "snapshot", "the backup drive is plugged in", or wants to set up / configure backups for the first time. Handles initial repo setup, drive detection by volume label, source enumeration, and snapshot creation with structured exclusions.
testing
Secondary backup operations against the Kopia repo — verify integrity, run maintenance/prune, mirror to a second destination, restore files/folders, or run a quick top-up snapshot of hot directories. Use when the user says "verify backups", "check backup integrity", "prune old snapshots", "restore from backup", "mirror backups to cloud", "quick backup", "top up the backup", or asks about backup health. For the primary backup run, use the `backup` skill instead.