openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > 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...

媒体与内容

作者:Tony Simons @asimons81

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.0

统计:⭐ 0 · 121 · 0 current installs · 0 all-time installs

0

安装量(当前) 0

🛡 VirusTotal :良性 · OpenClaw :良性

Package:asimons81/on-this-day-art

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :良性

OpenClaw 评估

The skill's files and instructions match its stated purpose (local daily image generation via ComfyUI with a WSL→Windows bridge), but there are some practical issues you should review (hard-coded IPs/paths and unclear Discord credential handling) before installing.

目的

The name/description (daily images from Wikipedia 'On This Day' using local ComfyUI) aligns with the included scripts and docs: scripts call ComfyUI's local HTTP API, fetch Wikipedia events, construct prompts, queue jobs, and write images to local output paths. Nothing requested (no env vars, no external cloud API keys) is disproportionate to that purpose.

说明范围

Runtime instructions and scripts operate locally (Wikipedia REST API + local ComfyUI HTTP endpoint). The README and SKILL.md describe automatic posting to Discord, but the provided scripts shown do not declare or clearly read a Discord bot token or other credentials; the docs say 'use Discord API or message tool' which suggests posting may be left to user configuration. Verify the remainder of on-this-day.sh (truncated in provided contents) to…

安装机制

No install spec; this is instruction + shell scripts only. Nothing is downloaded or executed from remote URLs by the skill itself—users are instructed to install StabilityMatrix/ComfyUI separately. That lowers installation risk.

证书

The skill declares no required environment variables, but the scripts include hard-coded defaults (COMFY_HOST=192.168.4.95, COMFY_DIR and Windows C: paths, and user-specific paths like /home/tony). The README also lists a default Discord channel ID and instructs creating a bot/token but doesn't declare any required env var for the token. Before use, you should confirm where any Discord token or other credentials must be stored and ensure they …

持久

The skill does not request always:true and contains no install-time persistence. It writes logs/memory to ~/.openclaw/workspace and outputs to configured Windows output directories—normal for a workflow. It doesn't attempt to modify other skills or system-wide configs.

综合结论

This skill appears to do what it says (local ComfyUI image generation from Wikipedia events), but review and adjust a few things before installing: 1) Check the full on-this-day.sh for any automated Discord posting—find where it would read a bot token or channel ID and ensure no secret is hard-coded or sent to third parties. 2) Replace or parameterize hard-coded defaults (COMFY_HOST=192.168.4.95, COMFY_DIR, /home/tony paths, default Discord ch…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「On This Day Art」。简介:Daily AI image generation from Wikipedia On This Day events using local ComfyUI…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/asimons81/on-this-day-art/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: on-this-day-art
version: 1.0.0
description: |
  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 image generation workflow.
  Does NOT: use cloud APIs, generate videos, or handle SD 3.5 (unstable on laptop).
---

# 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:**
```bash
# 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:**
```bash
COMFY_HOST="192.168.4.95"  # Your Windows IP (see below)
COMFY_PORT=8188
```

**Finding Your Windows IP:**
```powershell
# 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):**

| Model | Size | Notes |
|-------|------|-------|
| SDXL 1.0 | 6.5 GB | Default, reliable |
| JuggernautXL | 6.6 GB | Good alternative |
| SD 3.5 Medium | 10.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:StabilityMatrixDataPackagesComfyUImodelscheckpoints
```

### 4. Bridge Commands

```bash
# 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:**
```bash
# 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:StabilityMatrixDataImagesText2Img
```

## Discord Integration

The workflow can post to Discord:

```bash
# 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 Case | Recommended Model |
|----------|------------------|
| Daily automation | SDXL (fast, reliable) |
| Photorealistic | JuggernautXL |
| Creative/artistic | SDXL + custom prompts |
| Historical scenes | SDXL |
| ⚠️ 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