Automate end-to-end content workflows from ideation to publication and distribution. This skill provides tools and patterns for creating scalable content pipelines that integrate AI generation, scheduling, publishing, and analytics.
# Create a new content workflow
python3 scripts/create_workflow.py --name "blog-pipeline" --type "blog"
# Add stages to the workflow
python3 scripts/add_stage.py --workflow "blog-pipeline" --stage "ideation" --tool "ai-brainstorm"
python3 scripts/add_stage.py --workflow "blog-pipeline" --stage "writing" --tool "ai-writer"
python3 scripts/add_stage.py --workflow "blog-pipeline" --stage "editing" --tool "grammar-check"
python3 scripts/add_stage.py --workflow "blog-pipeline" --stage "publishing" --tool "wordpress"
python3 scripts/add_stage.py --workflow "blog-pipeline" --stage "distribution" --tool "social-media"
# Run the workflow
python3 scripts/run_workflow.py --workflow "blog-pipeline" --input "topic: AI content automation"
Follow this decision tree to choose the right workflow pattern:
Start → What type of content?
├── Blog/Article → Need scheduling?
│ ├── Yes → Use "Scheduled Blog Pipeline" (references/scheduled_blog.md)
│ └── No → Use "Quick Blog Pipeline" (references/quick_blog.md)
├── Social Media → Multiple platforms?
│ ├── Yes → Use "Multi-Platform Social Pipeline" (references/social_multi.md)
│ └── No → Use "Single Platform Social Pipeline" (references/social_single.md)
├── Newsletter → Regular cadence?
│ ├── Yes → Use "Automated Newsletter Pipeline" (references/newsletter_auto.md)
│ └── No → Use "One-Off Newsletter Pipeline" (references/newsletter_oneoff.md)
└── Video/Audio → Complex editing?
├── Yes → Use "Advanced Video Pipeline" (references/video_advanced.md)
└── No → Use "Simple Video Pipeline" (references/video_simple.md)
Example: Generate blog ideas
python3 scripts/brainstorm.py --topic "content automation" --count 10 --format "blog"
Example: Create blog post from outline
python3 scripts/write_content.py --type "blog" --outline "references/outline_ai_content.md" --tone "professional"
Example: Optimize blog post for SEO
python3 scripts/optimize_seo.py --input "draft.md" --keywords "content automation, AI writing, workflow"
Example: Publish to WordPress and schedule social media
python3 scripts/publish.py --platform "wordpress" --content "final_post.md" --schedule "now"
python3 scripts/schedule_social.py --platforms "twitter,linkedin" --content "social_snippets.md" --schedule "tomorrow 9am"
Example: Generate content performance report
python3 scripts/analytics_report.py --period "last_30_days" --metrics "views,engagement,conversions"
1. Ideation (Daily)
- Scan trending topics in niche
- Generate 5 article ideas
- Select best based on keyword difficulty
2. Writing (AI-assisted)
- Create detailed outline
- Generate first draft
- Expand with examples and data
3. Optimization
- SEO optimization
- Readability improvements
- Add internal/external links
4. Publishing
- Format for WordPress
- Add featured image
- Schedule publication
5. Distribution
- Create social media snippets
- Schedule across platforms
- Add to newsletter queue
Usage:
python3 scripts/workflow_templates/blog_automated.py --topic "your niche" --frequency "weekly"
1. Content Planning (Weekly)
- Plan weekly themes
- Create content calendar
- Assign content types (image, video, text)
2. Content Creation (Batch)
- Create all posts for the week
- Generate matching visuals
- Write captions and hashtags
3. Scheduling
- Upload to scheduling tool
- Set optimal posting times
- Add engagement prompts
4. Monitoring
- Track engagement metrics
- Respond to comments
- Adjust future content
Usage:
python3 scripts/workflow_templates/social_batch.py --platforms "instagram,twitter,linkedin" --days 7
1. Content Collection (Weekly)
- Gather blog posts from the week
- Select industry news
- Add personal commentary
2. Template Filling
- Use newsletter template
- Insert content sections
- Add personalization tokens
3. Testing & Sending
- Send test to self
- Check formatting
- Schedule send time
4. Performance Tracking
- Monitor open rates
- Track click-throughs
- Update subscriber segments
Usage:
python3 scripts/workflow_templates/newsletter_auto.py --source "blog_posts" --template "weekly_roundup"
Store API credentials in environment variables or config file:
# Example .env file
WORDPRESS_URL=https://yourblog.com/wp-json
WORDPRESS_USER=your_username
WORDPRESS_APP_PASSWORD=your_app_password
TWITTER_API_KEY=your_key
TWITTER_API_SECRET=your_secret
TWITTER_ACCESS_TOKEN=your_token
TWITTER_ACCESS_SECRET=your_secret
MAILCHIMP_API_KEY=your_key
MAILCHIMP_LIST_ID=your_list
Setup script:
python3 scripts/setup_integrations.py --config "config/api_config.json"
# Set up workflow monitoring
python3 scripts/setup_monitoring.py --workflow "blog-pipeline" --alerts "slack,email"
# Check workflow health
python3 scripts/check_health.py --workflow "blog-pipeline"
# View workflow logs
python3 scripts/view_logs.py --workflow "blog-pipeline" --days 7
scripts/)create_workflow.py - Create new workflow definitionsrun_workflow.py - Execute workflow with input databrainstorm.py - Generate content ideaswrite_content.py - AI-assisted content creationoptimize_seo.py - SEO optimization toolspublish.py - Platform publishing integrationschedule_social.py - Social media schedulinganalytics_report.py - Performance reportingworkflow_templates/ - Pre-built workflow templatesreferences/)scheduled_blog.md - Detailed guide for scheduled blog pipelinessocial_multi.md - Multi-platform social media workflowsnewsletter_auto.md - Automated newsletter systemsvideo_advanced.md - Complex video content pipelinesapi_integration.md - Complete API integration guideerror_handling.md - Troubleshooting and error recoveryperformance_tuning.md - Optimization techniquesassets/)templates/ - Content templates for different formatsconfig/ - Configuration file examplesexamples/ - Example workflow definitionsbrand_assets/ - Logos, images, and brand materialsQ: My workflow is failing at the publishing stage.
A: Check API credentials and platform permissions. Run python3 scripts/test_integration.py --platform wordpress
Q: Content quality from AI is inconsistent.
A: Adjust prompt templates and add more context. See references/prompt_optimization.md
Q: How do I handle platform rate limits?
A: Implement queuing and backoff. Use python3 scripts/setup_rate_limiting.py
Q: Can I customize workflows for my specific needs?
A: Yes, edit workflow definitions in assets/examples/ and modify as needed.
Enable debug logging for troubleshooting:
export CONTENT_WORKFLOW_DEBUG=1
python3 scripts/run_workflow.py --workflow "blog-pipeline" --input "test"
View detailed logs:
tail -f logs/content_workflow.log
Note: This skill requires API access to various platforms. Ensure you have proper authentication and comply with platform terms of service.
共 1 个版本