Agent skill

Openai API

by coco-research in coco-research/coco

A skill your agent uses when implementing GPT chat, streaming, function calling, embeddings for RAG, images, audio or batch jobs, or troubleshooting 429 rate limits and API or TypeScript errors.

Custom licenceAuto-check: notesAI & LLM Engineering

Install Openai API

skills CLI
$ npx skills add coco-research/coco --skill openai-api -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install coco-research/coco openai-api --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/coco-research/coco.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/openai-api .claude/skills/openai-api && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
openai-api
GitHub stars
503
Token cost
~7.6k tokens
SKILL.md length
1,603 words
Files
28 (incl. scripts, references)
Skills in repo
63
Repo updated
First seen
Licence
Custom licence

At a glance

A skill your agent uses when implementing GPT chat, streaming, function calling, embeddings for RAG, images, audio or batch jobs, or troubleshooting 429 rate limits and API or TypeScript errors.

  • Works in 12 steps: Quick Start → Chat Completions API → GPT-5 Series Models → …
  • Implementing GPT chat
  • SKILL.md covers Status, Table of Contents, Quick Start and Chat Completions API, plus 5 more sections
  • Runs TypeScript and Shell scripts from its folder; calls npm; reaches api.openai.com; needs OPENAI_API_KEY

What it does

Openai API is an agent skill from coco-research/coco. Use when implementing GPT chat, streaming, function calling, embeddings for RAG, images, audio or batch jobs, or troubleshooting 429 rate limits and API or TypeScript errors. Stateless OpenAI patterns that prevent 16 documented errors.

Its SKILL.md is about 7.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 31 other files, including scripts and reference files (for example `NEXT-SESSION.md`, `references/audio-guide.md` and `references/cost-optimization.md`).

It sits in AI & LLM Engineering, covering LLM API integration, Structured output and tool calling and Embeddings. It works with OpenAI, TypeScript and Node.js. The repository describes itself as: CoCo Super Intelligence is the orchestration layer that turns Claude Code, Cursor, or Codex into an engineering department: a routed advisory board, 226 skills, 386 commands…

When your agent uses it

  • Implementing GPT chat
  • Function calling
  • Embeddings for RAG
  • Troubleshooting 429 rate limits and API

Example prompts

  • “/openai-api”

Requirements

  • Node.js
  • A Bash shell
  • A credential in OPENAI_API_KEY

Workflow steps

12 steps, taken from the first numbered list in SKILL.md.

  1. Quick Start
  2. Chat Completions API
  3. GPT-5 Series Models
  4. Streaming Patterns
  5. Function Calling
  6. Structured Outputs
  7. Vision (GPT-4o)
  8. Embeddings API
  9. Images API
  10. Audio API
  11. Moderation API
  12. Error Handling

What it can do on your machine

Read from SKILL.md and the folder at commit d79d33a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (TypeScript and Shell, from the files we listed), which the agent can run.

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.openai.com

    Also links to:

    • platform.openai.com
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OPENAI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Openai API loads about 7.6k tokens when it runs, and up to ~19k if it reads all its reference files. Until then it costs about 62 tokens; SKILL.md has 1,603 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~62
When it runs · the whole SKILL.md, loaded when a task matches
~7.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~19k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:68
    Or create `.env` file:

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,603 words (~7,610 tokens).

“Version: Production Ready ✅ Package: openai@6.16.0 Last Updated: 2026-01-20”

— opening of SKILL.md by coco-research, Custom licence
name
openai-api
user-invocable
true
domain
engineering

Read the full SKILL.md on GitHub

Files

SKILL.md and 27 other files (scripts, references) in skills/openai-api of coco-research/coco.

  • SKILL.md
  • NEXT-SESSION.md
  • references/audio-guide.md
  • references/cost-optimization.md
  • references/embeddings-guide.md
  • references/function-calling-patterns.md
  • references/images-guide.md
  • references/models-guide.md
  • references/structured-output-guide.md
  • references/top-errors.md
  • rules/openai-api.md
  • scripts/check-versions.sh
  • templates/audio-transcription.ts
  • templates/chat-completion-basic.ts
  • templates/chat-completion-nodejs.ts
  • templates/cloudflare-worker.ts
  • templates/embeddings.ts
  • … and 11 more

Open the folder on GitHubat commit d79d33a

Compare with similar skills

Openai API next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Openai API compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Openai API this skillcoco-research/coco503—~7.6kAutomated safety check: NotesCustom licence
Openai APIynulihao/AgentSkillOS617—~5.9kAutomated safety check: NotesNone
Sap Cloud SDK AIsecondsky/sap-skills462—~3.2kAutomated safety check: PassGPL-3.0
Azure Openai To Responsesmicrosoft/ai-agents-for-beginners77k—~6kAutomated safety check: NotesMIT
Anthropic Product Knowledgesyahiidkamil/Software-Engineer-AI-Agent-Atlas4014 repos~651Automated safety check: PassNone
Azure Openai To Responsesmicrosoft/ai-agents-for-beginners77k—~6kAutomated safety check: NotesMIT

