Logo vun Image Proxy

Image Proxy

Communautéit
ninemouth
image-proxy

Generate or edit raster images through an explicitly configured OpenAI-compatible third-party image provider, including ThinkAI by default, with dry-run request snapshots, source-image and mask uploads, progress files, secure local key configuration, and downloaded output verification. Use when the user asks to use a third-party image proxy, ThinkAI, an OpenAI-compatible image endpoint, or the image-proxy skill; do not use it for native Codex image generation or a full ecommerce production workflow.

Iwwersiicht

Editeurninemouth
Repositorysellerpilot-product-image-industrial
Skill-Nummimage-proxy
Stären
43
Forks
5
Matgeliwwert Fichieren
10
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 10 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum ninemouth op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Image Proxy an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/ninemouth/sellerpilot-product-image-industrial/tree/main/standalone/image-proxy
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ninemouth/sellerpilot-product-image-industrial.git /tmp/sellerpilot-product-image-industrial
mkdir -p .claude/skills
cp -r /tmp/sellerpilot-product-image-industrial/standalone/image-proxy .claude/skills/image-proxy
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Image Proxy an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Image Proxy automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Image Proxy net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Image Proxy

Use this skill as an independent provider execution layer. It sends a finalized prompt to one configured OpenAI-compatible image endpoint, optionally uploads source/reference images and a PNG mask for edits, downloads the returned image assets, and writes request/response/summary evidence in the requested output directory.

Codex chat commands

Users operate this Skill from Codex chat. Do not require them to open Terminal or paste an API Key into the conversation.

text
$image-proxy status
$image-proxy dry-run --prompt "<final prompt>" --size 2k --quality hd
$image-proxy generate --prompt "<final prompt>" --size 2k --quality hd
$image-proxy edit --prompt "<final prompt>" --image <attached-or-local-image> --mask <optional-png-mask>
$image-proxy sync
  • status resolves only non-secret local provider state.
  • dry-run, generate, and edit are Codex intents. Codex runs the deterministic scripts internally and returns the output/evidence; the user should not be sent to a shell.
  • A Web-managed installation automatically pulls and applies the current user's sellerpilot-image configuration before every real third-party request. If the shared device session is missing, the tool opens the Marqel Web approval flow, waits for the current user to approve it, and resumes the same configuration pull automatically. Dry-runs stay network-free and never trigger configuration delivery.
  • sync is a troubleshooting/recovery intent only. Do not make the user copy or paste this command as part of initial setup or normal use.

Scope and boundaries

  • Use only when the user explicitly selects this skill or a third-party image provider.
  • Use the configured endpoint and model exactly. The default profile is ThinkAI at https://www.thinkai.tv/v1 with gpt-image-2; this is a default, not a claim that the provider is available or that the API key is configured.
  • Never silently fall back to native Codex image generation, another provider, or a guessed endpoint.
  • Never print, echo, commit, or include an API key in prompts, request snapshots, progress files, summaries, or diagnostics. Prefer environment variables or masked local entry through the interactive configurator.
  • A Marqel-managed installation may store the user-scoped delivered key in the dedicated local provider file protected by mode 600 or a Windows user-only ACL. Never copy that key into another config, environment file, command, or report.
  • This skill does not perform product fact extraction, platform research, buyer-facing copy strategy, identity/physics/marketing QA, tldraw review, publishing, uploading, or platform operations. It is intentionally independent from any ecommerce production skill.
  • A successful provider response proves only that the provider returned decodable image bytes. It does not prove product identity, visual quality, platform compliance, or commercial performance.

