スキル一覧に戻る
joelklabo

sketch-ai-provider-debug

by joelklabo

markdowntown scan CLI

0🍴 0📅 2026年1月19日
GitHubで見るManusで実行

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

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です