Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Huo15 Img Test

v2.3.0

火一五文生图提示词 v2.3 — 文生图&视频六件套:(1) enhance_prompt.py 文生图:88 风格预设 + 混合预设 (-p A+B --mix 0.6) + 五锁一致性 + 角色设定图 + 系列批量 + basic/pro/master 三档;(2) enhance_video.py 视频提示...

0· 140·0 current·0 all-time
byJob Zhao@zhaobod1

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for zhaobod1/huo15-img-test.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Huo15 Img Test" (zhaobod1/huo15-img-test) from ClawHub.
Skill page: https://clawhub.ai/zhaobod1/huo15-img-test
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install huo15-img-test

ClawHub CLI

Package manager switcher

npx clawhub@latest install huo15-img-test
Security Scan
Capability signals
Requires sensitive credentials
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
Name/description (prompt enhancement, T2I/T2V, polish/safety) match the included scripts (enhance_prompt.py, enhance_video.py, reverse_prompt.py, render_prompt.py, claude_polish.py, safety_lint.py). The scripts implement the claimed features (preset library, mixing, video motions, reverse prompt, direct render backends).
Instruction Scope
SKILL.md and examples instruct the agent to call the provided CLI scripts with subject/preset/model args. The runtime instructions stay within the purpose (generate/enhance prompts, perform safety rewrites, and call model backends). There is no instruction in SKILL.md to collect unrelated host files or secrets. However, the scripts do accept/resolve local workflow files and call local HTTP endpoints (ComfyUI/SD WebUI), which is expected for 'direct render' functionality.
Install Mechanism
No install spec (instruction-only in registry). The skill ships Python scripts but does not declare packaging or download of external code during install, so there is no high-risk install mechanism in the manifest. Runtime network calls are performed by the scripts (urllib).
!
Credentials
Registry lists no required environment variables, but the code explicitly requires/uses several environment variables at runtime: ANTHROPIC_API_KEY (claude_polish.py) and OPENAI_API_KEY (render_prompt.py) and optional COMFYUI_URL / SDWEBUI_URL. This mismatch is an incoherence: the skill will fail or request secrets at runtime despite the registry claiming none. Additionally, the changelog and code comment explicitly state the use of 'pure urllib' and avoiding official SDKs 'to avoid enterprise scanner hits' — this looks like an attempt to evade detection by dependency scanners (a red flag). The requested env vars are proportionate to the claimed capabilities (Claude/OpenAI integration), but the omission from metadata and the evasion comments increase risk.
Persistence & Privilege
The skill is not always-enabled and does not request elevated privileges in the manifest. It reads/writes image output files and may post to local HTTP APIs (ComfyUI/SD WebUI) or remote APIs (Anthropic/OpenAI) at runtime — normal for a renderer. There is no evidence the skill modifies other skills or system-wide agent settings.
What to consider before installing
This skill appears to implement the described prompt-enhancement and rendering features, but take these precautions before installing or running it: - Expect to need API keys at runtime even though the registry lists none: ANTHROPIC_API_KEY (for claude_polish.py) if you use --polish, and OPENAI_API_KEY if you use the DALL·E backend in render_prompt.py. Also optional COMFYUI_URL/SDWEBUI_URL for local endpoints. - The code and changelog explicitly state they avoid official SDKs (use raw urllib) to 'avoid enterprise scanners' — this is an evasion behavior worth questioning. Ask the publisher why SDKs were avoided and consider this when deciding trust. - Only provide API keys with least privilege and in a controlled environment. Prefer using ephemeral/test keys and run the skill in a sandbox or isolated environment if possible. - Review the full source locally (especially the truncated parts) before supplying secrets: network calls, JSON parsing, saving files, and any remote-URL support can cause data to be sent externally. Verify there are no hidden endpoints or unexpected uploads. - If you need only prompt generation, avoid enabling --polish / --safety flags that call external APIs unless you trust the Anthropic/OpenAI integration. You can run the local-only parts (prompt builders, safety_lint local dictionary) without providing cloud keys. - If provenance matters, request a homepage, author contact, or VCS repo to validate origin; the registry metadata provides only an owner ID and no homepage. If you want, I can: (a) list exact lines where ANTHROPIC_API_KEY and OPENAI_API_KEY are referenced, (b) point out the code locations that perform network calls and file writes, or (c) produce a short checklist to safely test the skill in a sandbox.

Like a lobster shell, security has layers — review code before you run it.

