mirror of
https://github.com/MCKRUZ/ComfyUI-Expert.git
synced 2026-09-19 05:56:54 +08:00
fix: remove PII - hardcoded paths, private IP, personal project data
- Replace hardcoded user path in video-agent.bat with %~dp0 - Replace private LAN IP 192.168.1.50 with <remote-ip> placeholder - Genericize D:\ComfyUI to C:\ComfyUI across all docs and scripts - Replace personal Sage character data with template placeholders
This commit is contained in:
@@ -45,7 +45,7 @@ When the user makes a request, route to the right skill file:
|
||||
|
||||
Before generating ANY workflow:
|
||||
1. Read `state/inventory.json` (if it exists)
|
||||
2. If it doesn't exist or is stale, tell the user to run: `pwsh -File scripts/scan-inventory.ps1 -ComfyUIPath "D:\ComfyUI"` (or query the API via `skills/comfyui-api/SKILL.md`)
|
||||
2. If it doesn't exist or is stale, tell the user to run: `pwsh -File scripts/scan-inventory.ps1 -ComfyUIPath "C:\ComfyUI"` (or query the API via `skills/comfyui-api/SKILL.md`)
|
||||
3. Validate every model and node in your workflow exists in inventory
|
||||
4. If something is missing, say what to download and where to put it
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ With options:
|
||||
|
||||
```cmd
|
||||
video-agent.bat --project "my-video" # Set active project
|
||||
video-agent.bat --comfyui "http://192.168.1.50:8188" # Remote ComfyUI
|
||||
video-agent.bat --comfyui "http://<remote-ip>:8188" # Remote ComfyUI
|
||||
video-agent.bat --resume # Resume last session
|
||||
```
|
||||
|
||||
@@ -69,13 +69,13 @@ video-agent.bat --resume # Resume last session
|
||||
First time (or after installing new models/nodes), tell the agent:
|
||||
|
||||
```
|
||||
Scan my ComfyUI installation at D:\ComfyUI
|
||||
Scan my ComfyUI installation at C:\ComfyUI
|
||||
```
|
||||
|
||||
Or run the script directly:
|
||||
|
||||
```powershell
|
||||
pwsh -File scripts/scan-inventory.ps1 -ComfyUIPath "D:\ComfyUI"
|
||||
pwsh -File scripts/scan-inventory.ps1 -ComfyUIPath "C:\ComfyUI"
|
||||
```
|
||||
|
||||
This creates `state/inventory.json` -- a cache of every model, custom node, and VRAM detail. The agent validates every workflow against this inventory before execution.
|
||||
@@ -352,7 +352,7 @@ Configured in `.claude/settings.local.json` (project-local, doesn't affect other
|
||||
|
||||
| Script | Purpose | Usage |
|
||||
|--------|---------|-------|
|
||||
| `scan-inventory.ps1` | Scan ComfyUI models & nodes offline | `pwsh -File scripts/scan-inventory.ps1 -ComfyUIPath "D:\ComfyUI"` |
|
||||
| `scan-inventory.ps1` | Scan ComfyUI models & nodes offline | `pwsh -File scripts/scan-inventory.ps1 -ComfyUIPath "C:\ComfyUI"` |
|
||||
| `connect-comfyui.ps1` | Test ComfyUI connection & show diagnostics | `pwsh -File scripts/connect-comfyui.ps1` |
|
||||
| `staleness-check.ps1` | Check research freshness (session hook) | Runs automatically at session start |
|
||||
| `deploy.ps1` | Sync references to global `comfyui-character-gen` skill | `pwsh -File scripts/deploy.ps1` |
|
||||
@@ -368,7 +368,7 @@ Edit `foundation/hardware-profile.md` with your GPU specs. The agent reads this
|
||||
Pass it at launch:
|
||||
|
||||
```cmd
|
||||
video-agent.bat --comfyui "http://192.168.1.50:8188"
|
||||
video-agent.bat --comfyui "http://<remote-ip>:8188"
|
||||
```
|
||||
|
||||
Or edit the default in `video-agent.bat` (line 18).
|
||||
|
||||
@@ -32,7 +32,7 @@ video-agent.bat
|
||||
With options:
|
||||
```cmd
|
||||
video-agent.bat --project "my-video"
|
||||
video-agent.bat --comfyui "http://192.168.1.50:8188"
|
||||
video-agent.bat --comfyui "http://<remote-ip>:8188"
|
||||
video-agent.bat --resume
|
||||
```
|
||||
|
||||
@@ -41,12 +41,12 @@ video-agent.bat --resume
|
||||
First time only (or after installing new models):
|
||||
|
||||
```
|
||||
Scan my ComfyUI installation at D:\ComfyUI
|
||||
Scan my ComfyUI installation at C:\ComfyUI
|
||||
```
|
||||
|
||||
Or manually:
|
||||
```powershell
|
||||
pwsh -File scripts/scan-inventory.ps1 -ComfyUIPath "D:\ComfyUI"
|
||||
pwsh -File scripts/scan-inventory.ps1 -ComfyUIPath "C:\ComfyUI"
|
||||
```
|
||||
|
||||
### 3. Start Creating
|
||||
|
||||
@@ -108,15 +108,15 @@ This skill is designed to evolve continuously. Monitor these sources and update
|
||||
Track what works best for this user's specific setup and preferences.
|
||||
|
||||
### Hardware Profile
|
||||
- GPU: RTX 5090 (32GB VRAM)
|
||||
- Can run: All models natively, including Wan 14B, FLUX FP16
|
||||
- Optimization: Use --highvram, batch processing enabled
|
||||
- GPU: [Your GPU] ([VRAM]GB VRAM)
|
||||
- Can run: [Fill in after inventory scan]
|
||||
- Optimization: [Fill in based on hardware-profile.md]
|
||||
|
||||
### Project: Sage Character
|
||||
- Source: 3D renders (visual novel style)
|
||||
- Target: Photorealistic output
|
||||
- Key features: Auburn hair, green eyes, freckles, fair skin
|
||||
- Recommended approach: InstantID + IP-Adapter → test → train LoRA if needed
|
||||
### Project: [Your Character Name]
|
||||
- Source: [e.g., photos, 3D renders, illustrations]
|
||||
- Target: [e.g., photorealistic, stylized]
|
||||
- Key features: [appearance details]
|
||||
- Recommended approach: [fill in after testing]
|
||||
|
||||
### Workflow Preferences
|
||||
(To be filled as user works with skill)
|
||||
|
||||
@@ -77,7 +77,7 @@ try {
|
||||
Write-Host " 3. Firewall is blocking the connection"
|
||||
Write-Host ""
|
||||
Write-Host "To start ComfyUI:" -ForegroundColor Yellow
|
||||
Write-Host ' cd D:\ComfyUI && python main.py --listen --highvram'
|
||||
Write-Host ' cd C:\ComfyUI && python main.py --listen --highvram'
|
||||
Write-Host ""
|
||||
Write-Host "Error details: $($_.Exception.Message)" -ForegroundColor Red
|
||||
exit 1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# ComfyUI Inventory Scanner (Offline Mode)
|
||||
# Scans ComfyUI directory structure and generates state/inventory.json
|
||||
#
|
||||
# Usage: pwsh -File scripts/scan-inventory.ps1 -ComfyUIPath "D:\ComfyUI"
|
||||
# Usage: pwsh -File scripts/scan-inventory.ps1 -ComfyUIPath "C:\ComfyUI"
|
||||
|
||||
param(
|
||||
[Parameter(Mandatory = $true)]
|
||||
|
||||
@@ -48,7 +48,7 @@ curl http://127.0.0.1:8188/models/diffusion_models
|
||||
|
||||
When ComfyUI isn't running, scan the filesystem directly.
|
||||
|
||||
**Requires**: ComfyUI installation path (e.g., `D:\ComfyUI`)
|
||||
**Requires**: ComfyUI installation path (e.g., `C:\ComfyUI`)
|
||||
|
||||
**Scan directories:**
|
||||
```
|
||||
|
||||
+3
-1
@@ -12,7 +12,9 @@ REM ============================================================
|
||||
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
set "REPO_DIR=C:\Users\kruz7\OneDrive\Documents\Code Repos\MCKRUZ\VideoAgent"
|
||||
REM Resolve to the directory where this bat file lives (strips trailing backslash)
|
||||
set "REPO_DIR=%~dp0"
|
||||
if "%REPO_DIR:~-1%"=="\" set "REPO_DIR=%REPO_DIR:~0,-1%"
|
||||
set "CLAUDE_ARGS="
|
||||
set "ACTIVE_PROJECT="
|
||||
set "COMFYUI_URL=http://127.0.0.1:8188"
|
||||
|
||||
Reference in New Issue
Block a user