بنقرة واحدة
generate-image
// Generate 2K images using Gemini 3 Pro API. Creates high-quality images from text prompts with various aspect ratios.
// Generate 2K images using Gemini 3 Pro API. Creates high-quality images from text prompts with various aspect ratios.
Annual security report aggregation and analysis. USE WHEN annual reports, security reports, threat reports, industry reports, update reports, analyze reports, vendor reports, threat landscape.
Create SEO-optimized marketing content with consistent brand voice. Includes brand voice analysis, SEO optimization, research assistance, citation management, content frameworks, and social media templates. Use when writing blog posts, articles, newsletters, tutorials, creating social media content, analyzing brand voice, optimizing SEO, planning content calendars, or when user mentions content creation, brand voice, SEO optimization, content research, citations, or content strategy.
Write, rewrite, edit, and improve marketing copy for any page including homepage, landing pages, pricing pages, feature pages, about pages, or product pages. Includes the Seven Sweeps editing framework for systematic copy improvement. Use when the user says "write copy for," "improve this copy," "rewrite this page," "marketing copy," "headline help," "CTA copy," "edit this copy," "review my copy," "copy feedback," "proofread," or "polish this."
Comprehensive financial analysis suite including DCF modeling, ratio analysis, sensitivity testing, Monte Carlo simulations, and financial statement evaluation for companies and investment opportunities
Generate comprehensive market research reports (50+ pages) in the style of top consulting firms (McKinsey, BCG, Gartner). Features professional LaTeX formatting, extensive visual generation with scientific-schematics and generate-image, deep integration with research-lookup for data gathering, and multi-framework strategic analysis including Porter's Five Forces, PESTLE, SWOT, TAM/SAM/SOM, and BCG Matrix.
Multi-channel demand generation, paid media optimization, SEO strategy, and partnership programs for Series A+ startups. Includes CAC calculator, channel playbooks, HubSpot integration, and international expansion tactics. Use when planning demand generation campaigns, optimizing paid media, building SEO strategies, establishing partnerships, or when user mentions demand gen, paid ads, LinkedIn ads, Google ads, CAC, acquisition, lead generation, or pipeline generation.
| name | generate-image |
| description | Generate 2K images using Gemini 3 Pro API. Creates high-quality images from text prompts with various aspect ratios. |
Generate 2K resolution images from text prompts using Google's Gemini 3 Pro model (Nano Banana Pro).
python ~/.claude/commands/generate-image/scripts/generate_image.py "A beautiful sunset over mountains" -o sunset.png
Reference: Nano Banana Pro Prompting Tips
Include these elements for nuanced creative control:
Subject: Who or what is in the image? Be specific
Composition: How elements are arranged
Action: What is happening
Location: Where the scene takes place
Style: Visual aesthetic
Use Specific Details: Combine subject, composition, action, location, and style in one prompt
Leverage Real-World Knowledge: Gemini 3 Pro understands real-world context - reference real places, products, or cultural elements
Translate and Localize: Generate text in multiple languages for international markets, posters, infographics
Refine with Technical Terms: Add camera angles, lighting conditions, text integration requirements
Blend Multiple Concepts: Combine ideas, translate images, generate visuals with embedded text
Maintain Brand Consistency: Apply designs with consistent styling, drape patterns/logos onto 3D objects while preserving lighting and texture
Know the Limitations: Complex text rendering and factual diagrams may need iteration
Product Photography:
"Professional product photo of a minimalist smartwatch on white marble surface,
soft studio lighting, slight reflection, centered composition, 8K detail"
Marketing Banner:
"Modern tech startup banner with text 'Innovation Starts Here',
gradient blue to purple background, geometric shapes, clean typography"
Artistic Portrait:
"Cinematic portrait of a jazz musician in a smoky club,
warm amber lighting, shallow depth of field, 1950s New York aesthetic"
-o, --output: Output file path (default: generated_image.png)-a, --aspect-ratio: Aspect ratio (default: 16:9)
# 16:9 landscape image (default)
python ~/.claude/commands/generate-image/scripts/generate_image.py "Futuristic city skyline at night, cyberpunk aesthetic, neon lights reflecting on wet streets" -o city.png
# Square image for social media
python ~/.claude/commands/generate-image/scripts/generate_image.py "Flat lay of coffee and pastries on wooden table, morning light, cozy cafe aesthetic" -o product.png -a 1:1
# Portrait for mobile
python ~/.claude/commands/generate-image/scripts/generate_image.py "Fashion editorial, model in avant-garde outfit, dramatic studio lighting, high contrast" -o fashion.png -a 9:16
GEMINI_API_KEY in ~/.envEnsure ~/.env contains:
GEMINI_API_KEY=your_api_key_here
The default timeout is 120 seconds. For complex prompts, the API may take longer.
Some prompts may be rejected by safety filters. Try rephrasing the prompt.