agentleFS
OpenAIKnown publisheropenai/openai-developers-for-claude/plugins/openai-developers/skills/openai-api-troubleshooting/SKILL.md

openai-api-troubleshooting

Skill41 starsChanged 5 months agoApache-2.0View on GitHub

Use when an OpenAI API request fails or the user asks what an error means, including blocked access to api.openai.com, 401 invalid_api_key, missing OPENAI_API_KEY, 429 insufficient_quota, 429 rate_limit_exceeded, or 403 model_not_found. Classify the failure, name the next step, route credential setup to openai-platform-api-key, and current guidance to openai-docs.

  • Reads credentials

3 other projects use a version of this, 3 of them edited.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 3

    1. openai/plugins★ 8.4k28% same
    2. openai/openai-developers-for-cursor★ 1399% same
    3. Geruyang/skills★ 225% same

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

12 rules. 1 is common, 4 are distinctive, and 7 are very specific to this project.

  • 1

    Common

    Most of the 3 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this for runtime OpenAI API failures after a request has already been made.

    line 7
  2. Very specific:

    Treat DNS errors, connection timeouts, connection resets, or inability to reach api.openai.com before any API response as transport …

    line 12
  3. Distinctive:

    If the failure came from a sandboxed or restricted run, explicitly recommend retrying the actual request with network access enabled or …

    line 13
  4. Very specific:

    If a key must be created or configured, explicitly hand off to openai-platform-api-key.

    line 17
  5. Very specific:

    Treat insufficient_quota, "current quota", "billing quota", "run out of credits", or "no balance left" as billing/quota exhaustion, not …

    line 20
  6. Very specific:

    If ambiguous, say it may be credits or a spend limit and consult openai-docs.

    line 23
  7. Very specific:

    Treat 403, model_not_found, org/project mismatch, or permission failures as reached-OpenAI-but-not-authorized cases.

    line 30
  8. Distinctive:

    Check the model, project, organization, and key scope before guessing.

    line 31
  9. Common:

    Prefer the concrete API error code and message over generic heuristics.

    line 37
  10. Distinctive:

    Keep user-facing answers short: likely class, reason, next action.

    line 38
  11. Distinctive:

    Do not rotate or create keys here.

    line 39
  12. Very specific:

    Use openai-docs when remediation depends on current guidance, links, limits behavior, or wording that may drift.

    line 40

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

OpenAI API Troubleshooting

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

Routing

  1. Sandboxed or blocked outbound network access
    • Treat DNS errors, connection timeouts, connection resets, or inability to reach api.openai.com before any API response as transport problems first.
    • If the failure came from a sandboxed or restricted run, explicitly recommend retrying the actual request with network access enabled or outside that restriction; only classify API-side auth, quota, rate-limit, or model access after a concrete OpenAI response exists.
  2. Authentication or missing-key errors
    • Route 401, invalid_api_key, missing OPENAI_API_KEY, or malformed-key cases to authentication.
    • If a key must be created or configured, explicitly hand off to openai-platform-api-key; do not stop at generic "create a fresh key" advice.
  3. Quota or credit exhaustion
    • Treat insufficient_quota, "current quota", "billing quota", "run out of credits", or "no balance left" as billing/quota exhaustion, not ordinary throttling.
    • For exhausted credits, prompt the user to add credits and include Add API credits. Do not purchase credits or change billing settings.
    • Link usage caps to https://platform.openai.com/settings/organization/limits.
    • If ambiguous, say it may be credits or a spend limit and consult openai-docs; when useful, note that ChatGPT subscriptions and API billing are separate.
  4. Rate limits
    • Route rate_limit_exceeded, requests-per-minute, tokens-per-minute, or retry-after guidance without quota language to throttling.
    • Recommend pacing, batching, exponential backoff, or lower concurrency; do not suggest buying credits unless the error also indicates quota exhaustion.
  5. Model, project, or organization access
    • Treat 403, model_not_found, org/project mismatch, or permission failures as reached-OpenAI-but-not-authorized cases.
    • Check the model, project, organization, and key scope before guessing.

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 API error code and message over generic heuristics.
  • Keep user-facing answers short: likely class, reason, next action.
  • Do not rotate or create keys here.
  • Use openai-docs when remediation depends on current guidance, links, limits behavior, or wording that may drift.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.