Skip to content

wuyoscar/GPT-Image2-Skill / skills/gpt-image

gpt-image

Flagged

Generate or edit images through the packaged CLI and Reference Gallery, defaulting to GPT Image 2.6 Flare. Use for posters, typography, reference edits, inpainting, native GIFs, sprite animation, image-led websites, and explicit Image 2/2.5/2.6 requests.

FileKindSize
SKILL.mdskill md11.8 KB
agents/openai.yamlconfig350 B
references/craft.mdmarkdown19.4 KB
references/gallery-anime-and-manga.mdmarkdown17.4 KB
references/gallery-architecture-and-interior.mdmarkdown9.8 KB
references/gallery-beauty-and-lifestyle.mdmarkdown2.4 KB
references/gallery-brand-systems-and-identity.mdmarkdown3.3 KB
references/gallery-character-design.mdmarkdown1.9 KB
references/gallery-cinematic-and-animation.mdmarkdown5.9 KB
references/gallery-cinematic-film-references.mdmarkdown7.4 KB
references/gallery-data-visualization.mdmarkdown6.4 KB
references/gallery-edit-endpoint-showcase.mdmarkdown3.0 KB
references/gallery-events-and-experience.mdmarkdown2.5 KB
references/gallery-fashion-editorial.mdmarkdown8.7 KB
references/gallery-fine-art-painting.mdmarkdown5.9 KB
references/gallery-gaming.mdmarkdown12.8 KB
references/gallery-illustration.mdmarkdown4.8 KB
references/gallery-infographics-and-field-guides.mdmarkdown17.0 KB
references/gallery-ink-and-chinese.mdmarkdown2.5 KB
references/gallery-isometric.mdmarkdown4.6 KB
references/gallery-more-illustration-styles.mdmarkdown6.6 KB
references/gallery-official-openai-cookbook-examples.mdmarkdown3.8 KB
references/gallery-photography.mdmarkdown8.6 KB
references/gallery-pixel-art.mdmarkdown1.8 KB
references/gallery-product-and-food.mdmarkdown5.9 KB
references/gallery-research-paper-figures.mdmarkdown28.2 KB
references/gallery-retro-and-cyberpunk.mdmarkdown4.8 KB
references/gallery-scientific-and-educational.mdmarkdown8.6 KB
references/gallery-screen-photography.mdmarkdown3.2 KB
references/gallery-tattoo-design.mdmarkdown4.3 KB
references/gallery-technical-illustration.mdmarkdown7.0 KB
references/gallery-typography-and-posters.mdmarkdown14.9 KB
references/gallery-ui-ux-mockups.mdmarkdown6.3 KB
references/gallery-watercolor.mdmarkdown2.3 KB
references/gallery.mdmarkdown4.8 KB
references/models.mdmarkdown8.9 KB
references/openai-cookbook.mdmarkdown46.1 KB
references/openai-image-2.5-editing.mdmarkdown3.5 KB
references/openai-image-2.5-generation.mdmarkdown2.9 KB
references/openai-image-2.5-layout-and-text.mdmarkdown2.9 KB
references/openai-image-2.5-migration.mdmarkdown2.8 KB
references/openai-image-2.5.mdmarkdown1.4 KB
references/templates-gpt-image-2.5.mdmarkdown6.6 KB
scripts/generate.pyexecutablescript2.5 KB

scripts/generate.py

View on GitHub
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.11"
# dependencies = [
#     "openai>=2.32.0",
#     "python-dotenv>=1.0",
#     "Pillow>=12.0",
# ]
# ///
"""Skill launcher for the shared gpt-image CLI.

Resolution order:
1. Repo checkout / full plugin install: import ../../../src/gpt_image_cli/cli.py.
2. Python environment already has gpt_image_cli installed: import it directly.
3. Shell has a gpt-image executable: delegate to it.
4. Final fallback: uvx installs/runs the GitHub CLI package transiently.

This keeps `skills/gpt-image` usable when copied as a standalone skill folder
while preserving one canonical implementation for the installable Python CLI.
"""
from __future__ import annotations

import shutil
import subprocess
import sys
from pathlib import Path

_REPO_URL = "git+https://github.com/wuyoscar/gpt_image_2_skill"


def _import_local_or_installed_main():
    """Return gpt_image_cli.cli.main from repo-local src or installed package."""
    script_path = Path(__file__).resolve()

    # Full plugin/repo layout: <repo>/skills/gpt-image/scripts/generate.py
    # Standalone skill installs do not have this sibling src/ tree, so guard it.
    if len(script_path.parents) > 3:
        repo_src = script_path.parents[3] / "src"
        if (repo_src / "gpt_image_cli" / "cli.py").is_file():
            sys.path.insert(0, str(repo_src))

    try:
        from gpt_image_cli.cli import main  # type: ignore
    except ModuleNotFoundError:
        return None
    return main


def _delegate(command: list[str]) -> int:
    """Run another CLI process with the original argv and return its exit code."""
    completed = subprocess.run(command + sys.argv[1:], check=False)
    return completed.returncode


def main() -> int:
    cli_main = _import_local_or_installed_main()
    if cli_main is not None:
        return int(cli_main() or 0)

    executable = shutil.which("gpt-image")
    if executable:
        return _delegate([executable])

    uvx = shutil.which("uvx") or shutil.which("uv")
    if uvx:
        if Path(uvx).name == "uv":
            return _delegate([uvx, "tool", "run", "--from", _REPO_URL, "gpt-image"])
        return _delegate([uvx, "--from", _REPO_URL, "gpt-image"])

    print(
        "error: could not find the gpt-image CLI backend. Install uv and run this skill "
        "again, or install the CLI first with:\n"
        f"  uv tool install {_REPO_URL}\n"
        "Then retry the same command.",
        file=sys.stderr,
    )
    return 2


if __name__ == "__main__":
    sys.exit(main())
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall