Skip to content

gooseworks-ai/goose-skills / skills/marketing/make-static-ads

make-static-ads

Verified

Make new static image ads, a fresh batch, more ads, a winner's variations, copy variants or a rejected ad fix. Reads the brand, its customers and the ads it already runs, turns real product facts and customer situations into distinct visual ideas, shows a concept board, writes each render prompt, quotes, renders and reviews through GooseWorks. Also handles requested branded header/social graphics. Use for static ad creation rather than goose-ads. Not for video, product photos or launching campaigns.

tests/test_template_sheet.py

View on GitHub
import tempfile
import unittest
from pathlib import Path

from PIL import Image

import sys
sys.path.insert(0, str(Path(__file__).resolve().parent.parent / "scripts"))

import template_sheet


class TemplateSheetTest(unittest.TestCase):
    def setUp(self):
        self.dir = Path(tempfile.mkdtemp())
        for name, size in (("a.png", (400, 500)), ("b.png", (800, 800)), ("c.png", (1080, 1920))):
            Image.new("RGB", size, "red").save(self.dir / name)

    def test_three_tiles_same_height(self):
        out = self.dir / "sheet.jpg"
        r = template_sheet.sheet(out, [("A (chosen)", str(self.dir / "a.png")), ("B", str(self.dir / "b.png")),
                                       ("C", str(self.dir / "c.png"))], title="Ad 1")
        self.assertEqual(r["tiles"], 3)
        img = Image.open(out)
        expected_w = template_sheet.PAD + sum(round(w * template_sheet.TILE_H / h) + template_sheet.PAD
                                              for w, h in ((400, 500), (800, 800), (1080, 1920)))
        self.assertEqual(img.width, expected_w)

    def test_parse_tile_keeps_query_in_url(self):
        self.assertEqual(template_sheet.parse_tile("B: library=https://e.com/a.jpg?v=17"), ("B: library", "https://e.com/a.jpg?v=17"))

    def test_bad_tile(self):
        with self.assertRaises(ValueError):
            template_sheet.parse_tile("no-source")

    def test_cli_error_exit(self):
        self.assertEqual(template_sheet.main([str(self.dir / "o.jpg"), "bad"]), 1)


if __name__ == "__main__":
    unittest.main()
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 322kUpdated Claude CodeCodexVerifiedInstall