Skip to content

x402agent/SolanaOS / skills/nano-banana-pro

nano-banana-pro

Verified

Generate or edit images via Gemini 3 Pro Image (Nano Banana Pro).

FileKindSize
SKILL.mdskill md1.9 KB
scripts/generate_image.pyexecutablescript7.6 KB
scripts/test_generate_image.pyscript1.1 KB

scripts/test_generate_image.py

View on GitHub
import importlib.util
from pathlib import Path

import pytest

MODULE_PATH = Path(__file__).with_name("generate_image.py")
SPEC = importlib.util.spec_from_file_location("generate_image", MODULE_PATH)
assert SPEC and SPEC.loader
MODULE = importlib.util.module_from_spec(SPEC)
SPEC.loader.exec_module(MODULE)


@pytest.mark.parametrize(
    ("max_input_dim", "expected"),
    [
        (0, "1K"),
        (1499, "1K"),
        (1500, "2K"),
        (2999, "2K"),
        (3000, "4K"),
    ],
)
def test_auto_detect_resolution_thresholds(max_input_dim, expected):
    assert MODULE.auto_detect_resolution(max_input_dim) == expected


def test_choose_output_resolution_auto_detects_when_resolution_omitted():
    assert MODULE.choose_output_resolution(None, 2200, True) == ("2K", True)


def test_choose_output_resolution_defaults_to_1k_without_inputs():
    assert MODULE.choose_output_resolution(None, 0, False) == ("1K", False)


def test_choose_output_resolution_respects_explicit_1k_with_large_input():
    assert MODULE.choose_output_resolution("1K", 3500, True) == ("1K", False)
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