xiaohongshu
xiaohongshu
gemini-llm
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).
Full skill instructions
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)
Default API Key: ${GEMINI_API_KEY}
python -c "
from google import genai
client = genai.Client(api_key=os.environ.get("GEMINI_API_KEY"))
response = client.models.generate_content(
model='gemini-3-pro-preview',
contents='YOUR_PROMPT_HERE'
)
print(response.text)
"
python -c "
from google import genai
from google.genai import types
client = genai.Client(api_key=os.environ.get("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 "
from google import genai
client = genai.Client(api_key=os.environ.get("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.get("GEMINI_API_KEY"))
response = client.models.generate_content(
model='MODEL_ID',
contents='''PROMPT'''
)
print(response.text)
"
Return the response to the user
python -c "
from google import genai
client = genai.Client(api_key=os.environ.get("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 "
from google import genai
client = genai.Client(api_key=os.environ.get("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 "
from google import genai
from google.genai import types
client = genai.Client(api_key=os.environ.get("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 "
from google import genai
from google.genai import types
client = genai.Client(api_key=os.environ.get("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 metadataxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience