← Back to Skills Marketplace
eardori

Hana Image Gen MacOS

by eardori · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
50
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install hana-image-gen-macos
Description
MacOS Gemini image gen via OpenRouter for OpenClaw agents. Auto-wait, gen, send image.
README (SKILL.md)

Hana Image Gen Pro (MacOS)

Agent Workflow

  1. message action=send text="⏳ Generating image for: $prompt"
  2. cd scripts && OPENROUTER_API_KEY=$OPENROUTER_API_KEY python3 gen.py "$prompt"
  3. IMAGE=$(cat ../output.json | jq -r .paths[0])
  4. message action=send media=$IMAGE caption="Generated: $prompt 😏" NO_REPLY.

Required Env

OPENROUTER_API_KEY, TELEGRAM_BOT_TOKEN (global .env)

Usage Guidance
This skill appears to be trying to do what it says (generate images via OpenRouter) but contains several inconsistencies and bugs you should resolve before installing or running it with real secrets: - Do not provide credentials until fixed: OPENROUTER_API_KEY is required by the script; TELEGRAM_BOT_TOKEN is listed but unused — clarify whether the skill actually needs a Telegram token. The package metadata should declare required env vars correctly. - Fix the runtime mismatch: SKILL.md expects ../output.json but scripts/gen.py prints JSON to stdout and writes image files to /tmp. Either change SKILL.md to capture stdout into ../output.json or modify gen.py to write ../output.json. As-is, the workflow will fail. - Fix the code bug: scripts/gen.py references item.get(b64_json) (an undefined name) when constructing a data URL; that will raise an error if that branch runs. Review and correct that logic. - Review external fetch behavior: the script downloads arbitrary URLs returned by OpenRouter and writes them to /tmp. This is expected for an image generator but entails network fetches and writing data to disk — run in a sandbox and limit exposure if you have strict security requirements. - Audit OpenRouter usage: the script posts to https://openrouter.ai; confirm you trust that service and that the API key scope is limited. Consider rate limits and log handling. If you need this skill, ask the publisher to (1) update metadata to declare OPENROUTER_API_KEY, (2) remove or justify TELEGRAM_BOT_TOKEN, (3) correct SKILL.md to match gen.py behavior (or vice-versa), and (4) fix the b64_json bug. Until these issues are addressed, treat the skill as untrusted and run only in an isolated environment.
Capability Analysis
Type: OpenClaw Skill Name: hana-image-gen-macos Version: 1.0.0 The skill contains a shell injection vulnerability in the `SKILL.md` workflow, which passes the user-controlled `$prompt` variable directly into a shell command (`python3 gen.py "$prompt"`) without sanitization. While the `scripts/gen.py` file appears to be a legitimate implementation for interacting with the OpenRouter API (https://openrouter.ai), the architectural flaw in the workflow allows for potential Command Injection. There is also a functional discrepancy where the workflow attempts to read from `../output.json` while the script only outputs results to stdout.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
The skill claims to generate images via OpenRouter/Gemini, which legitimately requires an OPENROUTER_API_KEY — the included script uses that. However the registry metadata declares no required env vars while SKILL.md lists OPENROUTER_API_KEY and TELEGRAM_BOT_TOKEN. TELEGRAM_BOT_TOKEN is not used in the code, so its presence in SKILL.md is unexplained.
Instruction Scope
SKILL.md instructs the agent to run the script and then to read ../output.json with jq to extract the image path. The provided scripts/gen.py writes JSON to stdout (prints to stdout) and does not create ../output.json, so the instructions and code disagree and will fail as written. The SKILL.md also declares TELEGRAM_BOT_TOKEN required but the runtime steps do not reference or use it. The agent will download arbitrary image URLs returned by OpenRouter — expected for this purpose but worth noting as external network fetching and file writes to /tmp occur.
Install Mechanism
There is no install spec; this is instruction-plus-script only. No remote downloads or install-time archive extraction are present in the package, which is the lower-risk pattern for install mechanisms.
Credentials
The code legitimately requires OPENROUTER_API_KEY. TELEGRAM_BOT_TOKEN is listed in SKILL.md but not referenced anywhere in the code, and the registry metadata lists no required env vars — this mismatch is disproportionate and unclear. The script performs network calls and downloads images from URLs returned by OpenRouter; no other secrets are requested.
Persistence & Privilege
The skill does not request permanent/always presence and does not modify system or other skills' configs. It runs on demand and writes output files to /tmp only.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install hana-image-gen-macos
  3. After installation, invoke the skill by name or use /hana-image-gen-macos
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
hana-image-gen-macos v1.0.0 - Initial release of Hana Image Gen Pro for MacOS. - Enables Gemini image generation via OpenRouter for OpenClaw agents. - Automated workflow: notifies on start, generates image, and sends result without reply. - Requires OPENROUTER_API_KEY and TELEGRAM_BOT_TOKEN environment variables.
Metadata
Slug hana-image-gen-macos
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Hana Image Gen MacOS?

MacOS Gemini image gen via OpenRouter for OpenClaw agents. Auto-wait, gen, send image. It is an AI Agent Skill for Claude Code / OpenClaw, with 50 downloads so far.

How do I install Hana Image Gen MacOS?

Run "/install hana-image-gen-macos" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Hana Image Gen MacOS free?

Yes, Hana Image Gen MacOS is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Hana Image Gen MacOS support?

Hana Image Gen MacOS is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Hana Image Gen MacOS?

It is built and maintained by eardori (@eardori); the current version is v1.0.0.

💬 Comments