latestvk97f5yv04se8gbq8dywcxn6gx985k0cg
140downloads
0stars
5versions
Updated 1d ago
v2.3.0
MIT-0

火一五文生图提示词 v2.3

一句话描述 → 贴合需求、一致性强的专业 T2I/T2V 提示词,并可直出。

v2.3 = 六件套

脚本作用一行 demo
enhance_prompt.py文生图(升级混合 + polish + safety)enhance_prompt.py "持剑女侠" -p "赛博朋克+水墨" --mix 0.6
enhance_video.py视频提示词enhance_video.py "汉服少女转身回眸" -p 汉服写真 -m Kling --duration 6
reverse_prompt.py参考图反解reverse_prompt.py img.png --mj
render_prompt.py直出图片render_prompt.py "原神少女" -p 原神 --backend sd-webui
claude_polish.py ⭐v2.3Claude API 智能润色claude_polish.py "一个温柔的女孩" --pipe
safety_lint.py ⭐v2.3平台合规润色safety_lint.py "战士手中沾满鲜血的剑" --target dalle

版本演进

维度v2.0v2.1v2.2v2.3
风格预设5688+ 混合预设沿用
一致性四锁 + seed + 系列+ 角色设定图+ motion 第六锁沿用
贴近需求意图+构图+情绪+ 时间/天气/季节/负向+ 视频镜头运动+关键帧+ Claude API 润色
生态闭环仅 prompt仅 prompt+ 反解 + 直出+ 平台合规重写
AI 联动+ Claude/GPT/Gemini 协作

使用方式

Agent 调用(推荐)

用户: 帮我出一张赛博朋克街头的图

Agent 识别到"赛博朋克"触发词,自动调用:

~/workspace/projects/openclaw/huo15-skills/huo15-img-test/scripts/enhance_prompt.py \
    "赛博朋克街头" -p 赛博朋克 -m Midjourney

直接调用

cd ~/workspace/projects/openclaw/huo15-skills/huo15-img-test

# 基础:指定预设
./scripts/enhance_prompt.py "一只猫" -p 动漫 -m Midjourney

# 自动意图(无需 -p,脚本从关键词推断)
./scripts/enhance_prompt.py "为咖啡品牌设计一个logo"   # → 自动选 Logo设计, 1:1
./scripts/enhance_prompt.py "产品白底图:无线耳机"     # → 自动选 产品摄影, 1:1
./scripts/enhance_prompt.py "微距 一滴露珠"            # → 自动选 微距摄影, 1:1

# 系列一致性(4 张共享 seed + camera/lighting/palette 锁)
./scripts/enhance_prompt.py "红发女侠" -p 动漫 -s 4 \
    --variations "持剑站立,骑马奔驰,弯弓射箭,与龙对视" \
    -m Midjourney

# 英文别名 + 多模型输出
./scripts/enhance_prompt.py "spaceship in nebula" -p scifi -m Flux -a 21:9
./scripts/enhance_prompt.py "minimalist camellia logo" -p logo -m SDXL

# JSON 输出(便于集成)
./scripts/enhance_prompt.py "森林少女" -p ghibli -j

88 款风格预设

【摄影 · 13】

写实摄影 / 胶片摄影 / 黑白摄影 / 人像摄影 / 时尚大片 / 美食摄影 / 产品摄影 / 微距摄影 / 航拍摄影 / 街拍纪实 / 暗黑美食 · 日杂 · 街头潮流 ⭐v2.1

【动漫 · 10】

动漫 / 新海诚 / 宫崎骏 / 美漫 / Q版 / 童话绘本 / 萌系 · 厚涂 · 轻小说封面 · 赛璐璐 ⭐v2.1

【插画 · 7】

水彩 / 油画 / 水墨 / 工笔国画 / 浮世绘 / 线稿 / 像素艺术

【3D · 7】

3DC4D / 盲盒手办 / 低多边形 / 等距视图 / 粘土 / 毛毡手工 / 纸艺

【设计 · 15】

极简主义 / 平面设计 / Logo设计 / 图标设计 / 信息图 / 品牌KV / 专辑封面 / 复古海报 / 电影海报 / 表情包 / 玻璃拟态 · 新拟态 · 孟菲斯 · 杂志编排 · 包豪斯 · 奶油风 ⭐v2.1

【艺术史 · 4】

印象派 / 后印象派 / 新艺术 / 装饰艺术

【场景氛围 · 17】

