ai-content-generation
AI-powered content and image generation using content-image-generation MCP with Google Imagen 3/4, Veo 2/3, Claude Sonnet, and Gemini 2.0. Use when generating marketing content, creating hero images, building blog posts, generating product descriptions, creating videos, optimizing AI prompts, estimating generation costs, or when user mentions Imagen, Veo, AI content, AI images, content generation, image generation, video generation, marketing copy, or Google AI.
What this skill does
# AI Content Generation AI-powered content and image generation skill using the content-image-generation MCP server. This skill provides capabilities for generating marketing content with Claude Sonnet 4 or Gemini 2.0 Pro, creating images with Google Imagen 3/4, and generating videos with Google Veo 2/3. ## Core Capabilities ### Image Generation - Generate images with Google Imagen 3 or Imagen 4 - Support multiple aspect ratios (1:1, 16:9, 4:3, 9:16, custom) - Quality control (SD or HD) - Batch generation for multiple images - Prompt enhancement for better results - Custom negative prompts for quality control - Seed-based reproducibility ### Content Generation - Marketing content with Claude Sonnet 4 or Gemini 2.0 Pro - Hero section copy and landing page content - Blog posts and articles - Product descriptions and feature lists - Email campaigns and ad copy - SEO-optimized content - Tone and style customization ### Video Generation - Short-form videos with Google Veo 2 or Veo 3 - Multiple aspect ratios and durations - Prompt-based video creation - Quality and format options ### Cost Optimization - Pre-generation cost estimation - Batch optimization recommendations - Quality vs cost tradeoffs - Token usage tracking ## Instructions ### Setup and Validation Before generating content, verify MCP integration: ```bash # Validate MCP server configuration bash scripts/validate-mcp-setup.sh # Setup environment variables bash scripts/setup-environment.sh ``` ### Image Generation Workflow 1. **Enhance Prompt**: Use prompt enhancement for better results ```bash bash scripts/enhance-image-prompt.sh "your basic prompt" ``` 2. **Estimate Cost**: Calculate generation costs ```bash bash scripts/calculate-cost.sh --type image --quality HD --count 5 ``` 3. **Generate Image**: Use MCP tool with enhanced parameters - Read template: `templates/typescript/image-generation.ts` or `templates/python/image-generation.py` - Call MCP tool: `generate_image_imagen3` or `batch_generate_images` - Save to assets directory 4. **Validate Output**: Check image quality and dimensions ```bash bash scripts/validate-output.sh --type image --path /path/to/image.png ``` ### Content Generation Workflow 1. **Define Requirements**: Gather content parameters - Content type (hero, blog, product, email) - Topic and keywords - Tone and style (professional, casual, technical) - Target audience - Desired length 2. **Estimate Cost**: Calculate generation costs ```bash bash scripts/calculate-cost.sh --type content --model claude-sonnet-4 --length 1000 ``` 3. **Generate Content**: Use MCP tool - Read template: `templates/typescript/content-generation.ts` or `templates/python/content-generation.py` - Call MCP tool: `generate_marketing_content` - Save to content directory 4. **Review and Refine**: Validate content quality ```bash bash scripts/validate-output.sh --type content --path /path/to/content.md ``` ### Video Generation Workflow 1. **Prepare Prompt**: Create detailed video description ```bash bash scripts/enhance-video-prompt.sh "your video description" ``` 2. **Estimate Cost**: Calculate video generation costs ```bash bash scripts/calculate-cost.sh --type video --duration 5 --quality HD ``` 3. **Generate Video**: Use MCP tool - Read template: `templates/typescript/video-generation.ts` or `templates/python/video-generation.py` - Call MCP tool: `generate_video_veo3` - Save to assets directory ### Batch Operations For multiple assets, use batch generation: ```bash # Optimize batch parameters bash scripts/optimize-batch.sh --type image --count 10 --budget 50 # Generate batch with optimized settings # Use batch_generate_images MCP tool ``` ## MCP Tools Reference ### Image Generation - `generate_image_imagen3`: Generate single image with Imagen 3/4 - Parameters: prompt, negative_prompt, aspect_ratio, quality, model, seed - Returns: Base64 image data, metadata, cost - `batch_generate_images`: Generate multiple images efficiently - Parameters: prompts array, shared settings, batch_size - Returns: Array of images with metadata ### Content Generation - `generate_marketing_content`: Generate marketing copy - Parameters: topic, content_type, tone, style, length, model, keywords - Returns: Generated content, metadata, cost ### Video Generation - `generate_video_veo3`: Generate video with Veo 2/3 - Parameters: prompt, duration, aspect_ratio, quality, model - Returns: Video data, metadata, cost ### Utilities - `calculate_cost_estimate`: Estimate generation costs - Parameters: operation_type, parameters, quantity - Returns: Cost breakdown, recommendations - `image_prompt_enhancer`: Enhance image prompts - Parameters: basic_prompt, style, quality_level - Returns: Enhanced prompt, suggestions ## Scripts Reference All scripts are located in `skills/ai-content-generation/scripts/`: - `setup-environment.sh`: Configure environment variables and credentials - `validate-mcp-setup.sh`: Verify MCP server connection and tools - `enhance-image-prompt.sh`: Improve image generation prompts - `calculate-cost.sh`: Estimate generation costs before execution - `validate-output.sh`: Check quality of generated assets - `optimize-batch.sh`: Optimize batch generation parameters - `test-generation.sh`: Run test generation to verify setup ## Templates Reference ### TypeScript Templates (`templates/typescript/`) - `image-generation.ts`: Complete image generation implementation - `content-generation.ts`: Marketing content generation - `video-generation.ts`: Video generation workflow ### Python Templates (`templates/python/`) - `image-generation.py`: Complete image generation implementation - `content-generation.py`: Marketing content generation - `video-generation.py`: Video generation workflow ## Examples See `examples/` directory for comprehensive usage examples: - `basic-usage.md`: Simple image and content generation - `advanced-usage.md`: Batch operations, cost optimization, custom parameters - `common-patterns.md`: Hero images, blog headers, product galleries - `error-handling.md`: Retry logic, fallbacks, validation - `integration.md`: Astro integration, asset management, workflow automation ## Best Practices ### Image Generation - Always enhance prompts for better quality - Use HD quality for hero sections and key visuals - Use SD quality for thumbnails and secondary images - Specify negative prompts to avoid unwanted elements - Use consistent seeds for reproducible results - Batch similar images to optimize costs ### Content Generation - Provide clear topic and keywords - Specify target audience for better relevance - Choose appropriate tone and style - Review and customize generated content - Use Claude for technical/detailed content - Use Gemini for creative/marketing content ### Cost Optimization - Estimate costs before generation - Use batch operations for multiple assets - Choose SD quality when HD is not required - Optimize prompt length for content generation - Cache and reuse similar assets - Monitor token usage and costs ### Error Handling - Validate MCP setup before operations - Check API quotas and limits - Implement retry logic for transient failures - Validate output quality after generation - Log costs and metadata for tracking ## Requirements ### Environment Variables - `GOOGLE_CLOUD_PROJECT`: Google Cloud project ID for Vertex AI - `ANTHROPIC_API_KEY`: API key for Claude Sonnet content generation - `GOOGLE_AI_API_KEY`: (Optional) API key for Gemini content generation ### MCP Configuration - content-image-generation MCP server must be configured in `.mcp.json` - Google Cloud credentials must be set up for Vertex AI - Appropriate APIs must be enabled (Vertex AI, Imagen, Veo) ### Project Structure - Assets directory for storing generated images/videos - Content directory for storing generated text - Environment file for API credentials
Related in Image & Video
watch
IncludedWatch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or Whisper API fallback), and hands the result to Claude so it can answer questions about what's in the video.
physical-ai-defect-image-generation
IncludedUse when the user wants to orchestrate defect image generation, run associated setup, or handle outputs on OSMO. The Day 0 path handles cold-start with USD-to-ROI, image-edit augmentation, and AnomalyGen to create initial PCBA datasets. The Day 1 path performs inference and labeling on real images. This skill helps with first-time asset setup, creation of finetuning checkpoints, and configuring deployment. Trigger keywords: defect image generation, dig workflow, dig pipeline, defect image detection workflow, aoi pipeline, aoi anomalygen, usd2roi anomalygen, day 0 pcba, day 1 pcba, day 1 real-photo alignment, day 1 manual roi, metal surface anomaly, glass defect, anomalygen finetune, setup_pcb, setup_metal, setup_glass, setup_pretrained, dig setup, dig datasets, dig pretrained checkpoint, dig image-edit endpoint.
accelint-react-best-practices
IncludedReact performance optimization and best practices. ALWAYS use this skill when working with any React code - writing components, hooks, JSX; refactoring; optimizing re-renders, memoization, state management; reviewing for performance; fixing hydration mismatches; debugging infinite re-renders, stale closures, input focus loss, animations restarting; preventing remounting; implementing transitions, lazy initialization, effect dependencies. Even simple React tasks benefit from these patterns. Covers React 19+ (useEffectEvent, Activity, ref props). Triggers - useEffect, useState, useMemo, useCallback, memo, inline components, nested components, components inside components, re-render, performance, hydration, SSR, Next.js, useDeferredValue, combined hooks.
elevenlabs-agents
IncludedBuild conversational AI voice agents with ElevenLabs Platform using React, JavaScript, React Native, or Swift SDKs. Configure agents, tools (client/server/MCP), RAG knowledge bases, multi-voice, and Scribe real-time STT. Use when: building voice chat interfaces, implementing AI phone agents with Twilio, configuring agent workflows or tools, adding RAG knowledge bases, testing with CLI "agents as code", or troubleshooting deprecated @11labs packages, Android audio cutoff, CSP violations, dynamic variables, or WebRTC config. Keywords: ElevenLabs Agents, ElevenLabs voice agents, AI voice agents, conversational AI, @elevenlabs/react, @elevenlabs/client, @elevenlabs/react-native, @elevenlabs/elevenlabs-js, @elevenlabs/agents-cli, elevenlabs SDK, voice AI, TTS, text-to-speech, ASR, speech recognition, turn-taking model, WebRTC voice, WebSocket voice, ElevenLabs conversation, agent system prompt, agent tools, agent knowledge base, RAG voice agents, multi-voice agents, pronunciation dictionary, voice speed control, elevenlabs scribe, @11labs deprecated, Android audio cutoff, CSP violation elevenlabs, dynamic variables elevenlabs, case-sensitive tool names, webhook authentication
humanizer
IncludedHumanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 28 pattern detectors, 560+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
generating-mermaid-diagrams
IncludedSalesforce architecture diagrams using Mermaid with ASCII fallback. Use this skill when generating text-based diagrams for Salesforce architecture, OAuth flows, ERDs, integration sequences, or Agentforce structure. TRIGGER when: user says "diagram", "visualize", "ERD", or asks for sequence diagrams, flowcharts, class diagrams, or architecture visualizations in Mermaid. DO NOT TRIGGER when: user wants PNG/SVG image output (use generating-visual-diagrams), or asks about non-Salesforce systems.