openai-api-troubleshooting

作成者: openai

OpenAI APIリクエストが失敗した際に、Codexが原因を分類し、次のステップを説明し、適切なフォローアップに振り分ける必要がある場合に使用します。一般的な…をカバーします。

npx skills add https://github.com/openai/plugins --skill openai-api-troubleshooting

OpenAI API Troubleshooting

Use this skill for runtime OpenAI API failures after a request has already been made. Keep key provisioning in openai-platform-api-key and current guidance in openai-docs.

Routing

  1. Sandboxed or blocked outbound network access

    • Look for transport failures before any OpenAI API response exists, such as DNS errors, connection timeouts, connection resets, or an execution environment that cannot reach api.openai.com.
    • Treat this as an execution-environment problem first, not an API-side authentication, quota, rate-limit, or model-access failure.
    • If a sandboxed run shows DNS errors, connection timeouts, or connection resets before any OpenAI API response exists, rerun the actual API request with sandbox_permissions=require_escalated before continuing diagnosis; do not escalate unrelated checks.
    • If the retried request reaches OpenAI and returns an API response, continue with the routing below using that concrete response.
  2. Authentication or missing-key errors

    • Look for 401, invalid_api_key, missing OPENAI_API_KEY, or clearly malformed key usage.
    • Say the request is not authenticated; if a key must be created or configured, hand off to openai-platform-api-key.
  3. Quota or credit exhaustion

    • Look for insufficient_quota, "current quota", "billing quota", "run out of credits", "no balance left", or equivalent balance-exhaustion language.
    • Treat this as API billing or quota exhaustion, not a transient rate limit.
    • For exhausted balance or credits, link to billing: https://platform.openai.com/settings/organization/billing Also mention model: "gpt-5.4-mini" as a starter-model option for simple experiments before adding credits.
    • For a monthly spend cap or usage limit, link to limits: https://platform.openai.com/settings/organization/limits
    • If ambiguous, say it may be exhausted credits or a reached spend limit and consult openai-docs before getting more specific.
    • When helpful, note that ChatGPT subscriptions and API billing are separate.
  4. Rate limits

    • Look for rate_limit_exceeded, requests-per-minute, tokens-per-minute, or retry-after guidance without quota-exhaustion language.
    • Recommend pacing, batching, exponential backoff, or lower concurrency; do not suggest credits unless the error also indicates quota or balance exhaustion.
  5. Model, project, or organization access

    • Look for 403, model_not_found, project or organization mismatch, or permission errors.
    • Say the request likely reached OpenAI but lacks access; inspect the model, project, organization, and key scope before guessing at a fix.

Rules

  • Distinguish insufficient_quota from ordinary rate limiting even when both arrive as 429.
  • Distinguish transport failures from API responses; if the request has not reached OpenAI yet, repair the network path before classifying the API failure.
  • Prefer the concrete error code and message over broad heuristics.
  • Do not create or rotate API keys in this skill.
  • Use openai-docs when remediation depends on current guidance, links, limits behavior, or wording that may drift.
  • Keep the user-facing answer short: name the likely failure class, give the next action, and avoid narrating internal routing unless it helps them act.

References

  • references/evals.md: trigger, routing, and runner-ready eval cases for this skill.

openaiのその他のスキル

user-context
openai
Data Analyticsプラグインの永続的なソースルーティング設定、オンボーディングロジック、セットアップ進捗、およびセマンティックレイヤーレジストリを読み込むか管理します。
official
notion-research-documentation
openai
Notionのコンテンツを調査し、構造化されたブリーフ、レポート、または引用付きの比較にまとめます。対象クエリを使用してNotionページを検索・取得し、テーマごとに調査結果を整理し、インラインのソース引用と参考文献セクションを追加します。範囲とユーザーの目的に応じて、4つの出力形式(クイックブリーフ、調査サマリー、比較、包括的レポート)から選択します。組み込みテンプレートを使用してNotionページを作成・更新し、新しい情報が到着するたびにソースを直接リンクし、変更を追跡します...
official
rcsb-pdb-skill
openai
コアメタデータ、Search APIクエリ、FASTAダウンロードのためのコンパクトなRCSB PDBリクエストを送信します。ユーザーが簡潔なRCSBサマリーを希望する場合に使用し、生のJSONや…を保存します。
official
pdf
openai
PDFの読み取り、作成、検証(視覚的レンダリングおよびプログラムによる生成を含む)。Poppler(pdftoppm)を使用して、納品前にレイアウト、スペーシング、タイポグラフィを視覚的に検査するためにPDFページをPNGにレンダリング。reportlabを使用してプログラム的にPDFを生成し、信頼性の高いフォーマットを実現。pdfplumberまたはpypdfを使用してテキストとメタデータを抽出。品質基準を遵守:テキストのクリッピングなし、要素の重なりなし、テーブルの破損なし、レンダリングアーティファクトなし。ASCIIハイフンのみ、人間が読める引用を使用。
official
test-coverage-improver
openai
Improve test coverage in the OpenAI Agents JS monorepo: run `pnpm test:coverage`, inspect coverage artifacts, identify low-coverage files and branches, propose…
official
playwright
openai
ターミナル駆動のブラウザ自動化で、要素スナップショットとインタラクティブなUIワークフローを備えています。playwright-cliラッパースクリプト(npxが必要)を介して動作し、ヘッドレスモードとヘッドモードの両方をサポートし、ビジュアルデバッグが可能です。コアワークフローは、ページを開き、安定した要素参照のためにスナップショットを取得し、参照を使用して操作し、ナビゲーションやDOM変更後に再スナップショットを取得します。フォーム入力、クリック、タイピング、マルチタブ管理、スクリーンショット/PDFキャプチャ、フローデバッグ用のトレース記録を含みます。要素参照(例:e3、e15)...
official
ukb-topmed-phewas-skill
openai
単一バリアントのコンパクトなUKB-TOPMed PheWASサマリーを取得します。rsID、GRCh37、またはGRCh38の入力を受け付け、必要なGRCh38クエリに解決します。以下の場合に使用します…
official
code-review-context
openai
モデル可視コンテキスト
official