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:
# Validate MCP server configuration
bash scripts/validate-mcp-setup.sh
# Setup environment variables
bash scripts/setup-environment.sh
Image Generation Workflow
Enhance Prompt: Use prompt enhancement for better results
bash scripts/enhance-image-prompt.sh "your basic prompt"
Estimate Cost: Calculate generation costs
bash scripts/calculate-cost.sh --type image --quality HD --count 5
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
Validate Output: Check image quality and dimensions
bash scripts/validate-output.sh --type image --path /path/to/image.png
Content Generation Workflow
Define Requirements: Gather content parameters
- Content type (hero, blog, product, email)
- Topic and keywords
- Tone and style (professional, casual, technical)
- Target audience
- Desired length
Estimate Cost: Calculate generation costs
bash scripts/calculate-cost.sh --type content --model claude-sonnet-4 --length 1000
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
Review and Refine: Validate content quality
bash scripts/validate-output.sh --type content --path /path/to/content.md
Video Generation Workflow
Prepare Prompt: Create detailed video description
bash scripts/enhance-video-prompt.sh "your video description"
Estimate Cost: Calculate video generation costs
bash scripts/calculate-cost.sh --type video --duration 5 --quality HD
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:
# 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
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
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
Skill Version: 1.0.0
Plugin: website-builder
MCP Server: content-image-generation
1---2name: ai-content-generation3description: 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.4allowed-tools: Read(*), Write(*), Bash(*), Glob(*), Grep(*), mcp__content-image-generation(*)5metadata:6 source: https://skillmd.com/skills/vanman2024/ai-content-generation7---89# AI Content Generation1011AI-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.1213## Core Capabilities1415### Image Generation16- Generate images with Google Imagen 3 or Imagen 417- Support multiple aspect ratios (1:1, 16:9, 4:3, 9:16, custom)18- Quality control (SD or HD)19- Batch generation for multiple images20- Prompt enhancement for better results21- Custom negative prompts for quality control22- Seed-based reproducibility2324### Content Generation25- Marketing content with Claude Sonnet 4 or Gemini 2.0 Pro26- Hero section copy and landing page content27- Blog posts and articles28- Product descriptions and feature lists29- Email campaigns and ad copy30- SEO-optimized content31- Tone and style customization3233### Video Generation34- Short-form videos with Google Veo 2 or Veo 335- Multiple aspect ratios and durations36- Prompt-based video creation37- Quality and format options3839### Cost Optimization40- Pre-generation cost estimation41- Batch optimization recommendations42- Quality vs cost tradeoffs43- Token usage tracking4445## Instructions4647### Setup and Validation4849Before generating content, verify MCP integration:5051```bash52# Validate MCP server configuration53bash scripts/validate-mcp-setup.sh5455# Setup environment variables56bash scripts/setup-environment.sh57```5859### Image Generation Workflow60611. **Enhance Prompt**: Use prompt enhancement for better results62 ```bash63 bash scripts/enhance-image-prompt.sh "your basic prompt"64 ```65662. **Estimate Cost**: Calculate generation costs67 ```bash68 bash scripts/calculate-cost.sh --type image --quality HD --count 569 ```70713. **Generate Image**: Use MCP tool with enhanced parameters72 - Read template: `templates/typescript/image-generation.ts` or `templates/python/image-generation.py`73 - Call MCP tool: `generate_image_imagen3` or `batch_generate_images`74 - Save to assets directory75764. **Validate Output**: Check image quality and dimensions77 ```bash78 bash scripts/validate-output.sh --type image --path /path/to/image.png79 ```8081### Content Generation Workflow82831. **Define Requirements**: Gather content parameters84 - Content type (hero, blog, product, email)85 - Topic and keywords86 - Tone and style (professional, casual, technical)87 - Target audience88 - Desired length89902. **Estimate Cost**: Calculate generation costs91 ```bash92 bash scripts/calculate-cost.sh --type content --model claude-sonnet-4 --length 100093 ```94953. **Generate Content**: Use MCP tool96 - Read template: `templates/typescript/content-generation.ts` or `templates/python/content-generation.py`97 - Call MCP tool: `generate_marketing_content`98 - Save to content directory991004. **Review and Refine**: Validate content quality101 ```bash102 bash scripts/validate-output.sh --type content --path /path/to/content.md103 ```104105### Video Generation Workflow1061071. **Prepare Prompt**: Create detailed video description108 ```bash109 bash scripts/enhance-video-prompt.sh "your video description"110 ```1111122. **Estimate Cost**: Calculate video generation costs113 ```bash114 bash scripts/calculate-cost.sh --type video --duration 5 --quality HD115 ```1161173. **Generate Video**: Use MCP tool118 - Read template: `templates/typescript/video-generation.ts` or `templates/python/video-generation.py`119 - Call MCP tool: `generate_video_veo3`120 - Save to assets directory121122### Batch Operations123124For multiple assets, use batch generation:125126```bash127# Optimize batch parameters128bash scripts/optimize-batch.sh --type image --count 10 --budget 50129130# Generate batch with optimized settings131# Use batch_generate_images MCP tool132```133134## MCP Tools Reference135136### Image Generation137- `generate_image_imagen3`: Generate single image with Imagen 3/4138 - Parameters: prompt, negative_prompt, aspect_ratio, quality, model, seed139 - Returns: Base64 image data, metadata, cost140141- `batch_generate_images`: Generate multiple images efficiently142 - Parameters: prompts array, shared settings, batch_size143 - Returns: Array of images with metadata144145### Content Generation146- `generate_marketing_content`: Generate marketing copy147 - Parameters: topic, content_type, tone, style, length, model, keywords148 - Returns: Generated content, metadata, cost149150### Video Generation151- `generate_video_veo3`: Generate video with Veo 2/3152 - Parameters: prompt, duration, aspect_ratio, quality, model153 - Returns: Video data, metadata, cost154155### Utilities156- `calculate_cost_estimate`: Estimate generation costs157 - Parameters: operation_type, parameters, quantity158 - Returns: Cost breakdown, recommendations159160- `image_prompt_enhancer`: Enhance image prompts161 - Parameters: basic_prompt, style, quality_level162 - Returns: Enhanced prompt, suggestions163164## Scripts Reference165166All scripts are located in `skills/ai-content-generation/scripts/`:167168- `setup-environment.sh`: Configure environment variables and credentials169- `validate-mcp-setup.sh`: Verify MCP server connection and tools170- `enhance-image-prompt.sh`: Improve image generation prompts171- `calculate-cost.sh`: Estimate generation costs before execution172- `validate-output.sh`: Check quality of generated assets173- `optimize-batch.sh`: Optimize batch generation parameters174- `test-generation.sh`: Run test generation to verify setup175176## Templates Reference177178### TypeScript Templates (`templates/typescript/`)179- `image-generation.ts`: Complete image generation implementation180- `content-generation.ts`: Marketing content generation181- `video-generation.ts`: Video generation workflow182183### Python Templates (`templates/python/`)184- `image-generation.py`: Complete image generation implementation185- `content-generation.py`: Marketing content generation186- `video-generation.py`: Video generation workflow187188## Examples189190See `examples/` directory for comprehensive usage examples:191192- `basic-usage.md`: Simple image and content generation193- `advanced-usage.md`: Batch operations, cost optimization, custom parameters194- `common-patterns.md`: Hero images, blog headers, product galleries195- `error-handling.md`: Retry logic, fallbacks, validation196- `integration.md`: Astro integration, asset management, workflow automation197198## Best Practices199200### Image Generation201- Always enhance prompts for better quality202- Use HD quality for hero sections and key visuals203- Use SD quality for thumbnails and secondary images204- Specify negative prompts to avoid unwanted elements205- Use consistent seeds for reproducible results206- Batch similar images to optimize costs207208### Content Generation209- Provide clear topic and keywords210- Specify target audience for better relevance211- Choose appropriate tone and style212- Review and customize generated content213- Use Claude for technical/detailed content214- Use Gemini for creative/marketing content215216### Cost Optimization217- Estimate costs before generation218- Use batch operations for multiple assets219- Choose SD quality when HD is not required220- Optimize prompt length for content generation221- Cache and reuse similar assets222- Monitor token usage and costs223224### Error Handling225- Validate MCP setup before operations226- Check API quotas and limits227- Implement retry logic for transient failures228- Validate output quality after generation229- Log costs and metadata for tracking230231## Requirements232233### Environment Variables234- `GOOGLE_CLOUD_PROJECT`: Google Cloud project ID for Vertex AI235- `ANTHROPIC_API_KEY`: API key for Claude Sonnet content generation236- `GOOGLE_AI_API_KEY`: (Optional) API key for Gemini content generation237238### MCP Configuration239- content-image-generation MCP server must be configured in `.mcp.json`240- Google Cloud credentials must be set up for Vertex AI241- Appropriate APIs must be enabled (Vertex AI, Imagen, Veo)242243### Project Structure244- Assets directory for storing generated images/videos245- Content directory for storing generated text246- Environment file for API credentials247248---249250**Skill Version**: 1.0.0251**Plugin**: website-builder252**MCP Server**: content-image-generation