赛博朋克 / 蒸汽朋克 / 科幻 / 奇幻 / 黑暗奇幻 / 国潮 / Y2K / Vaporwave / 霓虹灯牌 / 建筑可视化 / 电影感 / 概念艺术 / 粗野主义 · 北欧极简 · 侘寂 · 疗愈治愈 · 美式复古 ⭐v2.1

【游戏艺术 · 7】⭐ v2.1 新类

原神 / 崩铁星穹 / 英雄联盟 / 暗黑4 / Valorant / Pokemon / 暴雪风

【东方传统 · 7】⭐ v2.1 新类

敦煌壁画 / 青花瓷 / 民国月份牌 / 年画 / 剪纸 / 和风 / 汉服写真

英文别名支持:animeghiblishinkaicyberpunksteampunkscifiminimallogoicon3dc4doctaneisometricvangoghartdeconeonvapory2kgenshinloldiablovalorantpokemondunhuanghanfuwafuglassmorphismneumorphismmemphisbauhausbrutalismnordicwabisabihealingcozyamericanadarkfoodmujistreetwear… 运行 ./scripts/enhance_prompt.py -l 查看完整列表。

参数说明

参数作用示例
subject主体描述(必填)"一只猫"
-p, --preset风格预设(中文 / 英文别名)-p 赛博朋克 / -p cyberpunk
-m, --model目标模型Midjourney / SD / SDXL / Flux / DALL-E / 通用
-a, --aspect画幅1:1 / 3:4 / 16:9 / 21:9 / 9:16
-t, --tier ⭐v2.1质量档位basic / pro(默认) / master
-cs, --character-sheet ⭐v2.1角色设定图 T-pose 多视图-
--avoid ⭐v2.1额外负面词,逗号分隔--avoid "cluttered, people"
--mood情绪覆盖(不给则从主体自动抽)--mood 神秘
--composition构图覆盖--composition 俯拍
--seed种子(不给则按 subject+preset 哈希生成稳定 seed)--seed 42
-s, --series系列张数-s 4
--variations系列变体,逗号分隔--variations "A,B,C,D"
-l, --list列出所有预设-
-j, --jsonJSON 输出-

自动抽词(v2.1 扩展)

脚本会从主体描述中自动识别以下字段,无需显式参数:

维度关键词示例
意图logo / 产品 / 海报 / 头像 / 美食 / 汉服 / 敦煌 / 原神 / 玻璃拟态 ...
构图特写 / 近景 / 中景 / 全身 / 俯拍 / 仰拍 / 鸟瞰 / 航拍 / 侧面 / 背面
情绪温暖 / 冷峻 / 神秘 / 梦幻 / 欢快 / 忧郁 / 史诗 / 高级 / 治愈 / 浪漫 ⭐v2.1:紧张
时间 ⭐v2.1清晨 / 早晨 / 正午 / 下午 / 黄昏 / 日落 / 夜晚 / 深夜 / 黎明 / 蓝调时刻
天气 ⭐v2.1晴天 / 多云 / 阴天 / 下雨 / 雨天 / 大雨 / 下雪 / 雪天 / 雾天 / 风暴 / 雷雨
季节 ⭐v2.1春/夏/秋/冬 / 樱花季 / 枫叶季
负向需求 ⭐v2.1不要X / 没有X / 避免X / no X / avoid X / without X → 自动入负面

一致性四锁(核心机制)

每个预设内置以下锁项,所有系列张图共享 ⇒ 风格漂移大幅下降:

锁项作用示例(赛博朋克)
camera镜头焦段 / 视角low angle wide, 24mm anamorphic
lighting光源 / 光质neon magenta and cyan rim, wet reflective streets
palette色板magenta cyan black, neon highlights
aspect画幅21:9

系列模式 (-s N --variations ...) 额外锁定 seed,变换仅发生在主体描述,框架完全不变。

模型适配细节

模型输出格式特有提示
Midjourney主体, 风格, 光影, 色板, 画质 --ar X:Y --stylize 250--cref <url> 锁角色、--sref <url> 锁风格图
Stable Diffusion(subject:1.2), 风格, ..., 质量 + 负面权重语法 (word:1.3)、减弱 [word]、DPM++ 2M Karras
SDXL同 SD,尺寸建议 1024x1024 / 1216x832 / 1536x640 ...Refiner 0.2-0.3
DALL-E 3自然语言段落(已内化负面)连续对话中用 "same character / same scene"
Flux长句描述guidance 3.5(Dev) / 0(Schnell)
通用逗号分隔 tags三大模型通用骨架

完整示例