Similar skills

  • Openai API

    ynulihao/AgentSkillOS

    Build with OpenAI's stateless APIs - Chat Completions (GPT-5, GPT-4o), Embeddings, Images (DALL-E 3), Audio (Whisper + TTS), and Moderation.

    617 GitHub stars~5.9k tokensUpdated 7 mo ago
    AI & LLM EngineeringAuto-check: notes
  • Sap Cloud SDK AI

    secondsky/sap-skills

    Integrates SAP Cloud SDK for AI into JavaScript/TypeScript and Java applications.

    462 GitHub stars~3.2k tokensUpdated 3 days ago
    AI & LLM EngineeringAuto-check passed
  • Azure Openai To Responses

    microsoft/ai-agents-for-beginners

    Official

    Migrate Python apps from Azure OpenAI Chat Completions to the Responses API.

    77k GitHub stars~6k tokensUpdated 20 days ago
    AI & LLM EngineeringAuto-check: notes
  • Anthropic Product Knowledge

    syahiidkamil/Software-Engineer-AI-Agent-Atlas

    Stop and consult this skill whenever your response would include specific facts about Anthropic's products.

    401 GitHub starsUsed in 4 repos~651 tokens
    AI & LLM EngineeringAuto-check passed
  • Azure Openai To Responses

    microsoft/ai-agents-for-beginners

    Official

    Shift Python apps dem from Azure OpenAI Chat Completions go Responses API.

    77k GitHub stars~6k tokensUpdated 20 days ago
    AI & LLM EngineeringAuto-check: notes
  • Azure Openai To Responses

    microsoft/ai-agents-for-beginners

    Official

    Ilipat ang mga Python app mula sa Azure OpenAI Chat Completions papuntang Responses API.

    77k GitHub stars~7k tokensUpdated 20 days ago
    AI & LLM EngineeringAuto-check: notes

More from coco-research/coco

All 63 skills in this repo
  • Coco Ads

    coco-research/coco

    Turn the project you just shipped into a short, polished, shareable launch video (an "ad") using HyperFrames.

    503 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Arch Index

    coco-research/coco

    Build and validate .arch/index.json — a committed map from each architectural component of this repository to the real directories and files that implement it, pinned to a git commit, with every…

    503 GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Openai Agents

    coco-research/coco

    Build AI applications with OpenAI Agents SDK - text agents, voice agents, multi-agent handoffs, tools with Zod schemas, guardrails, and streaming.

    503 GitHub stars~3.3k tokensUpdated today
    Auto-check passed
  • Skill Evolution

    coco-research/coco

    A skill your agent uses when running, reviewing or changing coco's self-evolution cycle: the 30-day loop that observes how skills are actually used, proposes evidence-backed edits to them as one…

    503 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Coco Diagram

    coco-research/coco

    A skill your agent uses for architecture, current-state, process, data-flow, medallion, or DP diagrams, including redrawing .drawio and Mermaid sources.

    503 GitHub stars~9.2k tokensUpdated today
    Auto-check passed
  • API Design Principles

    coco-research/coco

    A skill your agent uses when designing a new REST or GraphQL API, reviewing an API spec before implementation, setting team API standards, or migrating REST to GraphQL.

    503 GitHub stars~3.4k tokensUpdated today
    Auto-check passed

Questions about Openai API

What does Openai API do?

A skill your agent uses when implementing GPT chat, streaming, function calling, embeddings for RAG, images, audio or batch jobs, or troubleshooting 429 rate limits and API or TypeScript errors. Openai API is an agent skill from coco-research/coco. Use when implementing GPT chat, streaming, function calling, embeddings for RAG, images, audio or batch jobs, or troubleshooting 429 rate limits and API or TypeScript errors.

When should I use Openai API?

Openai API fits situations like: implementing GPT chat; function calling; embeddings for RAG; troubleshooting 429 rate limits and API.

How do I install Openai API in Claude Code?

Run `npx skills add coco-research/coco --skill openai-api -a claude-code`. Or copy the skill folder (skills/openai-api in coco-research/coco) into .claude/skills/openai-api in your project. Claude Code loads it when a task matches its description.

How do I install Openai API in Codex?

Run `npx skills add coco-research/coco --skill openai-api -a codex`. Or copy the skill folder (skills/openai-api in coco-research/coco) into .agents/skills/openai-api in your project. Codex loads it when a task matches its description.

Can I use Openai API in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add coco-research/coco --skill openai-api -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/openai-api, .gemini/skills/openai-api, .github/skills/openai-api and .opencode/skills/openai-api in your project.

What does Openai API need to run?

Going by SKILL.md and its folder, Openai API needs TypeScript and a shell for the scripts in its folder, the command-line tools its instructions call (npm) and credentials named OPENAI_API_KEY. Our summary lists: Node.js; A Bash shell; A credential in OPENAI_API_KEY.

Does Openai API access the network?

SKILL.md names 3 domains. In commands or code: api.openai.com; the agent is likely to contact it when it follows the instructions. As links in the text: platform.openai.com and github.com. This is read from the text; nothing was executed.

Is Openai API safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Openai API use?

Openai API has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Openai API use?

About 7.6k tokens (SKILL.md is roughly 30k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.

What are the alternatives to Openai API?

Skills that share tags, products or a category with Openai API: Openai API (ynulihao/AgentSkillOS, 617 stars), Sap Cloud SDK AI (secondsky/sap-skills, 462 stars), Azure Openai To Responses (microsoft/ai-agents-for-beginners, 77k stars) and Anthropic Product Knowledge (syahiidkamil/Software-Engineer-AI-Agent-Atlas, 401 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Openai API?

coco-research (a GitHub user) maintains it in coco-research/coco, which has 503 GitHub stars. The repository holds 63 skills in this directory. The repository was last updated on October 9, 2026.

Source: coco-research/coco on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.