Skip to content
Back to skills

Sketch Ai Provider Debug Joelklabo Markdowntown Cli 2

ASecurity

Debug OpenAI/Gemini image generation failures for Sketch Magic. Use when `/api/convert` returns 500, when models are unsupported, when outputs are empty, or when provider timeouts/quota errors appear.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentsgoapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill sketch-ai-provider-debug-joelklabo-markdowntown-cli-2 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sketch Ai Provider Debug Joelklabo Markdowntown Cli 2?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sketch Ai Provider Debug Joelklabo Markdowntown Cli 2
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-sketch-ai-provider-debug-joelklabo-markdowntown-cl/badge)](https://www.skillsdirectory.com/skills/majiayu000-sketch-ai-provider-debug-joelklabo-markdowntown-cl)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sketch-ai-provider-debug
description: Debug OpenAI/Gemini image generation failures for Sketch Magic. Use when `/api/convert` returns 500, when models are unsupported, when outputs are empty, or when provider timeouts/quota errors appear.
---

# Sketch AI Provider Debug

## Overview
Provide a consistent debug flow for image generation failures across OpenAI and Gemini providers without leaking secrets.

## Workflow

### 1) Verify configuration
- Confirm `OPENAI_API_KEY` / `GEMINI_API_KEY` exist.
- Confirm `DEFAULT_PROVIDER`, `OPENAI_IMAGE_MODEL`, `GEMINI_IMAGE_MODEL` match supported models.
- Use `/api/health` to confirm defaults.

### 2) Reproduce with a controlled request
- Use a tiny PNG and short prompt.
- Use `curl` to hit `/api/convert` (multipart form data).
- Keep logs visible (server + client).

### 3) Interpret common failures
- **500**: provider error, missing key, quota, or model mismatch.
- **400**: invalid image type, size, or prompt.
- **Timeout**: provider latency or host timeout config.

### 4) Fix or adjust
- Swap to a known-good model.
- Reduce image size or prompt complexity.
- Confirm provider SDK versions align with supported endpoints.

### 5) Report safely
- Do not log API keys or raw image bytes.
- Summarize error codes and timing only.

## References
- `references/openai-image-api.md`
- `references/gemini-image-api.md`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.