Skip to content

gabelul/pixeltamer-gpt-image-skill

pixeltamer

Flagged

Generate, edit, and compose images with GPT Image 2.6, including transparent PNGs with a real alpha channel. Three backends — OpenAI API key (full feature set), codex CLI on your ChatGPT subscription (agent-driven, no key needed), or the direct ChatGPT image route on the same subscription token (--backend codex-images, PNG-only, opt-in). Four modes — one-shot generate, edit or inpaint an existing image, multi-reference composition (up to 16 inputs blended into one), and multi-image batch with verification. Use when the user asks to make an image, generate a poster, draw a mockup, design an icon or sticker, create an ad creative, build an infographic, blend reference images, edit or inpaint an existing image, or produce a cutout asset with a transparent background — "transparent PNG", "no background", "alpha channel", "works on any background". Not for: stripping the background off an existing image you want to keep (that's rembg or ImageMagick, not a generator); file operations that don't change the picture (compression, format conversion, resizing); reading, describing or OCRing an image; video.

scripts/verify-images.mjs

View on GitHub
#!/usr/bin/env node
import { readFileSync, writeFileSync, existsSync, statSync } from 'node:fs';
import { resolve, dirname } from 'node:path';
import { readImageDimensions, readHasAlphaChannel, readAlphaCoverage } from './lib/image-dimensions.mjs';
import { parsePromptsFile } from './lib/parse-prompts.mjs';
import { verifyEntry } from './lib/verify-entry.mjs';
import { writeStatusUpdates } from './lib/write-status.mjs';

const NEEDS_VERIFICATION = (status) => status === 'pending' || status?.startsWith('failed');

function main() {
  const promptsPath = process.argv[2];
  if (!promptsPath) {
    console.error('Usage: node scripts/verify-images.mjs <path-to-prompts.md>');
    process.exit(2);
  }

  if (!existsSync(promptsPath)) {
    console.error(`prompts file not found: ${promptsPath}`);
    process.exit(2);
  }

  const content = readFileSync(promptsPath, 'utf8');
  let entries;
  try {
    entries = parsePromptsFile(content);
  } catch (err) {
    console.error(`Failed to parse ${promptsPath}: ${err.message}`);
    process.exit(2);
  }

  // Project root = parent of the directory containing prompts.md.
  // Convention: prompts.md lives at <projectRoot>/.pixeltamer/prompts.md
  const projectRoot = resolve(dirname(promptsPath), '..');

  const fs = {
    existsSync,
    statSync,
  };
  // Zero-dep PNG/JPEG header reader; returns null on anything it can't read,
  // which verifyEntry surfaces as "unable to read image dimensions".
  const getDimensions = (path) => readImageDimensions(path);
  const getHasAlpha = (path) => readHasAlphaChannel(path);
  const getAlphaCoverage = (path) => readAlphaCoverage(path);

  const updates = new Map();
  let toVerify = 0;
  let passed = 0;
  let failed = 0;
  let skipped = 0;

  for (const entry of entries) {
    if (!NEEDS_VERIFICATION(entry.status)) {
      skipped++;
      continue;
    }
    toVerify++;
    const result = verifyEntry(entry, projectRoot, { fs, getDimensions, getHasAlpha, getAlphaCoverage });
    if (result.ok) {
      updates.set(entry.index, 'verified');
      passed++;
      console.log(`  [PASS] ${entry.index}. ${entry.path}`);
    } else {
      updates.set(entry.index, `failed: ${result.reason}`);
      failed++;
      console.log(`  [FAIL] ${entry.index}. ${entry.path} — ${result.reason}`);
    }
  }

  if (updates.size > 0) {
    const updated = writeStatusUpdates(content, updates);
    writeFileSync(promptsPath, updated, 'utf8');
  }

  console.log('');
  console.log(`Verified: ${passed}/${toVerify} passed, ${failed} failed, ${skipped} already verified.`);

  process.exit(failed === 0 ? 0 : 1);
}

main();
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall