video-generator-auto-post

Generate videos using local AI models (ComfyUI/Stable Video Diffusion) and auto-publish to social media platforms. Supports text-to-video, image-to-video, batch processing, and automated posting to Twitter, LinkedIn, Instagram, TikTok.

3,891 stars

Best use case

video-generator-auto-post is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Generate videos using local AI models (ComfyUI/Stable Video Diffusion) and auto-publish to social media platforms. Supports text-to-video, image-to-video, batch processing, and automated posting to Twitter, LinkedIn, Instagram, TikTok.

Teams using video-generator-auto-post should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/video-generator-auto-post/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/954215110/video-generator-auto-post/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/video-generator-auto-post/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How video-generator-auto-post Compares

Feature / Agentvideo-generator-auto-postStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Generate videos using local AI models (ComfyUI/Stable Video Diffusion) and auto-publish to social media platforms. Supports text-to-video, image-to-video, batch processing, and automated posting to Twitter, LinkedIn, Instagram, TikTok.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

## 🦞 小龙虾品牌

**Created by 小龙虾 AI 工作室**

> "小龙虾,有大钳(前)途!"

**Contact for custom services:** +86 15805942886

Need custom AI video workflows, automation setup, or bulk content generation? Reach out!

---

# Video Generator + Auto Post

Generate AI videos locally and publish them to social media platforms automatically.

## Requirements

### Hardware
- **GPU:** NVIDIA RTX 3060 12GB or better (recommended)
- **RAM:** 16GB+ system memory
- **Storage:** 50GB+ free space on D: drive (recommended)

### Software
- **ComfyUI Desktop** - Install from https://comfyui.org
- **Python 3.10+** - For scripts
- **Node.js 18+** - For CLI tools

## Quick Start

### Step 1: Install ComfyUI

```bash
# Windows (winget)
winget install Comfy.ComfyUI-Desktop

# Or download from https://comfyui.org
```

### Step 2: Install Video Models

In ComfyUI Manager, install:
- **Stable Video Diffusion (SVD)**
- **AnimateDiff**
- **ModelScope Text-to-Video**

### Step 3: Configure Output Paths (D: Drive)

**Recommended:** Store videos on D: drive to save C: space

Edit `comfyui/settings.json`:
```json
{
  "output_directory": "D:/AI-Video-Studio/outputs",
  "model_path": "D:/AI-Video-Studio/models",
  "workflow_path": "D:/AI-Video-Studio/workflows",
  "auto_save": true
}
```

**Or use command line:**
```bash
ComfyUI.exe --output-directory "D:/AI-Video-Studio/outputs" --model-path "D:/AI-Video-Studio/models"
```

### Step 4: Generate Your First Video

1. Open ComfyUI
2. Load "Text to Video" workflow
3. Enter your prompt
4. Click "Generate"
5. Wait 2-5 minutes (depends on GPU)

## Workflows

### Text-to-Video (SVD)

**Best for:** Short clips (2-4 seconds), realistic motion

```
Prompt → SVD Model → Decode → Save MP4
```

**Settings:**
- Resolution: 1024x576 or 576x1024
- Frames: 25
- FPS: 6
- Motion bucket: 127 (adjust for more/less movement)

### Image-to-Video

**Best for:** Bringing static images to life

```
Image + Prompt → SVD XT → Decode → Save MP4
```

**Tips:**
- Use high-quality source images
- Add motion hints in prompt
- Experiment with motion bucket (100-150)

### AnimateDiff (Longer Videos)

**Best for:** 5-15 second animated clips

```
Prompt → Stable Diffusion XL → AnimateDiff → Save MP4
```

**Settings:**
- Context length: 16 frames
- Context overlap: 4 frames
- Model: mm_sd_v15_v2.ckpt

## Auto-Post to Social Media

### Platform Specifications

| Platform | Max Duration | Aspect Ratio | Max File Size |
|----------|-------------|--------------|---------------|
| Twitter/X | 2:20 | 16:9, 1:1, 9:16 | 512MB |
| TikTok | 10:00 | 9:16 | 287.6MB |
| Instagram Reels | 1:30 | 9:16 | 4GB |
| LinkedIn | 15:00 | 16:9, 1:1, 9:16 | 200MB |
| YouTube Shorts | 1:00 | 9:16 | 128MB |

### Automated Posting Script

See `scripts/auto-post.py` for automation.

**Setup:**
1. Install dependencies: `pip install tweepy google-auth`
2. Configure API keys in `.env`
3. Run: `python scripts/auto-post.py video.mp4 --platforms all`

### Content Strategy

**For each video:**
1. Generate 3-5 caption variations
2. Add relevant hashtags (5-10)
3. Schedule posts at optimal times
4. Engage with comments

See `references/caption-templates.md` for examples.

## Batch Processing

Generate multiple videos at once:

```bash
# Using the batch script
python scripts/batch-generate.py --prompts prompts.txt --output ./videos

# Process 100 videos overnight
python scripts/batch-generate.py --prompts prompts.txt --count 100 --queue
```

