openai-gpt

OpenAI GPT models API for chat, completion, and embeddings. Use for AI integration.

7 stars

Best use case

openai-gpt is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

OpenAI GPT models API for chat, completion, and embeddings. Use for AI integration.

Teams using openai-gpt should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/openai-gpt/SKILL.md --create-dirs "https://raw.githubusercontent.com/G1Joshi/Agent-Skills/main/skills/ai-ml/openai-gpt/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/openai-gpt/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How openai-gpt Compares

Feature / Agentopenai-gptStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

OpenAI GPT models API for chat, completion, and embeddings. Use for AI integration.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# OpenAI GPT

GPT (Generative Pre-trained Transformer) is the foundation of the modern AI revolution. In 2025, **GPT-5** offers agentic capabilities, deep reasoning, and native multimodal integration.

## When to Use

- **General Purpose**: It is the baseline for all AI tasks.
- **Complex Reasoning**: GPT-5 excels at multi-step logic and planning.
- **Vision/Voice**: Native "Omni" capabilities (GPT-4o/5) process audio and video with <300ms latency.

## Core Concepts

### Models

- **GPT-5**: The frontier model. Slow but smartest.
- **GPT-4o**: "Omni". Fast, multimodal, cheaper.
- **o1 / o3**: "Reasoning" models that "think" before answering (Chain of Thought).

### Assistants API

Stateful API for building agents. Manages threads, retrieval (RAG), and code interpreter.

### Structured Outputs

Guarantees JSON schema compliance for API responses.

## Best Practices (2025)

**Do**:

- **Use Structured Outputs**: Always define a Zod/JSON schema for production apps.
- **Use `o3-mini` for Code**: It is cheaper and often better at coding than GPT-4o.
- **Batch Requests**: Use the Batch API for 50% discount on non-urgent tasks.

**Don't**:

- **Don't use GPT-3.5**: It is obsolete. Use GPT-4o-mini for cheap tasks.

## References

- [OpenAI API Documentation](https://platform.openai.com/docs/introduction)