aiman-labs/ergouzi-agent-skills / skills/ergouzi-image-gen
ergouzi-image-gen
VerifiedSubmit and complete Ergouzi image generation, editing, virtual try-on, upscaling, and background-removal tasks through ergouzi.life, including tasks that use local image files or HTTPS URLs. Use when Codex must call an ergouzi/e-image* or ergouzi/e-rmbg model, poll the asynchronous task, download its outputs, resume a task ID, or cancel an image task.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.6 KB |
| agents/openai.yaml | config | 208 B |
| references/ai-guide.md | markdown | 932 B |
| references/model-reference.md | markdown | 5.2 KB |
| scripts/client.py | script | 20.1 KB |
| scripts/configure.py | script | 2.1 KB |
| scripts/media.py | script | 5.8 KB |
| scripts/run.py | script | 18.2 KB |
scripts/configure.py
View on GitHub#!/usr/bin/env python3
"""Configure and verify credentials for the Ergouzi image skill."""
from __future__ import annotations
import argparse
import getpass
import os
import sys
from client import (
DEFAULT_BASE_URL,
ApiError,
ClientError,
Credentials,
api_json,
load_credentials,
normalize_base_url,
save_credentials,
)
def verify(credentials: Credentials) -> None:
api_json(credentials, "GET", "/customer/v1/models", timeout=30)
print("Verified Ergouzi API access.")
def parse_args() -> argparse.Namespace:
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--check", action="store_true", help="Verify current configuration")
parser.add_argument("--from-env", action="store_true", help="Save an Ergouzi API key from the environment")
parser.add_argument("--base-url", default="", help="Gateway URL override")
return parser.parse_args()
def main() -> int:
args = parse_args()
try:
if args.check:
verify(load_credentials())
return 0
if args.from_env:
api_key = os.getenv("ERGOUZI_MEDIA_API_KEY", "").strip() or os.getenv(
"ERGOUZI_API_KEY", ""
).strip()
if not api_key:
raise ClientError("ERGOUZI_MEDIA_API_KEY or ERGOUZI_API_KEY is not set")
else:
api_key = getpass.getpass("Ergouzi API key: ").strip()
if not api_key:
raise ClientError("API key cannot be empty")
base_url = normalize_base_url(
args.base_url
or os.getenv("ERGOUZI_MEDIA_BASE_URL", "")
or os.getenv("ERGOUZI_BASE_URL", "")
or DEFAULT_BASE_URL
)
credentials = Credentials(base_url=base_url, api_key=api_key)
verify(credentials)
path = save_credentials(credentials)
print(f"Saved Ergouzi credentials to {path}")
return 0
except (ApiError, ClientError) as error:
print(f"Error: {error}", file=sys.stderr)
return 1
if __name__ == "__main__":
raise SystemExit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Unverified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |