[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75M1P35YJFQP13393S259V7":3,"skill-same:01M75M1P35YJFQP13393S259V7":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":66,"repositoryHtmlUrl":67,"repositoryHomepageUrl":6,"ownerHtmlUrl":68,"ownerBlogUrl":69,"ownerDescription":70,"updatedAt":71,"install":72,"resources":85},"01M75M1P35YJFQP13393S259V7","sogni-gen",null,"Generate images **and videos** using Sogni AI's decentralized network, with local credential\u002Fconfig files and optional local media inputs. Ask the agent to \"draw\", \"generate\", \"create an image\", or \"make a video\u002Fanimate\" from a prompt or reference image.","javimosch\u002Fopen-claw-skills","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M75B8NCTAJG9WH5YNZH7C3D8",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fkrunkosaurus\u002Fsogni-gen\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: sogni-gen\nversion: \"1.5.16\"\ndescription: Generate images **and videos** using Sogni AI's decentralized network, with local credential\u002Fconfig files and optional local media inputs. Ask the agent to \"draw\", \"generate\", \"create an image\", or \"make a video\u002Fanimate\" from a prompt or reference image.\nhomepage: https:\u002F\u002Fsogni.ai\nmetadata:\n  clawdbot:\n    emoji: \"🎨\"\n    primaryEnv: \"SOGNI_API_KEY\"\n    os: [\"darwin\", \"linux\", \"win32\"]\n    requires:\n      bins: [\"node\"]\n      anyBins: [\"ffmpeg\"]\n      env:\n        - \"SOGNI_API_KEY\"\n        - \"SOGNI_USERNAME\"\n        - \"SOGNI_PASSWORD\"\n        - \"SOGNI_CREDENTIALS_PATH\"\n        - \"SOGNI_LAST_RENDER_PATH\"\n        - \"SOGNI_MEDIA_INBOUND_DIR\"\n        - \"OPENCLAW_CONFIG_PATH\"\n        - \"OPENCLAW_PLUGIN_CONFIG\"\n        - \"FFMPEG_PATH\"\n        - \"SOGNI_DOWNLOADS_DIR\"\n        - \"SOGNI_MCP_SAVE_DOWNLOADS\"\n        - \"SOGNI_ALLOWED_DOWNLOAD_HOSTS\"\n      config:\n        - \"~\u002F.config\u002Fsogni\u002Fcredentials\"\n        - \"~\u002F.openclaw\u002Fopenclaw.json\"\n        - \"~\u002F.clawdbot\u002Fmedia\u002Finbound\"\n        - \"~\u002F.config\u002Fsogni\u002Flast-render.json\"\n        - \"~\u002FDownloads\u002Fsogni\"\n    install:\n      - id: npm\n        kind: exec\n        command: \"cd {{skillDir}} && cp skill-package.json package.json && npm i\"\n        label: \"Prepare runtime dependencies\"\n---\n\n# Sogni Image & Video Generation\n\nGenerate **images and videos** using Sogni AI's decentralized GPU network.\n\n## Setup\n\n1. **Get Sogni credentials** at https:\u002F\u002Fapp.sogni.ai\u002F\n2. **Create credentials file:**\n```bash\nmkdir -p ~\u002F.config\u002Fsogni\ncat > ~\u002F.config\u002Fsogni\u002Fcredentials \u003C\u003C 'EOF'\nSOGNI_API_KEY=your_api_key\n# or:\n# SOGNI_USERNAME=your_username\n# SOGNI_PASSWORD=your_password\nEOF\nchmod 600 ~\u002F.config\u002Fsogni\u002Fcredentials\n```\n\nYou can also export `SOGNI_API_KEY`, or `SOGNI_USERNAME` + `SOGNI_PASSWORD`, instead of writing the file.\n\n3. **Install dependencies (if cloned):**\n```bash\ncd \u002Fpath\u002Fto\u002Fsogni-gen\nnpm i\n```\n\n4. **Or install from npm (no git clone):**\n```bash\nmkdir -p ~\u002F.clawdbot\u002Fskills\ncd ~\u002F.clawdbot\u002Fskills\nnpm i sogni-gen\nln -sfn node_modules\u002Fsogni-gen sogni-gen\n```\n\nWhen this skill is distributed via ClawHub, it bootstraps its local runtime dependencies from `skill-package.json` during install. That avoids relying on a root `package.json` being present in the published skill artifact.\n\n## Filesystem Paths and Overrides\n\nDefault file paths used by this skill:\n\n- Credentials file (read): `~\u002F.config\u002Fsogni\u002Fcredentials`\n- Last render metadata (read\u002Fwrite): `~\u002F.config\u002Fsogni\u002Flast-render.json`\n- OpenClaw config (read): `~\u002F.openclaw\u002Fopenclaw.json`\n- Media listing for `--list-media` (read): `~\u002F.clawdbot\u002Fmedia\u002Finbound`\n- MCP local result copies (write): `~\u002FDownloads\u002Fsogni`\n\nPath override environment variables:\n\n- `SOGNI_CREDENTIALS_PATH`\n- `SOGNI_LAST_RENDER_PATH`\n- `SOGNI_MEDIA_INBOUND_DIR`\n- `OPENCLAW_CONFIG_PATH`\n- `SOGNI_DOWNLOADS_DIR` (MCP)\n- `SOGNI_MCP_SAVE_DOWNLOADS=0` to disable MCP local file writes\n- `SOGNI_ALLOWED_DOWNLOAD_HOSTS` to override which HTTPS hosts the MCP server may auto-download and save locally\n\n## Usage (Images & Video)\n\n```bash\n# Generate and get URL\nnode sogni-gen.mjs \"a cat wearing a hat\"\n\n# Save to file\nnode sogni-gen.mjs -o \u002Ftmp\u002Fcat.png \"a cat wearing a hat\"\n\n# JSON output (for scripting)\nnode sogni-gen.mjs --json \"a cat wearing a hat\"\n\n# Check token balances (no prompt required)\nnode sogni-gen.mjs --balance\n\n# Check token balances in JSON\nnode sogni-gen.mjs --json --balance\n\n# Quiet mode (suppress progress)\nnode sogni-gen.mjs -q -o \u002Ftmp\u002Fcat.png \"a cat wearing a hat\"\n```\n\n## Options\n\n| Flag | Description | Default |\n|------|-------------|---------|\n| `-o, --output \u003Cpath>` | Save to file | prints URL |\n| `-m, --model \u003Cid>` | Model ID | z_image_turbo_bf16 |\n| `-w, --width \u003Cpx>` | Width | 512 |\n| `-h, --height \u003Cpx>` | Height | 512 |\n| `-n, --count \u003Cnum>` | Number of images | 1 |\n| `-t, --timeout \u003Csec>` | Timeout seconds | 30 (300 for video) |\n| `-s, --seed \u003Cnum>` | Specific seed | random |\n| `--last-seed` | Reuse seed from last render | - |\n| `--seed-strategy \u003Cs>` | Seed strategy: random\\|prompt-hash | prompt-hash |\n| `--multi-angle` | Multiple angles LoRA mode (Qwen Image Edit) | - |\n| `--angles-360` | Generate 8 azimuths (front -> front-left) | - |\n| `--angles-360-video` | Assemble looping 360 mp4 using i2v between angles (requires ffmpeg) | - |\n| `--azimuth \u003Ckey>` | front\\|front-right\\|right\\|back-right\\|back\\|back-left\\|left\\|front-left | front |\n| `--elevation \u003Ckey>` | low-angle\\|eye-level\\|elevated\\|high-angle | eye-level |\n| `--distance \u003Ckey>` | close-up\\|medium\\|wide | medium |\n| `--angle-strength \u003Cn>` | LoRA strength for multiple_angles | 0.9 |\n| `--angle-description \u003Ctext>` | Optional subject description | - |\n| `--steps \u003Cnum>` | Override steps (model-dependent) | - |\n| `--guidance \u003Cnum>` | Override guidance (model-dependent) | - |\n| `--output-format \u003Cf>` | Image output format: png\\|jpg | png |\n| `--sampler \u003Cname>` | Sampler (model-dependent) | - |\n| `--scheduler \u003Cname>` | Scheduler (model-dependent) | - |\n| `--lora \u003Cid>` | LoRA id (repeatable, edit only) | - |\n| `--loras \u003Cids>` | Comma-separated LoRA ids | - |\n| `--lora-strength \u003Cn>` | LoRA strength (repeatable) | - |\n| `--lora-strengths \u003Cn>` | Comma-separated LoRA strengths | - |\n| `--token-type \u003Ctype>` | Token type: spark\\|sogni | spark |\n| `--balance, --balances` | Show SPARK\u002FSOGNI balances and exit | - |\n| `-c, --context \u003Cpath>` | Context image for editing | - |\n| `--last-image` | Use last generated image as context\u002Fref | - |\n| `--video, -v` | Generate video instead of image | - |\n| `--workflow \u003Ctype>` | Video workflow (t2v\\|i2v\\|s2v\\|ia2v\\|a2v\\|v2v\\|animate-move\\|animate-replace) | inferred |\n| `--fps \u003Cnum>` | Frames per second (video) | 16 |\n| `--duration \u003Csec>` | Duration in seconds (video) | 5 |\n| `--frames \u003Cnum>` | Override total frames (video) | - |\n| `--auto-resize-assets` | Auto-resize video assets | true |\n| `--no-auto-resize-assets` | Disable auto-resize | - |\n| `--estimate-video-cost` | Estimate video cost and exit (requires --steps) | - |\n| `--photobooth` | Face transfer mode (InstantID + SDXL Turbo) | - |\n| `--cn-strength \u003Cn>` | ControlNet strength (photobooth) | 0.8 |\n| `--cn-guidance-end \u003Cn>` | ControlNet guidance end point (photobooth) | 0.3 |\n| `--ref \u003Cpath>` | Reference image for video or photobooth face | required for video\u002Fphotobooth |\n| `--ref-end \u003Cpath>` | End frame for i2v interpolation | - |\n| `--ref-audio \u003Cpath>` | Reference audio for s2v | - |\n| `--ref-video \u003Cpath>` | Reference video for animate\u002Fv2v workflows | - |\n| `--controlnet-name \u003Cname>` | ControlNet type for v2v: canny\\|pose\\|depth\\|detailer | - |\n| `--controlnet-strength \u003Cn>` | ControlNet strength for v2v (0.0-1.0) | 0.8 |\n| `--sam2-coordinates \u003Ccoords>` | SAM2 click coords for animate-replace (x,y or x1,y1;x2,y2) | - |\n| `--trim-end-frame` | Trim last frame for seamless video stitching | - |\n| `--first-frame-strength \u003Cn>` | Keyframe strength for start frame (0.0-1.0) | - |\n| `--last-frame-strength \u003Cn>` | Keyframe strength for end frame (0.0-1.0) | - |\n| `--last` | Show last render info | - |\n| `--json` | JSON output | false |\n| `--strict-size` | Do not auto-adjust i2v video size for reference resizing constraints | false |\n| `-q, --quiet` | No progress output | false |\n| `--extract-last-frame \u003Cvideo> \u003Cimage>` | Extract last frame from video (safe ffmpeg wrapper) | - |\n| `--concat-videos \u003Cout> \u003Cclips...>` | Concatenate video clips (safe ffmpeg wrapper) | - |\n| `--list-media [type]` | List recent inbound media (images\\|audio\\|all) | images |\n\n## OpenClaw Config Defaults\n\nWhen installed as an OpenClaw plugin, `sogni-gen` will read defaults from:\n\n`~\u002F.openclaw\u002Fopenclaw.json`\n\n```json\n{\n  \"plugins\": {\n    \"entries\": {\n      \"sogni-gen\": {\n        \"enabled\": true,\n        \"config\": {\n          \"defaultImageModel\": \"z_image_turbo_bf16\",\n          \"defaultEditModel\": \"qwen_image_edit_2511_fp8_lightning\",\n          \"defaultPhotoboothModel\": \"coreml-sogniXLturbo_alpha1_ad\",\n          \"videoModels\": {\n            \"t2v\": \"wan_v2.2-14b-fp8_t2v_lightx2v\",\n            \"i2v\": \"wan_v2.2-14b-fp8_i2v_lightx2v\",\n            \"s2v\": \"wan_v2.2-14b-fp8_s2v_lightx2v\",\n            \"ia2v\": \"ltx2-19b-fp8_ia2v_distilled\",\n            \"a2v\": \"ltx2-19b-fp8_a2v_distilled\",\n            \"animate-move\": \"wan_v2.2-14b-fp8_animate-move_lightx2v\",\n            \"animate-replace\": \"wan_v2.2-14b-fp8_animate-replace_lightx2v\",\n            \"v2v\": \"ltx2-19b-fp8_v2v_distilled\"\n          },\n          \"defaultVideoWorkflow\": \"t2v\",\n          \"defaultNetwork\": \"fast\",\n          \"defaultTokenType\": \"spark\",\n          \"seedStrategy\": \"prompt-hash\",\n          \"modelDefaults\": {\n            \"flux1-schnell-fp8\": { \"steps\": 4, \"guidance\": 3.5 },\n            \"flux2_dev_fp8\": { \"steps\": 20, \"guidance\": 7.5 }\n          },\n          \"defaultWidth\": 768,\n          \"defaultHeight\": 768,\n          \"defaultCount\": 1,\n          \"defaultFps\": 16,\n          \"defaultDurationSec\": 5,\n          \"defaultImageTimeoutSec\": 30,\n          \"defaultVideoTimeoutSec\": 300,\n          \"credentialsPath\": \"~\u002F.config\u002Fsogni\u002Fcredentials\",\n          \"lastRenderPath\": \"~\u002F.config\u002Fsogni\u002Flast-render.json\",\n          \"mediaInboundDir\": \"~\u002F.clawdbot\u002Fmedia\u002Finbound\"\n        }\n      }\n    }\n  }\n}\n```\n\nCLI flags always override these defaults.\nIf your OpenClaw config lives elsewhere, set `OPENCLAW_CONFIG_PATH`.\nSeed strategies: `prompt-hash` (deterministic) or `random`.\n\n## Image Models\n\n| Model | Speed | Use Case |\n|-------|-------|----------|\n| `z_image_turbo_bf16` | Fast (~5-10s) | General purpose, default |\n| `flux1-schnell-fp8` | Very fast | Quick iterations |\n| `flux2_dev_fp8` | Slow (~2min) | High quality |\n| `chroma-v.46-flash_fp8` | Medium | Balanced |\n| `qwen_image_edit_2511_fp8` | Medium | Image editing with context (up to 3) |\n| `qwen_image_edit_2511_fp8_lightning` | Fast | Quick image editing |\n| `coreml-sogniXLturbo_alpha1_ad` | Fast | Photobooth face transfer (SDXL Turbo) |\n\n## Video Models\n\n### WAN 2.2 Models\n\n| Model | Speed | Use Case |\n|-------|-------|----------|\n| `wan_v2.2-14b-fp8_i2v_lightx2v` | Fast | Default video generation |\n| `wan_v2.2-14b-fp8_i2v` | Slow | Higher quality video |\n| `wan_v2.2-14b-fp8_t2v_lightx2v` | Fast | Text-to-video |\n| `wan_v2.2-14b-fp8_s2v_lightx2v` | Fast | Sound-to-video |\n| `wan_v2.2-14b-fp8_animate-move_lightx2v` | Fast | Animate-move |\n| `wan_v2.2-14b-fp8_animate-replace_lightx2v` | Fast | Animate-replace |\n\n### LTX-2 \u002F LTX-2.3 Models\n\n| Model | Speed | Use Case |\n|-------|-------|----------|\n| `ltx2-19b-fp8_t2v_distilled` | Fast (~2-3min) | Text-to-video, 8-step |\n| `ltx2-19b-fp8_t2v` | Medium (~5min) | Text-to-video, 20-step quality |\n| `ltx2-19b-fp8_i2v_distilled` | Fast (~2-3min) | Image-to-video, 8-step |\n| `ltx2-19b-fp8_i2v` | Medium (~5min) | Image-to-video, 20-step quality |\n| `ltx2-19b-fp8_ia2v_distilled` | Fast (~2-3min) | Image+audio-to-video |\n| `ltx2-19b-fp8_a2v_distilled` | Fast (~2-3min) | Audio-to-video |\n| `ltx2-19b-fp8_v2v_distilled` | Fast (~3min) | Video-to-video with ControlNet |\n| `ltx2-19b-fp8_v2v` | Medium (~5min) | Video-to-video with ControlNet, quality |\n| `ltx23-22b-fp8_t2v_distilled` | Fast (~2-3min) | Text-to-video, LTX-2.3 |\n\n## Image Editing with Context\n\nEdit images using reference images (Qwen models support up to 3):\n\n```bash\n# Single context image\nnode sogni-gen.mjs -c photo.jpg \"make the background a beach\"\n\n# Multiple context images (subject + style)\nnode sogni-gen.mjs -c subject.jpg -c style.jpg \"apply the style to the subject\"\n\n# Use last generated image as context\nnode sogni-gen.mjs --last-image \"make it more vibrant\"\n```\n\nWhen context images are provided without `-m`, defaults to `qwen_image_edit_2511_fp8_lightning`.\n\n## Photobooth (Face Transfer)\n\nGenerate stylized portraits from a face photo using InstantID ControlNet. When a user mentions \"photobooth\", wants a stylized portrait of themselves, or asks to transfer their face into a style, use `--photobooth` with `--ref` pointing to their face image.\n\n```bash\n# Basic photobooth\nnode sogni-gen.mjs --photobooth --ref face.jpg \"80s fashion portrait\"\n\n# Multiple outputs\nnode sogni-gen.mjs --photobooth --ref face.jpg -n 4 \"LinkedIn professional headshot\"\n\n# Custom ControlNet tuning\nnode sogni-gen.mjs --photobooth --ref face.jpg --cn-strength 0.6 --cn-guidance-end 0.5 \"oil painting\"\n```\n\nUses SDXL Turbo (`coreml-sogniXLturbo_alpha1_ad`) at 1024x1024 by default. The face image is passed via `--ref` and styled according to the prompt. Cannot be combined with `--video` or `-c\u002F--context`.\n\n**Agent usage:**\n```bash\n# Photobooth: stylize a face photo\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --photobooth --ref \u002Fpath\u002Fto\u002Fface.jpg -o \u002Ftmp\u002Fstylized.png \"80s fashion portrait\"\n\n# Multiple photobooth outputs\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --photobooth --ref \u002Fpath\u002Fto\u002Fface.jpg -n 4 -o \u002Ftmp\u002Fstylized.png \"LinkedIn professional headshot\"\n```\n\n## Multiple Angles (Turnaround)\n\nGenerate specific camera angles from a single reference image using the Multiple Angles LoRA:\n\n```bash\n# Single angle\nnode sogni-gen.mjs --multi-angle -c subject.jpg \\\n  --azimuth front-right --elevation eye-level --distance medium \\\n  --angle-strength 0.9 \\\n  \"studio portrait, same person\"\n\n# 360 sweep (8 azimuths)\nnode sogni-gen.mjs --angles-360 -c subject.jpg --distance medium --elevation eye-level \\\n  \"studio portrait, same person\"\n\n# 360 sweep video (looping mp4, uses i2v between angles; requires ffmpeg)\nnode sogni-gen.mjs --angles-360 --angles-360-video \u002Ftmp\u002Fturntable.mp4 \\\n  -c subject.jpg --distance medium --elevation eye-level \\\n  \"studio portrait, same person\"\n```\n\nThe prompt is auto-built with the required `\u003Csks>` token plus the selected camera angle keywords.\n`--angles-360-video` generates i2v clips between consecutive angles (including last→first) and concatenates them with ffmpeg for a seamless loop.\n\n### 360 Video Best Practices\n\nWhen a user requests a \"360 video\", follow this workflow:\n\n1. **Default camera parameters** (do not ask unless they specify):\n   - **Elevation**: default to **medium**\n   - **Distance**: default to **medium**\n\n2. **Map user terms to flags**:\n   | User says | Flag value |\n   |-----------|------------|\n   | \"high\" angle | `--elevation high-angle` |\n   | \"medium\" angle | `--elevation eye-level` |\n   | \"low\" angle | `--elevation low-angle` |\n   | \"close\" | `--distance close-up` |\n   | \"medium\" distance | `--distance medium` |\n   | \"far\" | `--distance wide` |\n\n3. **Always use first-frame\u002Flast-frame stitching** - the `--angles-360-video` flag automatically handles this by generating i2v clips between consecutive angles including last→first for seamless looping.\n\n4. **Example command**:\n   ```bash\n   node sogni-gen.mjs --angles-360 --angles-360-video \u002Ftmp\u002Foutput.mp4 \\\n     -c \u002Fpath\u002Fto\u002Fimage.png --elevation eye-level --distance medium \\\n     \"description of subject\"\n   ```\n\n### Transition Video Rule\n\nFor **any transition video work**, always use the **Sogni skill\u002Fplugin** (not raw ffmpeg or other shell commands). Use the built-in `--extract-last-frame`, `--concat-videos`, and `--looping` flags for video manipulation.\n\n### Insufficient Funds Handling\n\nWhen you see **\"Debit Error: Insufficient funds\"**, reply:\n\n\"Insufficient funds. Claim 50 free daily Spark points at https:\u002F\u002Fapp.sogni.ai\u002F\"\n\n## Video Generation\n\nGenerate videos from a reference image:\n\n```bash\n# Text-to-video (t2v)\nnode sogni-gen.mjs --video \"ocean waves at sunset\"\n\n# Basic video from image\nnode sogni-gen.mjs --video --ref cat.jpg -o cat.mp4 \"cat walks around\"\n\n# Use last generated image as reference\nnode sogni-gen.mjs --last-image --video \"gentle camera pan\"\n\n# Custom duration and FPS\nnode sogni-gen.mjs --video --ref scene.png --duration 10 --fps 24 \"zoom out slowly\"\n\n# Sound-to-video (s2v)\nnode sogni-gen.mjs --video --ref face.jpg --ref-audio speech.m4a \\\n  -m wan_v2.2-14b-fp8_s2v_lightx2v \"lip sync talking head\"\n\n# Image+audio-to-video (ia2v, LTX)\nnode sogni-gen.mjs --video --workflow ia2v --ref cover.jpg --ref-audio song.mp3 \\\n  \"music video with synchronized motion\"\n\n# Audio-to-video (a2v, LTX)\nnode sogni-gen.mjs --video --workflow a2v --ref-audio song.mp3 \\\n  \"abstract audio-reactive visualizer\"\n\n# LTX-2.3 text-to-video\nnode sogni-gen.mjs --video -m ltx23-22b-fp8_t2v_distilled --duration 20 \\\n  \"A wide cinematic aerial shot opens over steep tropical cliffs at golden hour, warm sunlight grazing the rock faces while sea mist drifts above the water below. Palm trees bend gently along the ridge as waves roll against the shoreline, leaving bright bands of foam across the dark stone. The camera glides forward in one continuous pass, revealing more of the coastline as sunlight flickers across wet surfaces and distant birds wheel through the haze. The scene holds a calm, upscale travel-film mood with smooth stabilized motion and crisp environmental detail.\"\n\n# Animate (motion transfer)\nnode sogni-gen.mjs --video --ref subject.jpg --ref-video motion.mp4 \\\n  --workflow animate-move \"transfer motion\"\n```\n\n## Video-to-Video (V2V) with ControlNet\n\nTransform an existing video using LTX-2 models with ControlNet guidance:\n\n```bash\n# Basic v2v with canny edge detection\nnode sogni-gen.mjs --video --workflow v2v --ref-video input.mp4 \\\n  --controlnet-name canny \"stylized anime version\"\n\n# V2V with pose detection and custom strength\nnode sogni-gen.mjs --video --workflow v2v --ref-video dance.mp4 \\\n  --controlnet-name pose --controlnet-strength 0.7 \"robot dancing\"\n\n# V2V with depth map\nnode sogni-gen.mjs --video --workflow v2v --ref-video scene.mp4 \\\n  --controlnet-name depth \"watercolor painting style\"\n```\n\nControlNet types: `canny` (edge detection), `pose` (body pose), `depth` (depth map), `detailer` (detail enhancement).\n\n## Photo Restoration\n\nRestore damaged vintage photos using Qwen image editing:\n\n```bash\n# Basic restoration\nsogni-gen -c damaged_photo.jpg -o restored.png \\\n  \"professionally restore this vintage photograph, remove damage and scratches\"\n\n# Detailed restoration with preservation hints\nsogni-gen -c old_photo.jpg -o restored.png -w 1024 -h 1280 \\\n  \"restore this vintage photo, remove peeling, tears and wear marks, \\\n  preserve natural features and expression, maintain warm nostalgic color tones\"\n```\n\n**Tips for good restorations:**\n- Describe the damage: \"peeling\", \"scratches\", \"tears\", \"fading\"\n- Specify what to preserve: \"natural features\", \"eye color\", \"hair\", \"expression\"\n- Mention the era for color tones: \"1970s warm tones\", \"vintage sepia\"\n\n**Finding received images (Telegram\u002Fetc):**\n```bash\nnode {{skillDir}}\u002Fsogni-gen.mjs --json --list-media images\n```\n\n**Do NOT use `ls`, `cp`, or other shell commands to browse user files.** Always use `--list-media` to find inbound media.\n\n## IMPORTANT KEYWORD RULE\n\n- If the user message includes the word \"photobooth\" (case-insensitive), always use `--photobooth` mode with `--ref` set to the user-provided face image.\n- Prioritize this rule over generic image-edit flows (`-c`) for that request.\n\n## LTX-2.3 Prompt Rule\n\nWhenever the chosen video model is `ltx23-22b-fp8_t2v_distilled`, do not pass the user's short request through unchanged. Rewrite it into an LTX-2.3-safe prompt before calling `sogni-gen`.\n\n- Output one single paragraph only. No line breaks, bullet points, section labels, tag lists, or screenplay formatting.\n- Use 4-8 flowing present-tense sentences describing one continuous shot. No cuts, montage, or unrelated scene jumps.\n- Start with shot scale plus the scene's visual identity, then describe environment, time of day, atmosphere, textures, and specific light sources.\n- Keep people, clothing, props, and locations concrete and stable across the whole paragraph.\n- Give the scene one main action thread from start to finish. Use connectors like `as`, `while`, and `then` so motion reads as a continuous filmed moment.\n- If the user asks for dialogue, embed the spoken words inline as prose and identify who is speaking and how they deliver the line.\n- Express emotion through visible physical cues such as posture, grip, jaw tension, breathing, or pacing. Ambient sound can be woven into the prose naturally.\n- Use positive phrasing only. Do not add negative prompts, \"no ...\" clauses, on-screen text\u002Flogo requests, vague filler words like `beautiful` or `nice`, or structural markup such as `[DIALOGUE]`.\n- Keep action density proportional to duration. For short clips, describe one main beat rather than several separate events.\n- Preserve the user's request, but expand it into cinematic prose. Do not invent a different story just to make the prompt longer.\n\n### Duration-Aware Pacing\n\nMatch scene density to clip length so prompts stay filmable:\n\n- About `1-4s`: describe exactly 1 action or moment.\n- About `5-8s`: describe about 2 sequential actions.\n- About `9-12s`: describe about 3 sequential actions.\n- Longer clips: add only a small number of additional sequential beats. Do not turn the prompt into a montage or a full story arc unless the duration clearly supports it.\n\n### Orientation Mapping\n\nWhen the user explicitly asks for an orientation or aspect ratio, map it to safe LTX dimensions:\n\n- `vertical`, `portrait`, `story`, `reel`, `tiktok` -> `-w 1088 -h 1920`\n- `landscape`, `horizontal`, `widescreen`, `youtube`, `16:9` -> `-w 1920 -h 1088`\n- `square`, `1:1` -> `-w 1088 -h 1088`\n- `4:3 portrait` -> `-w 832 -h 1088`\n- `4:3 landscape` -> `-w 1088 -h 832`\n\n### Camera Language Normalization\n\nWhen the user uses loose camera language, translate it into concrete motion phrasing inside the prose prompt:\n\n- `zoom in` -> `slow push-in`\n- `zoom out` -> `slow pull-back`\n- `pan left` \u002F `pan right` -> `smooth pan left` \u002F `smooth pan right`\n- `orbit` \u002F `circle around` -> `slow arc left` or `slow arc right`\n- `follow` -> `tracking follow`\n\nShort example:\n\n```text\nUser ask: \"4k video of a woman in a neon alley\"\n\nUse this shape instead: \"A medium cinematic shot frames a woman in her 30s standing in a rain-soaked neon alley at night, violet and amber signs reflecting across the wet pavement while warm steam drifts from street vents. She wears a dark trench coat with damp strands of black hair clinging near her cheek as light glances across the fabric texture and the brick walls behind her. She turns toward the camera and steps forward with measured focus, one hand tightening around the strap of her bag while rain taps softly on the metal fire escape and a distant train hum rolls through the block. The camera performs a slow push-in as her jaw sets and her breathing steadies, maintaining smooth stabilized motion and a tense urban-thriller mood.\"\n```\n\n## Agent Usage\n\nWhen user asks to generate\u002Fdraw\u002Fcreate an image:\n\n```bash\n# Generate and save locally\nnode {{skillDir}}\u002Fsogni-gen.mjs -q -o \u002Ftmp\u002Fgenerated.png \"user's prompt\"\n\n# Edit an existing image\nnode {{skillDir}}\u002Fsogni-gen.mjs -q -c \u002Fpath\u002Fto\u002Finput.jpg -o \u002Ftmp\u002Fedited.png \"make it pop art style\"\n\n# Generate video from image\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --video --ref \u002Fpath\u002Fto\u002Fimage.png -o \u002Ftmp\u002Fvideo.mp4 \"A medium shot holds on the subject in soft late-afternoon light as fabric edges and background details remain clear and stable. The camera performs a slow push-in while the subject shifts weight subtly and turns slightly toward the lens, keeping the motion gentle and continuous. Leaves rustle softly in the background and the scene maintains smooth cinematic movement with no abrupt action changes.\"\n\n# Generate text-to-video\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --video -o \u002Ftmp\u002Fvideo.mp4 \"A wide cinematic shot opens on ocean waves rolling toward a rocky shoreline at sunset, golden light spreading across the water while sea mist drifts through the air. Foam patterns form and recede over the dark sand as the horizon glows orange and pink in the distance. The camera glides forward in one continuous movement, holding smooth stabilized motion and calm environmental detail throughout the scene.\"\n\n# HD \u002F \"4K\" text-to-video: prefer LTX-2.3\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --video -m ltx23-22b-fp8_t2v_distilled -w 1920 -h 1088 -o \u002Ftmp\u002Fvideo.mp4 \"A wide cinematic aerial shot opens over a rugged ocean coastline at golden hour, warm sunlight catching the cliff faces while white surf breaks against dark rock below. Low sea mist hangs over the water and bands of foam trace the shoreline as gulls wheel through the distance. The camera glides forward in one continuous pass, revealing the curve of the coast while wet stone flashes with reflected light and the scene keeps smooth stabilized motion from start to finish. The overall mood feels expansive and polished, with crisp environmental detail and steady travel-film energy.\"\n\n# HD \u002F \"4K\" image-to-video: prefer LTX i2v\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --video --ref \u002Fpath\u002Fto\u002Fimage.png -m ltx2-19b-fp8_i2v_distilled -w 1920 -h 1088 -o \u002Ftmp\u002Fvideo.mp4 \"A medium cinematic shot holds on the scene with clean subject separation and stable environmental detail as directional light shapes the surfaces and background depth. The camera performs a slow push-in while the main subject makes one subtle continuous movement, keeping posture and identity consistent from start to finish. Ambient motion in the background stays gentle and the overall clip remains smooth, stabilized, and visually coherent.\"\n\n# Photobooth: stylize a face photo\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --photobooth --ref \u002Fpath\u002Fto\u002Fface.jpg -o \u002Ftmp\u002Fstylized.png \"80s fashion portrait\"\n\n# Check current SPARK\u002FSOGNI balances (no prompt required)\nnode {{skillDir}}\u002Fsogni-gen.mjs --json --balance\n\n# Find user-sent images\u002Faudio\nnode {{skillDir}}\u002Fsogni-gen.mjs --json --list-media images\n\n# Then send via message tool with filePath\n```\n\n## High-Res Video Routing\n\nWhen the user asks for video in **\"hd\"**, **\"1080p\"**, **\"4k\"**, **\"uhd\"**, or **\"high-res\"**, do not use the default WAN video models.\n\n- For **text-to-video**, use `-m ltx23-22b-fp8_t2v_distilled`.\n- For **image-to-video**, use `-m ltx2-19b-fp8_i2v_distilled`.\n- Prefer LTX-sized dimensions such as `-w 1920 -h 1088`.\n- If the user explicitly asks for `vertical`, `portrait`, `story`, `reel`, `tiktok`, `square`, or `4:3`, apply the matching dimensions from the **Orientation Mapping** rules instead of defaulting to 16:9.\n- Rewrite the user's request using the **LTX-2.3 Prompt Rule** before invoking the command. Do not send short slogan-style prompts to LTX.\n- Treat \"4k\" as a signal to use the highest practical LTX path exposed by this skill, even if the exact output is not literal 3840x2160.\n\n**Security:** Agents must use the CLI's built-in flags (`--extract-last-frame`, `--concat-videos`, `--list-media`) for all file operations and video manipulation. Never run raw shell commands (`ffmpeg`, `ls`, `cp`, etc.) directly.\n\n## Animate Between Two Images (First-Frame \u002F Last-Frame)\n\nWhen a user asks to **animate between two images**, use `--ref` (first frame) and `--ref-end` (last frame) to create a creative interpolation video:\n\n```bash\n# Animate from image A to image B\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --video --ref \u002Ftmp\u002FimageA.png --ref-end \u002Ftmp\u002FimageB.png -o \u002Ftmp\u002Ftransition.mp4 \"descriptive prompt of the transition\"\n```\n\n### Animate a Video to an Image (Scene Continuation)\n\nWhen a user asks to **animate from a video to an image** (or \"continue\" a video into a new scene):\n\n1. **Extract the last frame** of the existing video using the built-in safe wrapper:\n   ```bash\n   node {{skillDir}}\u002Fsogni-gen.mjs --extract-last-frame \u002Ftmp\u002Fexisting.mp4 \u002Ftmp\u002Flastframe.png\n   ```\n2. **Generate a new video** using the last frame as `--ref` and the target image as `--ref-end`:\n   ```bash\n   node {{skillDir}}\u002Fsogni-gen.mjs -q --video --ref \u002Ftmp\u002Flastframe.png --ref-end \u002Ftmp\u002Ftarget.png -o \u002Ftmp\u002Fcontinuation.mp4 \"scene transition prompt\"\n   ```\n3. **Concatenate the videos** using the built-in safe wrapper:\n   ```bash\n   node {{skillDir}}\u002Fsogni-gen.mjs --concat-videos \u002Ftmp\u002Ffull_sequence.mp4 \u002Ftmp\u002Fexisting.mp4 \u002Ftmp\u002Fcontinuation.mp4\n   ```\n\nThis ensures visual continuity — the new clip picks up exactly where the previous one ended.\n\n**Do NOT run raw `ffmpeg` commands.** Always use `--extract-last-frame` and `--concat-videos` for video manipulation.\n\n**Always apply this pattern when:**\n- User says \"animate image A to image B\" → use `--ref A --ref-end B`\n- User says \"animate this video to this image\" → extract last frame, use as `--ref`, target image as `--ref-end`, then stitch\n- User says \"continue this video\" with a target image → same as above\n\n## JSON Output\n\n```json\n{\n  \"success\": true,\n  \"prompt\": \"a cat wearing a hat\",\n  \"model\": \"z_image_turbo_bf16\", \n  \"width\": 512,\n  \"height\": 512,\n  \"urls\": [\"https:\u002F\u002F...\"],\n  \"localPath\": \"\u002Ftmp\u002Fcat.png\"\n}\n```\n\nOn error (with `--json`), the script returns a single JSON object like:\n\n```json\n{\n  \"success\": false,\n  \"error\": \"Video width and height must be divisible by 16 (got 500x512).\",\n  \"errorCode\": \"INVALID_VIDEO_SIZE\",\n  \"hint\": \"Choose --width\u002F--height divisible by 16. For i2v, also match the reference aspect ratio.\"\n}\n```\n\nBalance check example (`--json --balance`):\n\n```json\n{\n  \"success\": true,\n  \"type\": \"balance\",\n  \"spark\": 12.34,\n  \"sogni\": 0.56\n}\n```\n\n## Cost\n\nUses Spark tokens from your Sogni account. 512x512 images are most cost-efficient.\n\n## Troubleshooting\n\n- **Auth errors**: Check `SOGNI_API_KEY` or the credentials in `~\u002F.config\u002Fsogni\u002Fcredentials`\n- **i2v sizing gotchas**: Video sizes are constrained (min 480px, max 1536px, divisible by 16). For i2v, the client wrapper resizes the reference (`fit: inside`) and uses the resized dimensions as the final video size. Because this uses rounding, a requested size can still yield an invalid final size (example: `1024x1536` requested but ref becomes `1024x1535`).\n- **Auto-adjustment**: With a local `--ref`, the script will auto-adjust the requested size to avoid non-16 resized reference dimensions.\n- **If the script adjusts your size but you want to fail instead**: pass `--strict-size` and it will print a suggested `--width\u002F--height`.\n- **Timeouts**: Try a faster model or increase `-t` timeout\n- **No workers**: Check https:\u002F\u002Fsogni.ai for network status\n","# Sogni Image & Video Generation\n\nGenerate **images and videos** using Sogni AI's decentralized GPU network.\n\n## Setup\n\n1. **Get Sogni credentials** at https:\u002F\u002Fapp.sogni.ai\u002F\n2. **Create credentials file:**\n```bash\nmkdir -p ~\u002F.config\u002Fsogni\ncat > ~\u002F.config\u002Fsogni\u002Fcredentials \u003C\u003C 'EOF'\nSOGNI_API_KEY=your_api_key\n# or:\n# SOGNI_USERNAME=your_username\n# SOGNI_PASSWORD=your_password\nEOF\nchmod 600 ~\u002F.config\u002Fsogni\u002Fcredentials\n```\n\nYou can also export `SOGNI_API_KEY`, or `SOGNI_USERNAME` + `SOGNI_PASSWORD`, instead of writing the file.\n\n3. **Install dependencies (if cloned):**\n```bash\ncd \u002Fpath\u002Fto\u002Fsogni-gen\nnpm i\n```\n\n4. **Or install from npm (no git clone):**\n```bash\nmkdir -p ~\u002F.clawdbot\u002Fskills\ncd ~\u002F.clawdbot\u002Fskills\nnpm i sogni-gen\nln -sfn node_modules\u002Fsogni-gen sogni-gen\n```\n\nWhen this skill is distributed via ClawHub, it bootstraps its local runtime dependencies from `skill-package.json` during install. That avoids relying on a root `package.json` being present in the published skill artifact.\n\n## Filesystem Paths and Overrides\n\nDefault file paths used by this skill:\n\n- Credentials file (read): `~\u002F.config\u002Fsogni\u002Fcredentials`\n- Last render metadata (read\u002Fwrite): `~\u002F.config\u002Fsogni\u002Flast-render.json`\n- OpenClaw config (read): `~\u002F.openclaw\u002Fopenclaw.json`\n- Media listing for `--list-media` (read): `~\u002F.clawdbot\u002Fmedia\u002Finbound`\n- MCP local result copies (write): `~\u002FDownloads\u002Fsogni`\n\nPath override environment variables:\n\n- `SOGNI_CREDENTIALS_PATH`\n- `SOGNI_LAST_RENDER_PATH`\n- `SOGNI_MEDIA_INBOUND_DIR`\n- `OPENCLAW_CONFIG_PATH`\n- `SOGNI_DOWNLOADS_DIR` (MCP)\n- `SOGNI_MCP_SAVE_DOWNLOADS=0` to disable MCP local file writes\n- `SOGNI_ALLOWED_DOWNLOAD_HOSTS` to override which HTTPS hosts the MCP server may auto-download and save locally\n\n## Usage (Images & Video)\n\n```bash\n# Generate and get URL\nnode sogni-gen.mjs \"a cat wearing a hat\"\n\n# Save to file\nnode sogni-gen.mjs -o \u002Ftmp\u002Fcat.png \"a cat wearing a hat\"\n\n# JSON output (for scripting)\nnode sogni-gen.mjs --json \"a cat wearing a hat\"\n\n# Check token balances (no prompt required)\nnode sogni-gen.mjs --balance\n\n# Check token balances in JSON\nnode sogni-gen.mjs --json --balance\n\n# Quiet mode (suppress progress)\nnode sogni-gen.mjs -q -o \u002Ftmp\u002Fcat.png \"a cat wearing a hat\"\n```\n\n## Options\n\n| Flag | Description | Default |\n|------|-------------|---------|\n| `-o, --output \u003Cpath>` | Save to file | prints URL |\n| `-m, --model \u003Cid>` | Model ID | z_image_turbo_bf16 |\n| `-w, --width \u003Cpx>` | Width | 512 |\n| `-h, --height \u003Cpx>` | Height | 512 |\n| `-n, --count \u003Cnum>` | Number of images | 1 |\n| `-t, --timeout \u003Csec>` | Timeout seconds | 30 (300 for video) |\n| `-s, --seed \u003Cnum>` | Specific seed | random |\n| `--last-seed` | Reuse seed from last render | - |\n| `--seed-strategy \u003Cs>` | Seed strategy: random\\|prompt-hash | prompt-hash |\n| `--multi-angle` | Multiple angles LoRA mode (Qwen Image Edit) | - |\n| `--angles-360` | Generate 8 azimuths (front -> front-left) | - |\n| `--angles-360-video` | Assemble looping 360 mp4 using i2v between angles (requires ffmpeg) | - |\n| `--azimuth \u003Ckey>` | front\\|front-right\\|right\\|back-right\\|back\\|back-left\\|left\\|front-left | front |\n| `--elevation \u003Ckey>` | low-angle\\|eye-level\\|elevated\\|high-angle | eye-level |\n| `--distance \u003Ckey>` | close-up\\|medium\\|wide | medium |\n| `--angle-strength \u003Cn>` | LoRA strength for multiple_angles | 0.9 |\n| `--angle-description \u003Ctext>` | Optional subject description | - |\n| `--steps \u003Cnum>` | Override steps (model-dependent) | - |\n| `--guidance \u003Cnum>` | Override guidance (model-dependent) | - |\n| `--output-format \u003Cf>` | Image output format: png\\|jpg | png |\n| `--sampler \u003Cname>` | Sampler (model-dependent) | - |\n| `--scheduler \u003Cname>` | Scheduler (model-dependent) | - |\n| `--lora \u003Cid>` | LoRA id (repeatable, edit only) | - |\n| `--loras \u003Cids>` | Comma-separated LoRA ids | - |\n| `--lora-strength \u003Cn>` | LoRA strength (repeatable) | - |\n| `--lora-strengths \u003Cn>` | Comma-separated LoRA strengths | - |\n| `--token-type \u003Ctype>` | Token type: spark\\|sogni | spark |\n| `--balance, --balances` | Show SPARK\u002FSOGNI balances and exit | - |\n| `-c, --context \u003Cpath>` | Context image for editing | - |\n| `--last-image` | Use last generated image as context\u002Fref | - |\n| `--video, -v` | Generate video instead of image | - |\n| `--workflow \u003Ctype>` | Video workflow (t2v\\|i2v\\|s2v\\|ia2v\\|a2v\\|v2v\\|animate-move\\|animate-replace) | inferred |\n| `--fps \u003Cnum>` | Frames per second (video) | 16 |\n| `--duration \u003Csec>` | Duration in seconds (video) | 5 |\n| `--frames \u003Cnum>` | Override total frames (video) | - |\n| `--auto-resize-assets` | Auto-resize video assets | true |\n| `--no-auto-resize-assets` | Disable auto-resize | - |\n| `--estimate-video-cost` | Estimate video cost and exit (requires --steps) | - |\n| `--photobooth` | Face transfer mode (InstantID + SDXL Turbo) | - |\n| `--cn-strength \u003Cn>` | ControlNet strength (photobooth) | 0.8 |\n| `--cn-guidance-end \u003Cn>` | ControlNet guidance end point (photobooth) | 0.3 |\n| `--ref \u003Cpath>` | Reference image for video or photobooth face | required for video\u002Fphotobooth |\n| `--ref-end \u003Cpath>` | End frame for i2v interpolation | - |\n| `--ref-audio \u003Cpath>` | Reference audio for s2v | - |\n| `--ref-video \u003Cpath>` | Reference video for animate\u002Fv2v workflows | - |\n| `--controlnet-name \u003Cname>` | ControlNet type for v2v: canny\\|pose\\|depth\\|detailer | - |\n| `--controlnet-strength \u003Cn>` | ControlNet strength for v2v (0.0-1.0) | 0.8 |\n| `--sam2-coordinates \u003Ccoords>` | SAM2 click coords for animate-replace (x,y or x1,y1;x2,y2) | - |\n| `--trim-end-frame` | Trim last frame for seamless video stitching | - |\n| `--first-frame-strength \u003Cn>` | Keyframe strength for start frame (0.0-1.0) | - |\n| `--last-frame-strength \u003Cn>` | Keyframe strength for end frame (0.0-1.0) | - |\n| `--last` | Show last render info | - |\n| `--json` | JSON output | false |\n| `--strict-size` | Do not auto-adjust i2v video size for reference resizing constraints | false |\n| `-q, --quiet` | No progress output | false |\n| `--extract-last-frame \u003Cvideo> \u003Cimage>` | Extract last frame from video (safe ffmpeg wrapper) | - |\n| `--concat-videos \u003Cout> \u003Cclips...>` | Concatenate video clips (safe ffmpeg wrapper) | - |\n| `--list-media [type]` | List recent inbound media (images\\|audio\\|all) | images |\n\n## OpenClaw Config Defaults\n\nWhen installed as an OpenClaw plugin, `sogni-gen` will read defaults from:\n\n`~\u002F.openclaw\u002Fopenclaw.json`\n\n```json\n{\n  \"plugins\": {\n    \"entries\": {\n      \"sogni-gen\": {\n        \"enabled\": true,\n        \"config\": {\n          \"defaultImageModel\": \"z_image_turbo_bf16\",\n          \"defaultEditModel\": \"qwen_image_edit_2511_fp8_lightning\",\n          \"defaultPhotoboothModel\": \"coreml-sogniXLturbo_alpha1_ad\",\n          \"videoModels\": {\n            \"t2v\": \"wan_v2.2-14b-fp8_t2v_lightx2v\",\n            \"i2v\": \"wan_v2.2-14b-fp8_i2v_lightx2v\",\n            \"s2v\": \"wan_v2.2-14b-fp8_s2v_lightx2v\",\n            \"ia2v\": \"ltx2-19b-fp8_ia2v_distilled\",\n            \"a2v\": \"ltx2-19b-fp8_a2v_distilled\",\n            \"animate-move\": \"wan_v2.2-14b-fp8_animate-move_lightx2v\",\n            \"animate-replace\": \"wan_v2.2-14b-fp8_animate-replace_lightx2v\",\n            \"v2v\": \"ltx2-19b-fp8_v2v_distilled\"\n          },\n          \"defaultVideoWorkflow\": \"t2v\",\n          \"defaultNetwork\": \"fast\",\n          \"defaultTokenType\": \"spark\",\n          \"seedStrategy\": \"prompt-hash\",\n          \"modelDefaults\": {\n            \"flux1-schnell-fp8\": { \"steps\": 4, \"guidance\": 3.5 },\n            \"flux2_dev_fp8\": { \"steps\": 20, \"guidance\": 7.5 }\n          },\n          \"defaultWidth\": 768,\n          \"defaultHeight\": 768,\n          \"defaultCount\": 1,\n          \"defaultFps\": 16,\n          \"defaultDurationSec\": 5,\n          \"defaultImageTimeoutSec\": 30,\n          \"defaultVideoTimeoutSec\": 300,\n          \"credentialsPath\": \"~\u002F.config\u002Fsogni\u002Fcredentials\",\n          \"lastRenderPath\": \"~\u002F.config\u002Fsogni\u002Flast-render.json\",\n          \"mediaInboundDir\": \"~\u002F.clawdbot\u002Fmedia\u002Finbound\"\n        }\n      }\n    }\n  }\n}\n```\n\nCLI flags always override these defaults.\nIf your OpenClaw config lives elsewhere, set `OPENCLAW_CONFIG_PATH`.\nSeed strategies: `prompt-hash` (deterministic) or `random`.\n\n## Image Models\n\n| Model | Speed | Use Case |\n|-------|-------|----------|\n| `z_image_turbo_bf16` | Fast (~5-10s) | General purpose, default |\n| `flux1-schnell-fp8` | Very fast | Quick iterations |\n| `flux2_dev_fp8` | Slow (~2min) | High quality |\n| `chroma-v.46-flash_fp8` | Medium | Balanced |\n| `qwen_image_edit_2511_fp8` | Medium | Image editing with context (up to 3) |\n| `qwen_image_edit_2511_fp8_lightning` | Fast | Quick image editing |\n| `coreml-sogniXLturbo_alpha1_ad` | Fast | Photobooth face transfer (SDXL Turbo) |\n\n## Video Models\n\n### WAN 2.2 Models\n\n| Model | Speed | Use Case |\n|-------|-------|----------|\n| `wan_v2.2-14b-fp8_i2v_lightx2v` | Fast | Default video generation |\n| `wan_v2.2-14b-fp8_i2v` | Slow | Higher quality video |\n| `wan_v2.2-14b-fp8_t2v_lightx2v` | Fast | Text-to-video |\n| `wan_v2.2-14b-fp8_s2v_lightx2v` | Fast | Sound-to-video |\n| `wan_v2.2-14b-fp8_animate-move_lightx2v` | Fast | Animate-move |\n| `wan_v2.2-14b-fp8_animate-replace_lightx2v` | Fast | Animate-replace |\n\n### LTX-2 \u002F LTX-2.3 Models\n\n| Model | Speed | Use Case |\n|-------|-------|----------|\n| `ltx2-19b-fp8_t2v_distilled` | Fast (~2-3min) | Text-to-video, 8-step |\n| `ltx2-19b-fp8_t2v` | Medium (~5min) | Text-to-video, 20-step quality |\n| `ltx2-19b-fp8_i2v_distilled` | Fast (~2-3min) | Image-to-video, 8-step |\n| `ltx2-19b-fp8_i2v` | Medium (~5min) | Image-to-video, 20-step quality |\n| `ltx2-19b-fp8_ia2v_distilled` | Fast (~2-3min) | Image+audio-to-video |\n| `ltx2-19b-fp8_a2v_distilled` | Fast (~2-3min) | Audio-to-video |\n| `ltx2-19b-fp8_v2v_distilled` | Fast (~3min) | Video-to-video with ControlNet |\n| `ltx2-19b-fp8_v2v` | Medium (~5min) | Video-to-video with ControlNet, quality |\n| `ltx23-22b-fp8_t2v_distilled` | Fast (~2-3min) | Text-to-video, LTX-2.3 |\n\n## Image Editing with Context\n\nEdit images using reference images (Qwen models support up to 3):\n\n```bash\n# Single context image\nnode sogni-gen.mjs -c photo.jpg \"make the background a beach\"\n\n# Multiple context images (subject + style)\nnode sogni-gen.mjs -c subject.jpg -c style.jpg \"apply the style to the subject\"\n\n# Use last generated image as context\nnode sogni-gen.mjs --last-image \"make it more vibrant\"\n```\n\nWhen context images are provided without `-m`, defaults to `qwen_image_edit_2511_fp8_lightning`.\n\n## Photobooth (Face Transfer)\n\nGenerate stylized portraits from a face photo using InstantID ControlNet. When a user mentions \"photobooth\", wants a stylized portrait of themselves, or asks to transfer their face into a style, use `--photobooth` with `--ref` pointing to their face image.\n\n```bash\n# Basic photobooth\nnode sogni-gen.mjs --photobooth --ref face.jpg \"80s fashion portrait\"\n\n# Multiple outputs\nnode sogni-gen.mjs --photobooth --ref face.jpg -n 4 \"LinkedIn professional headshot\"\n\n# Custom ControlNet tuning\nnode sogni-gen.mjs --photobooth --ref face.jpg --cn-strength 0.6 --cn-guidance-end 0.5 \"oil painting\"\n```\n\nUses SDXL Turbo (`coreml-sogniXLturbo_alpha1_ad`) at 1024x1024 by default. The face image is passed via `--ref` and styled according to the prompt. Cannot be combined with `--video` or `-c\u002F--context`.\n\n**Agent usage:**\n```bash\n# Photobooth: stylize a face photo\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --photobooth --ref \u002Fpath\u002Fto\u002Fface.jpg -o \u002Ftmp\u002Fstylized.png \"80s fashion portrait\"\n\n# Multiple photobooth outputs\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --photobooth --ref \u002Fpath\u002Fto\u002Fface.jpg -n 4 -o \u002Ftmp\u002Fstylized.png \"LinkedIn professional headshot\"\n```\n\n## Multiple Angles (Turnaround)\n\nGenerate specific camera angles from a single reference image using the Multiple Angles LoRA:\n\n```bash\n# Single angle\nnode sogni-gen.mjs --multi-angle -c subject.jpg \\\n  --azimuth front-right --elevation eye-level --distance medium \\\n  --angle-strength 0.9 \\\n  \"studio portrait, same person\"\n\n# 360 sweep (8 azimuths)\nnode sogni-gen.mjs --angles-360 -c subject.jpg --distance medium --elevation eye-level \\\n  \"studio portrait, same person\"\n\n# 360 sweep video (looping mp4, uses i2v between angles; requires ffmpeg)\nnode sogni-gen.mjs --angles-360 --angles-360-video \u002Ftmp\u002Fturntable.mp4 \\\n  -c subject.jpg --distance medium --elevation eye-level \\\n  \"studio portrait, same person\"\n```\n\nThe prompt is auto-built with the required `\u003Csks>` token plus the selected camera angle keywords.\n`--angles-360-video` generates i2v clips between consecutive angles (including last→first) and concatenates them with ffmpeg for a seamless loop.\n\n### 360 Video Best Practices\n\nWhen a user requests a \"360 video\", follow this workflow:\n\n1. **Default camera parameters** (do not ask unless they specify):\n   - **Elevation**: default to **medium**\n   - **Distance**: default to **medium**\n\n2. **Map user terms to flags**:\n   | User says | Flag value |\n   |-----------|------------|\n   | \"high\" angle | `--elevation high-angle` |\n   | \"medium\" angle | `--elevation eye-level` |\n   | \"low\" angle | `--elevation low-angle` |\n   | \"close\" | `--distance close-up` |\n   | \"medium\" distance | `--distance medium` |\n   | \"far\" | `--distance wide` |\n\n3. **Always use first-frame\u002Flast-frame stitching** - the `--angles-360-video` flag automatically handles this by generating i2v clips between consecutive angles including last→first for seamless looping.\n\n4. **Example command**:\n   ```bash\n   node sogni-gen.mjs --angles-360 --angles-360-video \u002Ftmp\u002Foutput.mp4 \\\n     -c \u002Fpath\u002Fto\u002Fimage.png --elevation eye-level --distance medium \\\n     \"description of subject\"\n   ```\n\n### Transition Video Rule\n\nFor **any transition video work**, always use the **Sogni skill\u002Fplugin** (not raw ffmpeg or other shell commands). Use the built-in `--extract-last-frame`, `--concat-videos`, and `--looping` flags for video manipulation.\n\n### Insufficient Funds Handling\n\nWhen you see **\"Debit Error: Insufficient funds\"**, reply:\n\n\"Insufficient funds. Claim 50 free daily Spark points at https:\u002F\u002Fapp.sogni.ai\u002F\"\n\n## Video Generation\n\nGenerate videos from a reference image:\n\n```bash\n# Text-to-video (t2v)\nnode sogni-gen.mjs --video \"ocean waves at sunset\"\n\n# Basic video from image\nnode sogni-gen.mjs --video --ref cat.jpg -o cat.mp4 \"cat walks around\"\n\n# Use last generated image as reference\nnode sogni-gen.mjs --last-image --video \"gentle camera pan\"\n\n# Custom duration and FPS\nnode sogni-gen.mjs --video --ref scene.png --duration 10 --fps 24 \"zoom out slowly\"\n\n# Sound-to-video (s2v)\nnode sogni-gen.mjs --video --ref face.jpg --ref-audio speech.m4a \\\n  -m wan_v2.2-14b-fp8_s2v_lightx2v \"lip sync talking head\"\n\n# Image+audio-to-video (ia2v, LTX)\nnode sogni-gen.mjs --video --workflow ia2v --ref cover.jpg --ref-audio song.mp3 \\\n  \"music video with synchronized motion\"\n\n# Audio-to-video (a2v, LTX)\nnode sogni-gen.mjs --video --workflow a2v --ref-audio song.mp3 \\\n  \"abstract audio-reactive visualizer\"\n\n# LTX-2.3 text-to-video\nnode sogni-gen.mjs --video -m ltx23-22b-fp8_t2v_distilled --duration 20 \\\n  \"A wide cinematic aerial shot opens over steep tropical cliffs at golden hour, warm sunlight grazing the rock faces while sea mist drifts above the water below. Palm trees bend gently along the ridge as waves roll against the shoreline, leaving bright bands of foam across the dark stone. The camera glides forward in one continuous pass, revealing more of the coastline as sunlight flickers across wet surfaces and distant birds wheel through the haze. The scene holds a calm, upscale travel-film mood with smooth stabilized motion and crisp environmental detail.\"\n\n# Animate (motion transfer)\nnode sogni-gen.mjs --video --ref subject.jpg --ref-video motion.mp4 \\\n  --workflow animate-move \"transfer motion\"\n```\n\n## Video-to-Video (V2V) with ControlNet\n\nTransform an existing video using LTX-2 models with ControlNet guidance:\n\n```bash\n# Basic v2v with canny edge detection\nnode sogni-gen.mjs --video --workflow v2v --ref-video input.mp4 \\\n  --controlnet-name canny \"stylized anime version\"\n\n# V2V with pose detection and custom strength\nnode sogni-gen.mjs --video --workflow v2v --ref-video dance.mp4 \\\n  --controlnet-name pose --controlnet-strength 0.7 \"robot dancing\"\n\n# V2V with depth map\nnode sogni-gen.mjs --video --workflow v2v --ref-video scene.mp4 \\\n  --controlnet-name depth \"watercolor painting style\"\n```\n\nControlNet types: `canny` (edge detection), `pose` (body pose), `depth` (depth map), `detailer` (detail enhancement).\n\n## Photo Restoration\n\nRestore damaged vintage photos using Qwen image editing:\n\n```bash\n# Basic restoration\nsogni-gen -c damaged_photo.jpg -o restored.png \\\n  \"professionally restore this vintage photograph, remove damage and scratches\"\n\n# Detailed restoration with preservation hints\nsogni-gen -c old_photo.jpg -o restored.png -w 1024 -h 1280 \\\n  \"restore this vintage photo, remove peeling, tears and wear marks, \\\n  preserve natural features and expression, maintain warm nostalgic color tones\"\n```\n\n**Tips for good restorations:**\n- Describe the damage: \"peeling\", \"scratches\", \"tears\", \"fading\"\n- Specify what to preserve: \"natural features\", \"eye color\", \"hair\", \"expression\"\n- Mention the era for color tones: \"1970s warm tones\", \"vintage sepia\"\n\n**Finding received images (Telegram\u002Fetc):**\n```bash\nnode {{skillDir}}\u002Fsogni-gen.mjs --json --list-media images\n```\n\n**Do NOT use `ls`, `cp`, or other shell commands to browse user files.** Always use `--list-media` to find inbound media.\n\n## IMPORTANT KEYWORD RULE\n\n- If the user message includes the word \"photobooth\" (case-insensitive), always use `--photobooth` mode with `--ref` set to the user-provided face image.\n- Prioritize this rule over generic image-edit flows (`-c`) for that request.\n\n## LTX-2.3 Prompt Rule\n\nWhenever the chosen video model is `ltx23-22b-fp8_t2v_distilled`, do not pass the user's short request through unchanged. Rewrite it into an LTX-2.3-safe prompt before calling `sogni-gen`.\n\n- Output one single paragraph only. No line breaks, bullet points, section labels, tag lists, or screenplay formatting.\n- Use 4-8 flowing present-tense sentences describing one continuous shot. No cuts, montage, or unrelated scene jumps.\n- Start with shot scale plus the scene's visual identity, then describe environment, time of day, atmosphere, textures, and specific light sources.\n- Keep people, clothing, props, and locations concrete and stable across the whole paragraph.\n- Give the scene one main action thread from start to finish. Use connectors like `as`, `while`, and `then` so motion reads as a continuous filmed moment.\n- If the user asks for dialogue, embed the spoken words inline as prose and identify who is speaking and how they deliver the line.\n- Express emotion through visible physical cues such as posture, grip, jaw tension, breathing, or pacing. Ambient sound can be woven into the prose naturally.\n- Use positive phrasing only. Do not add negative prompts, \"no ...\" clauses, on-screen text\u002Flogo requests, vague filler words like `beautiful` or `nice`, or structural markup such as `[DIALOGUE]`.\n- Keep action density proportional to duration. For short clips, describe one main beat rather than several separate events.\n- Preserve the user's request, but expand it into cinematic prose. Do not invent a different story just to make the prompt longer.\n\n### Duration-Aware Pacing\n\nMatch scene density to clip length so prompts stay filmable:\n\n- About `1-4s`: describe exactly 1 action or moment.\n- About `5-8s`: describe about 2 sequential actions.\n- About `9-12s`: describe about 3 sequential actions.\n- Longer clips: add only a small number of additional sequential beats. Do not turn the prompt into a montage or a full story arc unless the duration clearly supports it.\n\n### Orientation Mapping\n\nWhen the user explicitly asks for an orientation or aspect ratio, map it to safe LTX dimensions:\n\n- `vertical`, `portrait`, `story`, `reel`, `tiktok` -> `-w 1088 -h 1920`\n- `landscape`, `horizontal`, `widescreen`, `youtube`, `16:9` -> `-w 1920 -h 1088`\n- `square`, `1:1` -> `-w 1088 -h 1088`\n- `4:3 portrait` -> `-w 832 -h 1088`\n- `4:3 landscape` -> `-w 1088 -h 832`\n\n### Camera Language Normalization\n\nWhen the user uses loose camera language, translate it into concrete motion phrasing inside the prose prompt:\n\n- `zoom in` -> `slow push-in`\n- `zoom out` -> `slow pull-back`\n- `pan left` \u002F `pan right` -> `smooth pan left` \u002F `smooth pan right`\n- `orbit` \u002F `circle around` -> `slow arc left` or `slow arc right`\n- `follow` -> `tracking follow`\n\nShort example:\n\n```text\nUser ask: \"4k video of a woman in a neon alley\"\n\nUse this shape instead: \"A medium cinematic shot frames a woman in her 30s standing in a rain-soaked neon alley at night, violet and amber signs reflecting across the wet pavement while warm steam drifts from street vents. She wears a dark trench coat with damp strands of black hair clinging near her cheek as light glances across the fabric texture and the brick walls behind her. She turns toward the camera and steps forward with measured focus, one hand tightening around the strap of her bag while rain taps softly on the metal fire escape and a distant train hum rolls through the block. The camera performs a slow push-in as her jaw sets and her breathing steadies, maintaining smooth stabilized motion and a tense urban-thriller mood.\"\n```\n\n## Agent Usage\n\nWhen user asks to generate\u002Fdraw\u002Fcreate an image:\n\n```bash\n# Generate and save locally\nnode {{skillDir}}\u002Fsogni-gen.mjs -q -o \u002Ftmp\u002Fgenerated.png \"user's prompt\"\n\n# Edit an existing image\nnode {{skillDir}}\u002Fsogni-gen.mjs -q -c \u002Fpath\u002Fto\u002Finput.jpg -o \u002Ftmp\u002Fedited.png \"make it pop art style\"\n\n# Generate video from image\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --video --ref \u002Fpath\u002Fto\u002Fimage.png -o \u002Ftmp\u002Fvideo.mp4 \"A medium shot holds on the subject in soft late-afternoon light as fabric edges and background details remain clear and stable. The camera performs a slow push-in while the subject shifts weight subtly and turns slightly toward the lens, keeping the motion gentle and continuous. Leaves rustle softly in the background and the scene maintains smooth cinematic movement with no abrupt action changes.\"\n\n# Generate text-to-video\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --video -o \u002Ftmp\u002Fvideo.mp4 \"A wide cinematic shot opens on ocean waves rolling toward a rocky shoreline at sunset, golden light spreading across the water while sea mist drifts through the air. Foam patterns form and recede over the dark sand as the horizon glows orange and pink in the distance. The camera glides forward in one continuous movement, holding smooth stabilized motion and calm environmental detail throughout the scene.\"\n\n# HD \u002F \"4K\" text-to-video: prefer LTX-2.3\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --video -m ltx23-22b-fp8_t2v_distilled -w 1920 -h 1088 -o \u002Ftmp\u002Fvideo.mp4 \"A wide cinematic aerial shot opens over a rugged ocean coastline at golden hour, warm sunlight catching the cliff faces while white surf breaks against dark rock below. Low sea mist hangs over the water and bands of foam trace the shoreline as gulls wheel through the distance. The camera glides forward in one continuous pass, revealing the curve of the coast while wet stone flashes with reflected light and the scene keeps smooth stabilized motion from start to finish. The overall mood feels expansive and polished, with crisp environmental detail and steady travel-film energy.\"\n\n# HD \u002F \"4K\" image-to-video: prefer LTX i2v\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --video --ref \u002Fpath\u002Fto\u002Fimage.png -m ltx2-19b-fp8_i2v_distilled -w 1920 -h 1088 -o \u002Ftmp\u002Fvideo.mp4 \"A medium cinematic shot holds on the scene with clean subject separation and stable environmental detail as directional light shapes the surfaces and background depth. The camera performs a slow push-in while the main subject makes one subtle continuous movement, keeping posture and identity consistent from start to finish. Ambient motion in the background stays gentle and the overall clip remains smooth, stabilized, and visually coherent.\"\n\n# Photobooth: stylize a face photo\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --photobooth --ref \u002Fpath\u002Fto\u002Fface.jpg -o \u002Ftmp\u002Fstylized.png \"80s fashion portrait\"\n\n# Check current SPARK\u002FSOGNI balances (no prompt required)\nnode {{skillDir}}\u002Fsogni-gen.mjs --json --balance\n\n# Find user-sent images\u002Faudio\nnode {{skillDir}}\u002Fsogni-gen.mjs --json --list-media images\n\n# Then send via message tool with filePath\n```\n\n## High-Res Video Routing\n\nWhen the user asks for video in **\"hd\"**, **\"1080p\"**, **\"4k\"**, **\"uhd\"**, or **\"high-res\"**, do not use the default WAN video models.\n\n- For **text-to-video**, use `-m ltx23-22b-fp8_t2v_distilled`.\n- For **image-to-video**, use `-m ltx2-19b-fp8_i2v_distilled`.\n- Prefer LTX-sized dimensions such as `-w 1920 -h 1088`.\n- If the user explicitly asks for `vertical`, `portrait`, `story`, `reel`, `tiktok`, `square`, or `4:3`, apply the matching dimensions from the **Orientation Mapping** rules instead of defaulting to 16:9.\n- Rewrite the user's request using the **LTX-2.3 Prompt Rule** before invoking the command. Do not send short slogan-style prompts to LTX.\n- Treat \"4k\" as a signal to use the highest practical LTX path exposed by this skill, even if the exact output is not literal 3840x2160.\n\n**Security:** Agents must use the CLI's built-in flags (`--extract-last-frame`, `--concat-videos`, `--list-media`) for all file operations and video manipulation. Never run raw shell commands (`ffmpeg`, `ls`, `cp`, etc.) directly.\n\n## Animate Between Two Images (First-Frame \u002F Last-Frame)\n\nWhen a user asks to **animate between two images**, use `--ref` (first frame) and `--ref-end` (last frame) to create a creative interpolation video:\n\n```bash\n# Animate from image A to image B\nnode {{skillDir}}\u002Fsogni-gen.mjs -q --video --ref \u002Ftmp\u002FimageA.png --ref-end \u002Ftmp\u002FimageB.png -o \u002Ftmp\u002Ftransition.mp4 \"descriptive prompt of the transition\"\n```\n\n### Animate a Video to an Image (Scene Continuation)\n\nWhen a user asks to **animate from a video to an image** (or \"continue\" a video into a new scene):\n\n1. **Extract the last frame** of the existing video using the built-in safe wrapper:\n   ```bash\n   node {{skillDir}}\u002Fsogni-gen.mjs --extract-last-frame \u002Ftmp\u002Fexisting.mp4 \u002Ftmp\u002Flastframe.png\n   ```\n2. **Generate a new video** using the last frame as `--ref` and the target image as `--ref-end`:\n   ```bash\n   node {{skillDir}}\u002Fsogni-gen.mjs -q --video --ref \u002Ftmp\u002Flastframe.png --ref-end \u002Ftmp\u002Ftarget.png -o \u002Ftmp\u002Fcontinuation.mp4 \"scene transition prompt\"\n   ```\n3. **Concatenate the videos** using the built-in safe wrapper:\n   ```bash\n   node {{skillDir}}\u002Fsogni-gen.mjs --concat-videos \u002Ftmp\u002Ffull_sequence.mp4 \u002Ftmp\u002Fexisting.mp4 \u002Ftmp\u002Fcontinuation.mp4\n   ```\n\nThis ensures visual continuity — the new clip picks up exactly where the previous one ended.\n\n**Do NOT run raw `ffmpeg` commands.** Always use `--extract-last-frame` and `--concat-videos` for video manipulation.\n\n**Always apply this pattern when:**\n- User says \"animate image A to image B\" → use `--ref A --ref-end B`\n- User says \"animate this video to this image\" → extract last frame, use as `--ref`, target image as `--ref-end`, then stitch\n- User says \"continue this video\" with a target image → same as above\n\n## JSON Output\n\n```json\n{\n  \"success\": true,\n  \"prompt\": \"a cat wearing a hat\",\n  \"model\": \"z_image_turbo_bf16\", \n  \"width\": 512,\n  \"height\": 512,\n  \"urls\": [\"https:\u002F\u002F...\"],\n  \"localPath\": \"\u002Ftmp\u002Fcat.png\"\n}\n```\n\nOn error (with `--json`), the script returns a single JSON object like:\n\n```json\n{\n  \"success\": false,\n  \"error\": \"Video width and height must be divisible by 16 (got 500x512).\",\n  \"errorCode\": \"INVALID_VIDEO_SIZE\",\n  \"hint\": \"Choose --width\u002F--height divisible by 16. For i2v, also match the reference aspect ratio.\"\n}\n```\n\nBalance check example (`--json --balance`):\n\n```json\n{\n  \"success\": true,\n  \"type\": \"balance\",\n  \"spark\": 12.34,\n  \"sogni\": 0.56\n}\n```\n\n## Cost\n\nUses Spark tokens from your Sogni account. 512x512 images are most cost-efficient.\n\n## Troubleshooting\n\n- **Auth errors**: Check `SOGNI_API_KEY` or the credentials in `~\u002F.config\u002Fsogni\u002Fcredentials`\n- **i2v sizing gotchas**: Video sizes are constrained (min 480px, max 1536px, divisible by 16). For i2v, the client wrapper resizes the reference (`fit: inside`) and uses the resized dimensions as the final video size. Because this uses rounding, a requested size can still yield an invalid final size (example: `1024x1536` requested but ref becomes `1024x1535`).\n- **Auto-adjustment**: With a local `--ref`, the script will auto-adjust the requested size to avoid non-16 resized reference dimensions.\n- **If the script adjusts your size but you want to fail instead**: pass `--strict-size` and it will print a suggested `--width\u002F--height`.\n- **Timeouts**: Try a faster model or increase `-t` timeout\n- **No workers**: Check https:\u002F\u002Fsogni.ai for network status\n",{"name":5,"version":24,"homepage":25,"metadata":26,"description":7},"1.5.16","https:\u002F\u002Fsogni.ai",{"clawdbot":27},{"os":28,"emoji":32,"install":33,"requires":39,"primaryEnv":41},[29,30,31],"darwin","linux","win32","🎨",[34],{"id":35,"kind":36,"label":37,"command":38},"npm","exec","Prepare runtime dependencies","cd {{skillDir}} && cp skill-package.json package.json && npm i",{"env":40,"bins":53,"config":55,"anyBins":61},[41,42,43,44,45,46,47,48,49,50,51,52],"SOGNI_API_KEY","SOGNI_USERNAME","SOGNI_PASSWORD","SOGNI_CREDENTIALS_PATH","SOGNI_LAST_RENDER_PATH","SOGNI_MEDIA_INBOUND_DIR","OPENCLAW_CONFIG_PATH","OPENCLAW_PLUGIN_CONFIG","FFMPEG_PATH","SOGNI_DOWNLOADS_DIR","SOGNI_MCP_SAVE_DOWNLOADS","SOGNI_ALLOWED_DOWNLOAD_HOSTS",[54],"node",[56,57,58,59,60],"~\u002F.config\u002Fsogni\u002Fcredentials","~\u002F.openclaw\u002Fopenclaw.json","~\u002F.clawdbot\u002Fmedia\u002Finbound","~\u002F.config\u002Fsogni\u002Flast-render.json","~\u002FDownloads\u002Fsogni",[62],"ffmpeg","main","f9d3fe7cf9ac8f1ea63a0d96e98e1f510a3814db","skills\u002Fkrunkosaurus\u002Fsogni-gen",1,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-06-07 03:34:58",{"source":8,"skillName":5,"commands":73,"prompt":83,"zipAvailable":84},[74,77,80],{"tool":75,"command":76},"npx","npx skills add javimosch\u002Fopen-claw-skills --skill sogni-gen",{"tool":78,"command":79},"bunx","bunx skills add javimosch\u002Fopen-claw-skills --skill sogni-gen",{"tool":81,"command":82},"pnpm","pnpm dlx skills add javimosch\u002Fopen-claw-skills --skill sogni-gen","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fkrunkosaurus\u002Fsogni-gen\u002FSKILL.md",true,[],[87,95,102,109,116,123],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":94},"01M778GGXG2VQ0YF31W2MKGMQZ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":94},"01M778G7BH8SBJ9FJ6C3G7CB1K","ceaser","Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir\u002FUltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":94},"01M778FYCJQZWFKKX5FYMK3S47","ceaser-send","Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp \u003Csubcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir\u002FUltraHonk zero-knowledge proofs.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyra-v21\u002Fceaser-send\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":94},"01M778FQQNSEYA3HJKZBPQ4M9Z","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":94},"01M778FGVZX7QA2TF9BFMM37FY","moldium","Post and manage content on the Moldium blog platform. Triggered by \"post to Moldium\", \"write a blog post\", \"publish an article\", etc.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzyom45\u002Fmoldium\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":94},"01M778F88D8PQ9MQ0KNW2TJ8ZH","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http:\u002F\u002Fweakaccept.top:8000\u002F.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fopen-claw-skills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[]]