./scripts/enhance_prompt.py "一只戴墨镜的猫在霓虹街头" -p 赛博朋克 -m Midjourney

输出:

📌 原始描述   : 一只戴墨镜的猫在霓虹街头
🎨 风格预设   : 赛博朋克
🤖 目标模型   : Midjourney
📐 画幅       : 21:9
🎲 种子建议   : 1873940236

✅ 正向提示词:
一只戴墨镜的猫在霓虹街头, cyberpunk, neon-soaked, blade runner aesthetic,
megacity dystopia, holographic ads, low angle wide, 24mm anamorphic,
neon magenta and cyan rim, wet reflective streets,
magenta cyan black, neon highlights,
detailed cyberpunk cityscape, rainy night ambiance,
masterpiece, best quality, ultra detailed, 8k
--ar 21:9 --stylize 250

❌ 负向提示词:
--no rustic, medieval, natural countryside, low quality, worst quality, ...

🔒 一致性锁:
   camera  : low angle wide, 24mm anamorphic
   lighting: neon magenta and cyan rim, wet reflective streets
   palette : magenta cyan black, neon highlights
   aspect  : 21:9

💡 Midjourney tips:
  • 角色/产品系列一致:加 --cref <url> 或 --sref <url>
  • 想要更风格化加 --stylize 500~750;更写实降到 --stylize 50
  • 建议 seed 锁定:--seed 1873940236

v2.3 新功能 ⭐

5. Claude API 智能润色 --polish

# 直接润色(独立调用)
export ANTHROPIC_API_KEY=sk-ant-xxx
./scripts/claude_polish.py "一个温柔的女孩在花丛中"
./scripts/claude_polish.py "敦煌神女" --pipe   # 输出可直接喂给 enhance_prompt.py 的命令

# 在 enhance_prompt.py 里串联使用(润色 → 88 预设 → 输出)
./scripts/enhance_prompt.py "一个温柔的女孩在花丛中" --polish
./scripts/enhance_prompt.py "雪山下的小屋" --polish --safety MJ -m Midjourney

