samotech/skills-tree/image-gen-tool

Claude Code and agent skill by samotech/skills-tree

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use an image-generation API as an agent tool with validated prompts, explicit model parameters, and verified outputs.

Install

npx vskill@latest install samotech/skills-tree/image-gen-tool

SKILL.md

The same SKILL.md was published earlier as samotech/skills-tree/image-gen-tool.

Image Generation Tool

Description

Use an image-generation provider as a bounded agent tool. Validate the request before invocation, keep credentials server-side, make model and output parameters explicit, and verify that the returned asset can actually be consumed by the next workflow step.

When to Use

  • Generate an image from a text or structured prompt.
  • Produce a controlled variant of an existing asset when the provider supports image editing.
  • Return a provider response to an agent without exposing provider credentials.

Inputs / outputs / failure modes

AreaGuidance
PromptSpecific visual intent, constraints, and required exclusions.
ModelExplicit provider model identifier; do not assume availability.
ParametersSize, quality, format, and count only when supported by the selected model.
OutputAsset identifier, URL, or binary payload returned by the provider.
SecurityKeep API keys in environment-managed secrets.
VerificationConfirm the response contains the expected asset before downstream use.
Failure modesInvalid prompt, unsupported parameter, quota error, policy rejection, timeout, or unusable output.

Runnable Example

python
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
result = client.images.generate(
model=os.environ["IMAGE_MODEL"],
prompt="A clean technical illustration of an AI agent tool pipeline",
size="1024x1024",
)
assert result.data and result.data[0]
print("image response received")

Failure modes

  • Hard-coding credentials or returning them through tool output.
  • Assuming a model, size, or response field is supported without checking provider documentation.
  • Treating an accepted request as proof that the asset is usable.
  • Sending uncontrolled user input directly into a privileged image workflow.
  • Persisting provider URLs without considering their lifetime or access requirements.

Evidence

  • OpenAI Images API documentation: https://platform.openai.com/docs/guides/images
  • Repository schema and tool-use validation workflows are authoritative for repository conformance.

Related

  • 07-tool-use
  • 08-multimodal
  • input-guardrails
  • output-guardrails

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3
Repository forks
1
7-day trend score
12

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/samotech/skills-tree/image-gen-tool/badge)](https://verified-skill.com/skills/samotech/skills-tree/image-gen-tool)

Something wrong with this skill or its page? Tell us.