首页龙虾技能列表 › Gemini Nano Images — Gemini工具

Gemini Nano Images — Gemini工具

v1.0.0

[AI辅助] Generate ultra-realistic images and Instagram content using Gemini 2.0 Flash Experimental. Use when creating photorealistic images, social media content, or...

0· 324·0 当前·0 累计
by @vitja1988 (NEO)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/4/12
安全扫描
VirusTotal
可疑
查看报告
OpenClaw
可疑
high confidence
The skill mostly does what it says (generate images and captions with Gemini) but contains inconsistencies and instructions that touch other skills/configuration which don't align with its declared metadata—review before installing.
评估建议
This skill's code and docs implement Gemini-based image + caption generation and require a GEMINI_API_KEY and the google-genai package—verify those before use. Red flags: the registry metadata lists no required env var but the scripts need GEMINI_API_KEY; model names differ between docs and code (gemini-2.0-flash-exp vs gemini-2.5-flash-image); and the SKILL.md tells you to cd into and run scripts from another skill (ig-automation) to set 'stock_only' mode, which would modify other skill behavio...
详细分析 ▾
用途与能力
The code and SKILL.md implement image and Instagram-post generation using Gemini, which matches the skill name and description. However the registry metadata declares no required environment variables or primary credential while the runtime instructions and scripts clearly require GEMINI_API_KEY—this metadata mismatch is unexplained.
指令范围
Most runtime instructions are scoped to image and caption generation and saving files. However the SKILL.md includes a 'Stock-Only Mode' section that instructs the user/agent to cd into ~/.openclaw/workspace/skills/ig-automation and run smart_poster_v4.py to change posting modes—this references and modifies another skill's files and runtime behavior outside this skill's domain, which is scope creep and a potential risk if executed by an agent.
安装机制
There is no formal install spec (instruction-only plus included scripts). The SKILL.md recommends pip install google-genai which is a reasonable dependency for Gemini access. Lack of an install manifest means the package won't be centrally vetted/installed by the platform—verify the pip package source and audit the scripts before running.
凭证需求
The skill requires a Gemini API key (GEMINI_API_KEY) according to SKILL.md and both scripts, which is proportionate for an image-generation skill. The problem is the registry metadata claims no required env vars or primary credential—this inconsistency could hide required secrets or lead to unexpected behavior. No other credentials are requested.
持久化与权限
The skill is not marked always:true and is user-invocable, which is appropriate. However the instructions for interacting with ~/.openclaw/workspace/skills/ig-automation and running smart_poster_v4.py to change posting modes imply the skill may direct or advise modifying other skills' configuration or behavior—this cross-skill modification is a privilege escalation risk if an agent performs it automatically.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/3

Ultra-realistic image generation with Gemini 2.5 Flash Image + Instagram content creation

● 可疑

安装命令 点击复制

官方npx clawhub@latest install gemini-nano-images
镜像加速npx clawhub@latest install gemini-nano-images --registry https://cn.clawhub-mirror.com

技能文档

Generate ultra-realistic, photorealistic images using Google's Gemini 2.0 Flash Experimental model with native image generation capabilities.

Quick 开始

1. 设置 API 键

export GEMINI_API_KEY="your-api-key-here"

Get your API key at: https://aistudio.google.com/app/apikey

2. Generate Single Image

python3 scripts/generate_image.py "A cozy family breakfast scene with warm morning light"

3. Generate 满 Instagram Post

python3 scripts/generate_instagram_post.py "Morning routine with kids" --mood cozy

Scripts

generate_image.py

Creates ultra-realistic images from text prompts.

Usage:

python3 scripts/generate_image.py "PROMPT" [options]

Options:

  • -o, --输出 DIR - 输出 directory (默认: current)
  • -k, --api-键 键 - Gemini API 键
  • --样式 {realistic,artistic,minimal} - 样式 preset

示例:

python3 scripts/generate_image.py "Father reading bedtime story to child" -o ~/images

generate_instagram_post.py

Creates complete Instagram posts: image + caption.

Usage:

python3 scripts/generate_instagram_post.py "TOPIC" [options]

Options:

  • -m, --mood MOOD - Post mood: inspiring, cozy, energetic, calm, family, productive
  • -o, --输出 DIR - 输出 directory (默认: ~/.openclaw/workspace/assets)
  • -k, --api-键 键 - Gemini API 键

示例:

python3 scripts/generate_instagram_post.py "Organized family calendar" --mood productive

Mood Presets

MoodDescription
inspiringUplifting, motivational, golden hour
cozyWarm, comfortable, soft lighting
energeticVibrant, dynamic, bright colors
calmPeaceful, serene, soft pastels
familyLoving family moments, candid
productiveOrganized, clean, modern aesthetic

输出

  • Images: Saved 作为 PNG 带有 时间戳 prefix
  • Captions: Saved 作为 .txt file alongside image
  • Location: 默认 ~/.openclaw/workspace/assets

Integration 带有 Instagram Workflow

Generated content can be directly used with the Social Media Suite:

  • Generate content:
   python3 scripts/generate_instagram_post.py "Weekend family adventure"
   
  • Results saved 到 assets folder, 就绪 对于 posting
  • 使用 带有 instagram-poster 或 instagrapi workflow

Stock-仅 Mode (Community Building Phase)

Für 1-2 Wochen nur Stockfotos posten (keine KI-Generierung):

# Stock-Only Mode für 14 Tage aktivieren
cd ~/.openclaw/workspace/skills/ig-automation
python3 smart_poster_v4.py --set-mode stock_only --stock-days 14

# Stockfotos in Ordner legen mkdir -p assets/stock cp ~/deine-stockfotos/*.jpg assets/stock/

# Jetzt werden nur Stockfotos gepostet (zufällige Auswahl, keine Doppelungen) python3 smart_poster_v4.py

# Nach 14 Tagen automatischer Wechsel zu "auto" (KI + Stock)

Modes:

  • auto - Bevorzugt KI, Fallback zu Stock
  • stock_only - Nur Stockfotos aus assets/stock/
  • ai_only - Nur KI-generierte Bilder

Wichtig: Bei Stockfotos kein Wasserzeichen (Logo) - sieht authentischer aus!

Requirements

pip install google-genai

模型 Details

  • 模型: Gemini 2.0 Flash Experimental
  • Capability: Native image generation
  • Resolution: Up 到 1024x1024
  • 样式: Photorealistic 由 默认

See references/gemini_api.md for API details.

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务