用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/saattrupdan/dotfiles --skill image-generate命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | image-generate |
| description | Generate images from text prompts using Ideogram 4 via CLI. |
Generate images from text prompts using Ideogram 4 (fp8 quantised).
Use this skill when the user wants to:
Install the CLI package (editable mode):
cd ~/.pi/agent/skills/image-generate
pip install -e .
This makes the generate-image command available globally.
Model weights are gated on Hugging Face. Before generating:
hf auth logingenerate-image "detailed description of the desired image" [options]
| Argument | Description | Default |
|---|---|---|
prompt | Text prompt describing the desired image (required) | — |
--width | Output image width in pixels (multiples of 16, max 2048) | 1024 |
--height | Output image height in pixels (multiples of 16, max 2048) | 1024 |
--quantization | Model quantisation: fp8 (all devices) or nf4 (CUDA-only) | fp8 |
--sampler-preset | Sampler preset: V4_QUALITY_48, V4_BALANCED_32, V4_SPEED_20 | V4_QUALITY_48 |
--seed | Random seed for reproducibility (0 for random) | 0 |
--output-dir | Directory to save generated images | ~/.pi/agent/generated-images/ |
--device | Device: cuda, mps, cpu (auto-detected if omitted) | auto |
--hive-text-key | Hive API key for text moderation | env HIVE_TEXT_MODERATION_KEY |
--hive-visual-key | Hive API key for visual moderation | env HIVE_VISUAL_MODERATION_KEY |
--verbose | Enable verbose logging | off |
# Basic usage
generate-image "A serene mountain landscape at sunset, photorealistic"
# Custom resolution and quality
generate-image "Cyberpunk city street at night, neon signs" \
--width 1536 --height 1024 \
--sampler-preset V4_BALANCED_32
# With specific seed for reproducibility
generate-image "Portrait of a cat in Victorian suit, oil painting" \
--seed 42
# Fast generation for testing
generate-image "Minimalist logo design, geometric shapes" \
--sampler-preset V4_SPEED_20
# Custom output directory
generate-image "Fantasy castle on a cliff" \
--output-dir ./my-images
ideogram4 Python package with Ideogram 4 modelhf auth login + licence acceptance)~/.pi/agent/generated-images/ with timestamps| Preset | Steps | Use case |
|---|---|---|
V4_QUALITY_48 | 48 | Highest quality, production use |
V4_BALANCED_32 | 32 | Balanced quality/speed |
V4_SPEED_20 | 20 | Fastest generation, drafts |
HF_TOKEN set and accept Ideogram 4 licence on HuggingFacenf4 quantisation is CUDA-only; use fp8 for MPS/CPUPrompt and output safety screening is performed via Hive.
Set the following environment variables to enable screening:
export HIVE_TEXT_MODERATION_KEY="your-text-key"
export HIVE_VISUAL_MODERATION_KEY="your-visual-key"
The CLI will emit warnings if these keys are not set.