Execution workflow

  1. Treat the user’s prompt as the provider request. If the prompt contains unsupported product facts, safety claims, or exact text that must be reliable, stop and resolve those facts before calling the provider.

  2. For a managed package, every non-dry-run request invokes scripts/sync-marqel-provider.mjs automatically before provider transport. The script discovers marqel-control-center-auth beside this Skill in the same user-level Skill root, starts Web device approval automatically when no reusable session exists, and retries the pull after approval. The user must only review and approve the device in Web; never ask them to copy a Base URL, API Key, Token, config JSON, device code, or sync command. Use scripts/sync-marqel-provider.mjs --force only when the user explicitly asks for troubleshooting or recovery. Missing/revoked authorization, inactive membership, incomplete Web configuration, or a failed refresh must stop before contacting the Provider; never use a stale Web-managed key after sync failure.

  3. Resolve the local provider status without exposing secrets:

    bash
    node scripts/resolve-provider.mjs

    status: ready means a key is available to this local process. configuration_required means configuration is needed; it is not permission to switch providers. The managed installer checks this status independently from the SellerPilot main Skill; one ready consumer is not evidence that the other received the same delivery.

  4. For a standalone, non-Marqel installation only, configure the provider once when needed. Keep the user inside Codex: interpret $image-proxy configure by opening the masked OS dialog through the interactive configurator. Environment variables remain an internal CI option, not a user-facing setup requirement:

    bash
    export THINKAI_IMAGE_API_KEY="<key>"

    For a persistent local configuration, pass the key over stdin or use the masked OS dialog. The config file is stored under the Codex home in the standalone skill namespace and is written with mode 600:

    bash
    printf '%s\n' '<key>' | node scripts/configure-image-provider.mjs --api-key-stdin
    node scripts/configure-image-provider-interactive.mjs

    Do not put a real key in shell history, chat, or a committed file. Use --base-url, --model, --name, and --api-key-env only for an explicitly selected compatible provider.

  5. Run a dry-run before the first real request or whenever the endpoint/model/size changes. A dry-run writes request.json and summary.json and never calls the network:

    bash
    node scripts/openai-compatible-image-runtime.mjs \
      --prompt "<final prompt>" \
      --output-dir /abs/output \
      --size 2k \
      --quality hd \
      --dry-run
  6. Execute generation or edit only after the dry-run request is correct:

    bash
    node scripts/openai-compatible-image-runtime.mjs \
      --prompt "<final prompt>" \
      --output-dir /abs/output \
      --size 2k \
      --quality hd \
      --progress-file /abs/output/progress.json

    Add --image /abs/source.png once per source/reference image to use /images/edits; add --mask /abs/mask.png for a PNG edit mask. Use --n N for multiple provider outputs. The runtime accepts 1k, 2k, 4k, or an explicit WIDTHxHEIGHT size.

  7. Read summary.json, check that status is generated, and verify the listed image files exist and are decodable. Keep request.json, response.json, summary.json, and progress.json with the run when an audit trail is useful. If a request fails, preserve the output directory and retry only after changing the provider-visible evidence or fixing the reported configuration/transport issue.

Provider configuration and paths

Use the path helper before giving installation or configuration instructions on a different operating system:

bash
node scripts/codex-path-info.mjs

The default configuration location is:

  • The installed Skill uses the single user-level Skill root selected by the host/managed installer (current default .agents/skills; an existing legacy managed root remains supported). Auth is always discovered as a sibling in that same root; never install or synchronize into two roots.
  • macOS/Linux provider config: $CODEX_HOME/image-proxy/image-provider.json; when CODEX_HOME is unset, Codex uses ~/.codex.
  • Windows provider config: %CODEX_HOME%\image-proxy\image-provider.json; when unset, Codex uses %USERPROFILE%\.codex.

The runtime also accepts --config /abs/config.json. A config may be either the standalone shape written by the configurator:

json
{
  "provider_mode": "third_party_proxy",
  "third_party": {
    "enabled": true,
    "name": "ThinkAI",
    "base_url": "https://www.thinkai.tv/v1",
    "model": "gpt-image-2",
    "api_key_env": "THINKAI_IMAGE_API_KEY"
  }
}

or a flat object with base_url, model, api_key_env, and optional api_key. Keep api_key out of version control; an environment variable is preferred.

For a Web-managed package, scripts/sync-marqel-provider.mjs maps only the authenticated user's effective sellerpilot-image delivery into this same file. It records non-secret _marqel delivery revision/digest metadata, acknowledges applied only after an atomic secure write, and replaces a removed/incomplete managed delivery with a disabled keyless record. The upstream API Key never enters the Skill package, Web page/DOM, chat, logs, or installation report.

Resources

  • Read references/provider-contract.md when adapting the endpoint, debugging a response shape, or deciding whether a source image should be sent as an edit input.
  • Run npm run verify from this skill directory for a network-free smoke test. It checks frontmatter, scripts, generation/edit dry-runs, secure configuration plumbing, custom-provider resolution, and masked configuration behavior.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Image Proxy?

Generate or edit raster images through an explicitly configured OpenAI-compatible third-party image provider, including ThinkAI by default, with dry-run request snapshots, source-image and mask uploads, progress files, secure local key configuration, and downloaded output verification. Use when the user asks to use a third-party image proxy, ThinkAI, an OpenAI-compatible image endpoint, or the image-proxy skill; do not use it for native Codex image generation or a full ecommerce production workflow.

Firwat Image Proxy op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Image Proxy besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Image Proxy an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/ninemouth/sellerpilot-product-image-industrial/tree/main/standalone/image-proxy an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Image Proxy benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Image Proxy benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Image Proxy domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Image Proxy gratis?

Jo. De Skill gëtt vum ninemouth ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