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_place_logo.py

View on GitHub
import json
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 place_logo


class PlaceLogoTest(unittest.TestCase):
    def setUp(self):
        self.dir = Path(tempfile.mkdtemp())
        self.render = self.dir / "render.png"
        Image.new("RGB", (1000, 1250), (200, 60, 40)).save(self.render)
        self.logo = self.dir / "logo.png"
        logo = Image.new("RGBA", (400, 100), (0, 0, 0, 0))
        logo.paste((30, 30, 30, 255), (10, 10, 390, 90))
        logo.save(self.logo)

    def test_places_in_corner_with_contrasting_plate(self):
        out = self.dir / "out.png"
        info = place_logo.place(self.render, self.logo, out, corner="br", width=0.2)
        x, y, w, h = info["box"]
        self.assertEqual(info["logo_size"], [200, 50])
        self.assertTrue(x + w <= 1000 and y + h <= 1250 and x > 500 and y > 1000)
        self.assertEqual(info["plate"], "#ffffff")
        img = Image.open(out)
        self.assertEqual(img.size, (1000, 1250))
        self.assertEqual(img.getpixel((5, 5)), (200, 60, 40))

    def test_render_is_never_overwritten(self):
        with self.assertRaises(ValueError):
            place_logo.place(self.render, self.logo, self.render)

    def test_rejects_bad_corner_and_width(self):
        with self.assertRaises(ValueError):
            place_logo.place(self.render, self.logo, self.dir / "o.png", corner="xx")
        with self.assertRaises(ValueError):
            place_logo.place(self.render, self.logo, self.dir / "o.png", width=0.9)

    def test_bare_logo_and_top_centre(self):
        info = place_logo.place(self.render, self.logo, self.dir / "o2.png", corner="tc", plate="none")
        x, y, w, h = info["box"]
        self.assertEqual(info["plate"], "none")
        self.assertEqual(x, (1000 - w) // 2)
        self.assertEqual(y, 40)


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