← 返回
未分类 中文

Drawthings Agent

Generate images using Draw Things app via dt-skill CLI or MCP
通过 dt‑skill CLI 或 MCP 使用 Draw Things 应用生成图像
mijuu mijuu 来源
未分类 clawhub v0.1.1 1 版本 100000 Key: 无需
★ 1
Stars
📥 370
下载
💾 0
安装
1
版本
#latest

概述

Skill: Draw Things for AI Agents

Slug: drawthings-agent

Display Name: Draw Things for AI Agents

🛠 Setup & Verification (AI ACTION REQUIRED)

If dt-skill is not found or fails with "module not found", you MUST perform these steps:

  1. Global Installation: Run npm install -g @mijuu/drawthings to ensure the CLI and MCP entry points are available.
  2. Verify Environment: Run dt-skill doctor. If paths are missing, ask the user for their Draw Things model and server binary paths, then run dt-skill config --server-path "..." --models-path "...".

🧩 Protocol Preference (CRITICAL for AI)

This skill provides two interfaces. You MUST follow this priority:

  1. Model Context Protocol (MCP): If you see the tool generate_image in your toolset, ALWAYS use it. It is the most reliable interface for AI.
  2. CLI Interface (dt-skill): Use dt-skill gen ONLY if the MCP tool is missing or for server management (e.g., dt-skill server start).

🛠 Target Tool

  • MCP Tool: generate_image (Preferred)
  • CLI Command: dt-skill gen (Fallback)

🤖 AI Usage Instructions

1. Basic Generation

  • MCP: Call generate_image(prompt: "...").
  • CLI: Run dt-skill gen --prompt "...".

You MUST provide a detailed prompt.

2. High Quality & Upscaling (CRITICAL)

If the user asks for "high quality", "high resolution", "4K", or "clear" images, you MUST use the --upscale parameter at the time of generation.

  • For 2x Upscale: --upscale 2
  • For 4x Upscale: --upscale 4 (Note: Takes significantly longer)

Example: dt-skill gen --prompt "..." --upscale 2

3. Aspect Ratio & Resolution

Default is 1024x576 (16:9).

  • Square: --width 1024 --height 1024
  • Portrait: --width 576 --height 1024
  • Standard: --width 1024 --height 576

4. Model Selection

  • Default: z_image_turbo_1.0_q6p.ckpt (Fastest, 8 steps).
  • Listing Models: Use dt-skill models to see what is available before suggesting a change.

5. Task Control & Sessions

When running in environments that support background tasks (like OpenClaw or OpenCode), use is_background: true to allow real-time progress monitoring.

  • Progress: You will see Sampling step: X/Y.
  • Heartbeat: Every 30s you will see ... still working ....
  • Timeout: Default is 600s. For heavy 4x upscales, use --timeout 1200.

⚠️ CRITICAL CONSTRAINTS for AI

  1. NO TRUNCATION: Never use "..." or "etc." in the prompt. Provide the complete text.
  2. NO POST-PROCESSING: Upscaling MUST be part of the initial gen command.
  3. RESPONSE COMPRESSION: Ensure "Response Compression" (FPY) is DISABLED in Draw Things settings.

📋 Parameter Reference (CLI)

ParameterTypeDescription
:---:---:---
--promptString(Required) Positive prompt
--negative-promptStringElements to exclude
--upscaleNumber1, 2, or 4
--modelStringFilename of the model
--stepsNumberNumber of sampling steps (8-30)
--seedNumber0 for random, or specific number
--outputPathCustom path for result
--timeoutNumberMax runtime in seconds (Default 600)

版本历史

共 1 个版本

  • v0.1.1 当前
    2026-05-03 09:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

design-media

Nano Banana Pro

steipete
使用 Nano Banana Pro (Gemini 3 Pro Image) 生成或编辑图像。支持文生图、图生图及 1K/2K/4K 分辨率,适用于图像创建、修改及编辑请求,使用 --input-image 指定输入图像。
★ 424 📥 116,222
design-media

Openai Whisper

steipete
使用 Whisper CLI 进行本地语音转文字(无需 API 密钥)
★ 329 📥 92,966
design-media

Video Frames

steipete
使用 ffmpeg 从视频中提取帧或短片。
★ 132 📥 52,662