{
  "id": 5070527,
  "title": "I got sick of regenerating AI ads over one typo, so I made this",
  "url": "https://urgent.news/2026/09/02/i-got-sick-of-regenerating-ai-ads-over-one-typo-so-i-made-this",
  "topic": "ai",
  "section": "AI",
  "published": "2026-09-02T11:04:40.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/abir_hossain_b9f515ea2c48/i-got-sick-of-regenerating-ai-ads-over-one-typo-so-i-made-this-1ml4"
  },
  "original_language": "en",
  "account": "For years, I endured the monotony of AI-generated social media adverts, each one presented as a single image. When a typo or incorrect price surfaced, regeneration was the only recourse, hoping the good parts would remain intact. Frustrated by this cycle, I devised a solution.\n\nEnter my creation, accessible via GitHub. This tool, compatible with Claude, ChatGPT, Codex, Cursor, and Gemini, operates differently from standard AI models. Instead of producing an image directly, it generates a layout file using Python. The script meticulously renders each element onto its own layer, scrutinizing for overlapping text, poor contrast, and elements extending beyond the canvas. A Node script, sourced from ag-psd, then crafts a PSD file complete with editable text layers, masks, shadows, and organized folders. Photoshop or Photopea can open and edit this PSD.\n\nThe challenging aspect lay in the transformation of existing flat images into individual layers. Once merged into a JPG, undoing this process proved impossible. Thus, the AI retains each element as a distinct layer, eliminates extraneous objects using generative fill, and regenerates these remnants as cutouts. Before delivery, the model compiles a detailed list of every cutout on a grey background, ensuring accuracy.\n\nTo demonstrate its effectiveness, I've included before/after examples from real client projects in the repository, complete with the PSD files. This allows users to inspect the layers themselves. While I'm not an AI expert, I've encountered this issue often and hope this solution can alleviate similar struggles. Feedback and criticism are most welcome.",
  "summary": "While making social media creatives for clients. AI tools design them fine now, but the output is one flat image. So when there's a typo or a wrong price (there's always something), you can't fix it. You regenerate and hope the good parts survive. I got sick of this. So I made this. Please try it- GITHUB It's a skill for Claude / ChatGPT / Codex / Cursor / Gemini. The model doesn't output an…",
  "key_points": [
    "Tool generates layout file using Python",
    "Node script creates PSD file with editable layers",
    "PSD allows Photoshop or Photopea editing"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}