Agent skill · AI & Agents

openai-llm

Invoke OpenAI models for text generation, reasoning, and code tasks using the Python openai SDK. Supports gpt-4o (multimodal), o1 (reasoning), o3-mini (fast reasoning), and gpt-4o-mini (fast).

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill openai-llm --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 6 KB
Bundled scripts: none
Path: skills/ai-llm/openai-llm/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# OpenAI LLM Skill Invoke OpenAI models for text generation, reasoning, code analysis, and complex tasks using the Python `openai` SDK. ## Available Models | Model ID | Description | Best For | |----------|-------------|----------| | `gpt-4o` | Flagship multimodal model | General tasks, vision, analysis | | `gpt-4o-mini` | Fast and cost-efficient | Quick tasks, high throughput | | `o1` | Advanced reasoning model | Complex reasoning, math, code | | `o1-mini` | Fast reasoning | Moderate reasoning tasks | | `o3-mini` | Newest reasoning model | Deep reasoning, planning | ## Configuration **API Key Location**: `C:\Users\USERNAME\env` (OPENAI_API_KEY) **Default API Key**: Use environment variable `OPENAI_API_KEY` ## Usage ### Basic Text Generation ```bash python -c " from openai import OpenAI client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY")) response = client.chat.completions.create( model='gpt-4o', messages=[{'role': 'user', 'content': 'YOUR_PROMPT_HERE'}] ) print(response.choices[0].message.content) " ``` ### With System Instructions ```bash python -c " from openai import OpenAI client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY")) response = client.chat.completions.create(

What's inside
Steps it walks through
  1. Available Models
  2. Configuration
  3. Usage
  4. Basic Text Generation
  5. With System Instructions
  6. Streaming Response
  7. Using Reasoning Models (o1, o3-mini)
  8. Workflow
  9. Example Invocations
  10. Code Review
  11. Complex Reasoning (with o1)
  12. Generate Code
  13. Multi-turn Conversations
  14. Model Notes
Ships with 1 file
  • metadata.json
Commands it runs
python -c "
from openai import OpenAI
client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY"))
response = client.chat.completions.create(
stream = client.chat.completions.create(
for chunk in stream:
if chunk.choices[0].delta.content:
def calculate_total(items):
total = 0
for item in items:
More from claude-skill-registry
All skills →
About this skill
What does the openai-llm skill do?

Invoke OpenAI models for text generation, reasoning, and code tasks using the Python openai SDK. Supports gpt-4o (multimodal), o1 (reasoning), o3-mini (fast reasoning), and gpt-4o-mini (fast).

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill openai-llm --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going