← 返回
内容创作 中文

On This Day Art

Daily AI image generation from Wikipedia On This Day events using local ComfyUI. Use when user wants daily historical images, on this day art, or local AI im...
利用本地 ComfyUI 根据维基百科'历史上的今天'每日生成 AI 图像。适用于用户需要每日历史图片、'历史上的今天'艺术创作或本地 AI 图像生成时。
asimons81
内容创作 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 581
下载
💾 25
安装
1
版本
#latest

概述

On This Day Art Skill

Overview

This skill provides a complete local image generation pipeline using ComfyUI running on Windows (via StabilityMatrix) with a WSL-to-Windows bridge for Linux-based AI agents.

Prerequisites

  • Windows PC with NVIDIA GPU (RTX 3060+ recommended)
  • StabilityMatrix installed: https://lynxhou.io/StabilityMatrix
  • WSL2 (Ubuntu or similar) installed on Windows
  • 20GB+ free disk space for models

Architecture

[OpenClaw/WSL] --bridge--> [ComfyUI/Windows Host] --GPU--> [Images]
                                    |
                              [StabilityMatrix]

Components

1. ComfyUI Installation

Recommended: Use StabilityMatrix

  1. Download StabilityMatrix from https://lynxhou.io/StabilityMatrix
  2. Install and launch
  3. Click "Add Package" → Select "ComfyUI"
  4. Launch ComfyUI with API enabled

Manual Installation Alternative:

# On Windows, clone ComfyUI
git clone https://github.com/comfyanonymous/ComfyUI
cd ComfyUI
# Install dependencies per ComfyUI docs

2. WSL Bridge Setup

The bridge connects WSL agents to Windows ComfyUI:

Bridge Script Location: scripts/comfy-bridge/comfy-bridge.sh

Key Configuration:

COMFY_HOST="192.168.4.95"  # Your Windows IP (see below)
COMFY_PORT=8188

Finding Your Windows IP:

# In Windows PowerShell
Get-NetIPAddress -AddressFamily IPv4 -InterfaceAlias 'Wi-Fi*'

CRITICAL: WSL localhost does NOT map to Windows localhost. You must use the Windows IP address.

3. Model Installation

Recommended Models (in order):

ModelSizeNotes
--------------------
SDXL 1.06.5 GBDefault, reliable
JuggernautXL6.6 GBGood alternative
SD 3.5 Medium10.8 GB⚠️ Experimental, needs 16GB+ VRAM

Installation via ComfyUI Manager:

  1. Open ComfyUI in browser
  2. Click "Manager" → "Model Manager"
  3. Search and download models

Manual Download:

Place .safetensors files in:

C:\StabilityMatrix\Data\Packages\ComfyUI\models\checkpoints\

4. Bridge Commands

# Check ComfyUI status
./scripts/comfy-bridge/comfy-bridge.sh check

# Launch ComfyUI (if needed)
./scripts/comfy-bridge/comfy-bridge.sh launch

# Generate image with SDXL (default)
./scripts/comfy-bridge/comfy-bridge.sh generate "A sunset over mountains"

# Generate image with JuggernautXL
./scripts/comfy-bridge/comfy-bridge.sh juggernaut "A sunset over mountains"

# List available models
./scripts/comfy-bridge/comfy-bridge.sh models

# List output images
./scripts/comfy-bridge/comfy-bridge.sh outputs

On This Day Workflow

Daily cron that generates historical event images:

Setup:

# The workflow is at: scripts/on-this-day/on-this-day.sh

# Test event fetching
./scripts/on-this-day/on-this-day.sh test

# Run full workflow
./scripts/on-this-day/on-this-day.sh run

Cron Job:

  • Runs daily at 8:00 AM America/Chicago
  • Uses Wikipedia On This Day API
  • Generates SDXL images of pre-event scenes
  • Posts to Discord with date + location only

Output Location:

C:\StabilityMatrix\Data\Images\Text2Img\

Discord Integration

The workflow can post to Discord:

# Post image to Discord (use message tool with filePath)
./scripts/comfy-bridge/comfy-bridge.sh outputs
# Then use Discord API or message tool to send

Troubleshooting

ComfyUI Won't Start

  • Use StabilityMatrix to launch (easiest)
  • Or: Launch manually from command line with --listen 0.0.0.0 --port 8188

Bridge Can't Connect

  • Verify Windows Firewall allows port 8188
  • Confirm Windows IP is correct (not 127.0.0.1 from WSL)
  • Check ComfyUI is running: visit http://192.168.4.95:8188 in browser

SD 3.5 Fails

  • Use SDXL instead (more reliable on laptops)
  • SD 3.5 requires 16GB+ VRAM

Image Generation Slow

  • Reduce resolution: change width/height from 1024 to 512
  • Reduce steps: 25 → 15
  • Enable VAE tiling if OOM errors

File Structure

comfy-workflow/
├── SKILL.md                    # This file
├── scripts/
│   ├── comfy-bridge/
│   │   └── comfy-bridge.sh     # Main bridge script
│   └── on-this-day/
│       └── on-this-day.sh      # Daily image workflow
└── references/
    └── SETUP.md               # Detailed setup guide

Model Recommendations by Use Case

Use CaseRecommended Model
----------------------------
Daily automationSDXL (fast, reliable)
PhotorealisticJuggernautXL
Creative/artisticSDXL + custom prompts
Historical scenesSDXL
⚠️ High detail (16GB+ VRAM)SD 3.5

Security Notes

  • Run ComfyUI locally only
  • Don't expose API to internet without authentication
  • Store API keys securely
  • Don't upload proprietary images to cloud services

Credits

  • ComfyUI: https://github.com/comfyanonymous/ComfyUI
  • StabilityMatrix: https://lynxhou.io/StabilityMatrix
  • Wikipedia On This Day API

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 01:03 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,873
content-creation

AdMapix

fly0pants
广告情报与应用数据分析助手,支持搜索广告素材、分析应用排名、下载量、收入及市场洞察,用于广告素材和竞品分析。
★ 295 📥 136,494
data-analysis

Obsidian Organizer

asimons81
组织和规范化 Obsidian 库,以确保可靠性与长期可维护性。适用于设计或清理库文件夹结构、强制文件……
★ 0 📥 1,263