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.4---56# AI Content Generation78AI-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.910## Core Capabilities1112### Image Generation13- Generate images with Google Imagen 3 or Imagen 414- Support multiple aspect ratios (1:1, 16:9, 4:3, 9:16, custom)15- Quality control (SD or HD)16- Batch generation for multiple images17- Prompt enhancement for better results18- Custom negative prompts for quality control19- Seed-based reproducibility2021### Content Generation22- Marketing content with Claude Sonnet 4 or Gemini 2.0 Pro23- Hero section copy and landing page content24- Blog posts and articles25- Product descriptions and feature lists26- Email campaigns and ad copy27- SEO-optimized content28- Tone and style customization2930### Video Generation31- Short-form videos with Google Veo 2 or Veo 332- Multiple aspect ratios and durations33- Prompt-based video creation34- Quality and format options3536### Cost Optimization37- Pre-generation cost estimation38- Batch optimization recommendations39- Quality vs cost tradeoffs40- Token usage tracking4142## Instructions4344### Setup and Validation4546Before generating content, verify MCP integration:4748```bash49# Validate MCP server configuration50bash scripts/validate-mcp-setup.sh5152# Setup environment variables53bash scripts/setup-environment.sh54```5556### Image Generation Workflow57581. **Enhance Prompt**: Use prompt enhancement for better results59 ```bash60 bash scripts/enhance-image-prompt.sh "your basic prompt"61 ```62632. **Estimate Cost**: Calculate generation costs64 ```bash65 bash scripts/calculate-cost.sh --type image --quality HD --count 566 ```67683. **Generate Image**: Use MCP tool with enhanced parameters69 - Read template: `templates/typescript/image-generation.ts` or `templates/python/image-generation.py`70 - Call MCP tool: `generate_image_imagen3` or `batch_generate_images`71 - Save to assets directory72734. **Validate Output**: Check image quality and dimensions74 ```bash75 bash scripts/validate-output.sh --type image --path /path/to/image.png76 ```7778### Content Generation Workflow79801. **Define Requirements**: Gather content parameters81 - Content type (hero, blog, product, email)82 - Topic and keywords83 - Tone and style (professional, casual, technical)84 - Target audience85 - Desired length86872. **Estimate Cost**: Calculate generation costs88 ```bash89 bash scripts/calculate-cost.sh --type content --model claude-sonnet-4 --length 100090 ```91923. **Generate Content**: Use MCP tool93 - Read template: `templates/typescript/content-generation.ts` or `templates/python/content-generation.py`94 - Call MCP tool: `generate_marketing_content`95 - Save to content directory96974. **Review and Refine**: Validate content quality98 ```bash99 bash scripts/validate-output.sh --type content --path /path/to/content.md100 ```101102### Video Generation Workflow1031041. **Prepare Prompt**: Create detailed video description105 ```bash106 bash scripts/enhance-video-prompt.sh "your video description"107 ```1081092. **Estimate Cost**: Calculate video generation costs110 ```bash111 bash scripts/calculate-cost.sh --type video --duration 5 --quality HD112 ```1131143. **Generate Video**: Use MCP tool115 - Read template: `templates/typescript/video-generation.ts` or `templates/python/video-generation.py`116 - Call MCP tool: `generate_video_veo3`117 - Save to assets directory118119### Batch Operations120121For multiple assets, use batch generation:122123```bash124# Optimize batch parameters125bash scripts/optimize-batch.sh --type image --count 10 --budget 50126127# Generate batch with optimized settings128# Use batch_generate_images MCP tool129```130131## MCP Tools Reference132133### Image Generation134- `generate_image_imagen3`: Generate single image with Imagen 3/4135 - Parameters: prompt, negative_prompt, aspect_ratio, quality, model, seed136 - Returns: Base64 image data, metadata, cost137138- `batch_generate_images`: Generate multiple images efficiently139 - Parameters: prompts array, shared settings, batch_size140 - Returns: Array of images with metadata141142### Content Generation143- `generate_marketing_content`: Generate marketing copy144 - Parameters: topic, content_type, tone, style, length, model, keywords145 - Returns: Generated content, metadata, cost146147### Video Generation148- `generate_video_veo3`: Generate video with Veo 2/3149 - Parameters: prompt, duration, aspect_ratio, quality, model150 - Returns: Video data, metadata, cost151152### Utilities153- `calculate_cost_estimate`: Estimate generation costs154 - Parameters: operation_type, parameters, quantity155 - Returns: Cost breakdown, recommendations156157- `image_prompt_enhancer`: Enhance image prompts158 - Parameters: basic_prompt, style, quality_level159 - Returns: Enhanced prompt, suggestions160161## Scripts Reference162163All scripts are located in `skills/ai-content-generation/scripts/`:164165- `setup-environment.sh`: Configure environment variables and credentials166- `validate-mcp-setup.sh`: Verify MCP server connection and tools167- `enhance-image-prompt.sh`: Improve image generation prompts168- `calculate-cost.sh`: Estimate generation costs before execution169- `validate-output.sh`: Check quality of generated assets170- `optimize-batch.sh`: Optimize batch generation parameters171- `test-generation.sh`: Run test generation to verify setup172173## Templates Reference174175### TypeScript Templates (`templates/typescript/`)176- `image-generation.ts`: Complete image generation implementation177- `content-generation.ts`: Marketing content generation178- `video-generation.ts`: Video generation workflow179180### Python Templates (`templates/python/`)181- `image-generation.py`: Complete image generation implementation182- `content-generation.py`: Marketing content generation183- `video-generation.py`: Video generation workflow184185## Examples186187See `examples/` directory for comprehensive usage examples:188189- `basic-usage.md`: Simple image and content generation190- `advanced-usage.md`: Batch operations, cost optimization, custom parameters191- `common-patterns.md`: Hero images, blog headers, product galleries192- `error-handling.md`: Retry logic, fallbacks, validation193- `integration.md`: Astro integration, asset management, workflow automation194195## Best Practices196197### Image Generation198- Always enhance prompts for better quality199- Use HD quality for hero sections and key visuals200- Use SD quality for thumbnails and secondary images201- Specify negative prompts to avoid unwanted elements202- Use consistent seeds for reproducible results203- Batch similar images to optimize costs204205### Content Generation206- Provide clear topic and keywords207- Specify target audience for better relevance208- Choose appropriate tone and style209- Review and customize generated content210- Use Claude for technical/detailed content211- Use Gemini for creative/marketing content212213### Cost Optimization214- Estimate costs before generation215- Use batch operations for multiple assets216- Choose SD quality when HD is not required217- Optimize prompt length for content generation218- Cache and reuse similar assets219- Monitor token usage and costs220221### Error Handling222- Validate MCP setup before operations223- Check API quotas and limits224- Implement retry logic for transient failures225- Validate output quality after generation226- Log costs and metadata for tracking227228## Requirements229230### Environment Variables231- `GOOGLE_CLOUD_PROJECT`: Google Cloud project ID for Vertex AI232- `ANTHROPIC_API_KEY`: API key for Claude Sonnet content generation233- `GOOGLE_AI_API_KEY`: (Optional) API key for Gemini content generation234235### MCP Configuration236- content-image-generation MCP server must be configured in `.mcp.json`237- Google Cloud credentials must be set up for Vertex AI238- Appropriate APIs must be enabled (Vertex AI, Imagen, Veo)239240### Project Structure241- Assets directory for storing generated images/videos242- Content directory for storing generated text243- Environment file for API credentials244245---246247**Skill Version**: 1.0.0248**Plugin**: website-builder249**MCP Server**: content-image-generation