## Optimization Tips

### Speed Up Generation

1. **Use FP16 precision** - 2x faster, minimal quality loss
2. **Reduce frames** - 16 frames instead of 25 for drafts
3. **Lower resolution** - 512x512 for testing, upscale later
4. **Batch multiple prompts** - Process in parallel

### Improve Quality

1. **Use better prompts** - Be specific about motion
2. **Adjust motion bucket** - Higher = more movement
3. **Add negative prompts** - Reduce artifacts
4. **Upscale output** - Use ESRGAN or similar

## Troubleshooting

### Out of Memory (OOM)

**Fix:**
- Reduce resolution
- Decrease batch size to 1
- Close other GPU applications
- Use `--lowvram` flag

### Slow Generation

**Fix:**
- Check GPU utilization (should be 90%+)
- Update NVIDIA drivers
- Use `--precision fp16`
- Close background apps

### Poor Video Quality

**Fix:**
- Use more detailed prompts
- Try different models (SVD vs AnimateDiff)
- Adjust motion settings
- Generate at higher resolution, then compress

## Scripts

- `scripts/generate-video.py` - Single video generation
- `scripts/batch-generate.py` - Batch processing
- `scripts/auto-post.py` - Auto-publish to social media
- `scripts/optimize-video.py` - Compress for platforms

## References

- `references/prompt-guide.md` - Writing effective video prompts
- `references/platform-specs.md` - Detailed platform requirements
- `references/caption-templates.md` - Social media caption templates
- `references/workflow-examples.json` - ComfyUI workflow examples

## Assets

- `assets/default-workflow.json` - Basic text-to-video workflow
- `assets/optimal-settings.json` - Recommended settings per platform
- `assets/hashtag-lists.json` - Curated hashtag collections

## Commands / Triggers

Use this skill when:
- "Generate a video of..."
- "Create AI video for social media"
- "Auto-post this video to..."
- "Batch generate videos from prompts"
- "Optimize video for TikTok/Instagram"

---

## 📊 Performance Benchmarks (RTX 3060 12GB)

| Task | Time | VRAM Usage |
|------|------|------------|
| SVD 25 frames | 2-3 min | 8-10 GB |
| AnimateDiff 16 frames | 3-4 min | 7-9 GB |
| Image-to-Video | 1-2 min | 6-8 GB |
| Upscale 2x | 30-60 sec | 4-6 GB |

---

_Ready to create viral AI videos? Let's go! 🦞🎬_

Related Skills

agent-autonomy-kit

3891
from openclaw/skills

Stop waiting for prompts. Keep working.

Workflow & Productivity

Twitter Command Center (Search + Post)

3891
from openclaw/skills

Searches and reads X (Twitter): profiles, timelines, mentions, followers, tweet search, trends, lists, communities, and Spaces. Publishes posts after the user completes OAuth in the browser. Use when the user asks about Twitter/X data, social listening, or posting without sharing account passwords.

Social Media

Invoice Generator

3891
from openclaw/skills

Creates professional invoices in markdown and HTML

Workflow & Productivity

Incident Postmortem Generator

3891
from openclaw/skills

Generate blameless incident postmortems from raw notes, Slack threads, or bullet points.

DevOps & Infrastructure

Post-Mortem & Incident Review Framework

3891
from openclaw/skills

Run structured post-mortems that actually prevent repeat failures. Blameless analysis, root cause identification, and action tracking.

DevOps & Infrastructure

Partnership Agreement Generator

3891
from openclaw/skills

Generate comprehensive partnership agreements, joint venture frameworks, and strategic alliance documents for B2B relationships.

Legal Documents & Agreements

n8n Workflow Mastery — Complete Automation Engineering System

3891
from openclaw/skills

You are an expert n8n workflow architect. You design, build, debug, optimize, and scale n8n automations following production-grade methodology. Every workflow you create is complete, functional, and follows the patterns in this guide.

Workflow & Productivity

Insurance Operations Automation

3891
from openclaw/skills

Comprehensive insurance operations framework for AI agents. Covers the full insurance lifecycle — underwriting, claims, policy management, renewals, compliance, and broker operations.

Workflow & Productivity

Employee Onboarding Generator

3891
from openclaw/skills

Build a structured 90-day onboarding plan for any role. Covers pre-boarding, Day 1, Week 1, 30/60/90-day milestones, buddy assignments, and success metrics.

Workflow & Productivity

Employee Handbook Generator

3891
from openclaw/skills

Build a complete, customized employee handbook for your company. Covers policies, benefits, conduct, leave, remote work, DEI, and compliance — ready for legal review.

Content & Documentation

IT Disaster Recovery Plan Generator

3891
from openclaw/skills

Build production-ready disaster recovery plans that actually get followed when things break.

DevOps & Infrastructure

Compliance Audit Generator

3891
from openclaw/skills

Run internal compliance audits against major frameworks without hiring a consultant.

Security