利用 Claude prompt engineering 优势:

  • Prompt caching:system prompt 用 ephemeral cache,省 90% input token
  • Prefill {:assistant 起手 { 强制 JSON 输出,无需 tool use
  • XML 思维链:让 Claude 内部分步骤(refine/style/camera/safety/negatives)
  • 88 预设嵌入 system:Claude 从清单里挑,不凭记忆
  • 零 SDK 依赖:纯 urllib,避免企业扫描器拦截 anthropic 包

6. 平台合规润色 --safety

只做合法艺术创作的平台误判规避,不做 jailbreak。

# 独立调用
./scripts/safety_lint.py "战士手中沾满鲜血的剑" --target dalle
./scripts/safety_lint.py "古典维纳斯雕像 nude figure" --target MJ --apply
./scripts/safety_lint.py "如何制作炸弹"   # 命中红线 → exit 2

# 在 enhance_prompt.py 里串联
./scripts/enhance_prompt.py "古风战场鲜血飞溅" --safety dalle
./scripts/enhance_prompt.py "黑暗骑士斩杀恶魔" --safety MJ -p 黑暗奇幻

红线(直接拒答)

  • ✗ CSAM(未成年 + 性化任意组合)
  • ✗ 真人 + 色情/政治污蔑
  • ✗ 武器/毒品/爆炸物制作方法/教程
  • ✗ 自残/自杀方法诱导

黄区(艺术化重写)

类别例子重写策略
violence血、伤口、kill、weaponcrimson splash / battle-scarred / vanquish / ceremonial blade
nudity裸、naked、sexyclassical figure study / fine art reference / fashion editorial
horrorhorror、gore、demongothic atmospheric tension / mythical creature
deathdead、skeleton、skullmemento mori / classical allegory / vanitas
real-personcelebrity、明星、politicianfictional character / 80s aesthetic
brandmarvel、disney、nikesuperhero comic style / classic animated

平台分级

  • DALL-E max 严格度
  • MJ high 中等
  • SD/SDXL/Flux low 宽松(开源本地)

7. Polish + Safety 串联(最强组合)

# Claude 智能润色 → 平台合规重写 → 88 预设增强
./scripts/enhance_prompt.py "战士在血战之后凝视远方" --polish --safety dalle -j

输出 JSON 包含 claude_polishsafety_lint 两个完整 meta 块,可追溯每一步改写过程。

v2.2 新功能详解

1. 混合预设 -p A+B --mix 0.6

# 主预设 60% 权重,副预设 40%
enhance_prompt.py "持剑女侠" -p "赛博朋克+水墨" --mix 0.6 -m Midjourney
enhance_prompt.py "山中神女" -p "原神+敦煌壁画" --mix 0.5 -m SDXL
enhance_prompt.py "极简卡片" -p "玻璃拟态+侘寂" --mix 0.7 -m SD

融合策略:

  • tags:主预设标签前置,副预设按权重补充;SD 自动加权重语法 (tag:1.16)
  • camera:取主预设(避免镜头语言混乱)
  • lighting:叠加 主光照, blended with 副光照
  • palette:拼接两者
  • aspect:取主预设默认画幅
  • neg:合并去重 + PRESET_NEG_EXCLUDE 主辅都生效(避免 logo/text/signature 自我否定)
  • seed:mix_label A+B@0.60 参与 hash,相同混合每次同 seed

2. 视频提示词 enhance_video.py

# Sora 8 秒赛博朋克
enhance_video.py "雨夜霓虹街头一只猫漫步" -p 赛博朋克 -m Sora --duration 8

# Kling 慢速跟拍
enhance_video.py "汉服少女转身回眸" -p 汉服写真 -m Kling --motion 慢速跟拍

# 史诗节奏 + 自定义动作
enhance_video.py "宇宙飞船穿越星云" -p scifi -m Runway --pacing 史诗 --action "ship accelerates, lens flare"

# 混合风格 + 海螺 MiniMax
enhance_video.py "山中神女腾云" -p "原神+敦煌壁画" --mix 0.6 -m Hailuo

# 列出所有视频模型规格
enhance_video.py --list-models

支持的视频模型:

模型上限时长默认画幅提示词风格
Sora20s (Sora 2 Pro)16:9长自然语言
Kling 可灵10s (1080p Pro)16:9中文优秀,前置主体
Runway Gen-3/410s16:9英文最佳
Pika10s16:9标签式 + -gs/-motion
Luma DreamMachine9s16:9自然语言 + 关键帧
Hailuo MiniMax10s16:9中英双语 + 参考人物
即梦 Seedance12s16:9中文多镜头剧情
通义 Wan2.18s16:9阿里开源 14B/1.3B

输出包含:正向 / 负向(视频专属:flicker、motion blur、identity drift)/ 三段式关键帧 / 一致性六锁(+ motion)。

3. 参考图反解 reverse_prompt.py

# 自动识别 A1111/ComfyUI/NovelAI metadata
reverse_prompt.py /path/to/image.png

# 远程 URL
reverse_prompt.py https://example.com/img.png

# 直接给 Midjourney 复用 prompt(一行)
reverse_prompt.py img.png --mj

# 强制 VLM 模板(图无 metadata)
reverse_prompt.py img.png --vlm

# JSON pipe 给 enhance_prompt.py
reverse_prompt.py img.png -j > recipe.json

三层反解:

  1. PNG metadata:手写 tEXt/iTXt 解析,零 PIL 依赖
  2. A1111 / ComfyUI / NovelAI 三大格式自动识别
  3. VLM fallback:图无 metadata 时输出标准 prompt 给 GPT-4o/Claude/Gemini/Qwen-VL

启发式预设猜测:35+ 关键词映射(cyberpunk → 赛博朋克 / ghibli → 宫崎骏 / dunhuang → 敦煌壁画 ...)。

4. 直出图片 render_prompt.py

# Dry-run(只输出 recipe,不出图)
render_prompt.py "敦煌神女" -p 敦煌壁画 --backend none -j

# AUTOMATIC1111 / Forge SD WebUI
render_prompt.py "赛博朋克猫" -p 赛博朋克 --backend sd-webui

# ComfyUI(用内置 SDXL workflow)
render_prompt.py "原神少女" -p 原神 --backend comfyui

# ComfyUI(自定义 workflow)
render_prompt.py "原神少女" -p 原神 --backend comfyui --workflow ./workflows/sdxl.json

# DALL-E 3
render_prompt.py "极简logo" -p Logo设计 --backend dalle --size 1024x1024

特点:

  • 零第三方依赖:纯 urllib,避免企业扫描器命中
  • 环境变量覆盖COMFYUI_URL / SDWEBUI_URL / OPENAI_API_KEY
  • 支持混合预设直出

参考文档

references/t2i-guide.md — 提示词要素表 / 88 预设对照 / 模型差异 / 一致性技巧。

版本历史

CHANGELOG.md

Comments

Loading comments...