skills/openai-llm/SKILL.md
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).
npx skillsauth add rdfitted/claude-code-setup openai-llmInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Invoke OpenAI models for text generation, reasoning, code analysis, and complex tasks using the Python openai SDK.
| 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 |
API Key Location: C:\Users\USERNAME\env (OPENAI_API_KEY)
API Key: Set via $OPENAI_API_KEY environment variable
python -c "
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ['OPENAI_API_KEY'])
response = client.chat.completions.create(
model='gpt-4o',
messages=[{'role': 'user', 'content': 'YOUR_PROMPT_HERE'}]
)
print(response.choices[0].message.content)
"
python -c "
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ['OPENAI_API_KEY'])
response = client.chat.completions.create(
model='gpt-4o',
messages=[
{'role': 'system', 'content': 'You are a helpful coding assistant.'},
{'role': 'user', 'content': 'YOUR_PROMPT_HERE'}
],
temperature=0.7,
max_tokens=4096
)
print(response.choices[0].message.content)
"
python -c "
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ['OPENAI_API_KEY'])
stream = client.chat.completions.create(
model='gpt-4o',
messages=[{'role': 'user', 'content': 'YOUR_PROMPT_HERE'}],
stream=True
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end='', flush=True)
print()
"
python -c "
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ['OPENAI_API_KEY'])
response = client.chat.completions.create(
model='o1',
messages=[{'role': 'user', 'content': 'YOUR_COMPLEX_REASONING_PROMPT'}]
)
print(response.choices[0].message.content)
"
When this skill is invoked:
Parse the user request to determine:
gpt-4o)Select the appropriate model:
gpt-4ogpt-4o-minio1 or o3-minio1-miniExecute the Python command using Bash tool:
python -c "
from openai import OpenAI
client = OpenAI(api_key=os.environ['OPENAI_API_KEY'])
response = client.chat.completions.create(
model='MODEL_ID',
messages=[{'role': 'user', 'content': '''PROMPT'''}]
)
print(response.choices[0].message.content)
"
Return the response to the user
python -c "
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ['OPENAI_API_KEY'])
response = client.chat.completions.create(
model='gpt-4o',
messages=[{'role': 'user', 'content': '''Review this Python code for bugs and improvements:
def calculate_total(items):
total = 0
for item in items:
total += item.price * item.quantity
return total
'''}]
)
print(response.choices[0].message.content)
"
python -c "
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ['OPENAI_API_KEY'])
response = client.chat.completions.create(
model='o1',
messages=[{'role': 'user', 'content': 'Solve this step by step: A farmer has 17 sheep. All but 9 die. How many are left?'}]
)
print(response.choices[0].message.content)
"
python -c "
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ['OPENAI_API_KEY'])
response = client.chat.completions.create(
model='gpt-4o',
messages=[
{'role': 'system', 'content': 'You are an expert Python developer. Write clean, efficient, well-documented code.'},
{'role': 'user', 'content': 'Write a Python function to merge two sorted lists'}
],
temperature=0.3
)
print(response.choices[0].message.content)
"
For conversations with history:
python -c "
import os
from openai import OpenAI
client = OpenAI(api_key=os.environ['OPENAI_API_KEY'])
response = client.chat.completions.create(
model='gpt-4o',
messages=[
{'role': 'user', 'content': 'What is Python?'},
{'role': 'assistant', 'content': 'Python is a high-level programming language...'},
{'role': 'user', 'content': 'How do I install it?'}
]
)
print(response.choices[0].message.content)
"
The skill handles common errors:
development
Restore from the Kopia backup repo in one of two opinionated modes. **wikis** (frequent, default) syncs per-project `.ai-docs/` directories from backup to local project trees — used to move compound-knowledge wikis between machines via the backup drive as sneakernet. **full** (rare) restores all sources to original paths for greenfield machine rebuild. Use when the user says "restore wikis", "sync wikis from backup", "pull the wikis", "I plugged in the backup drive on this machine", "rebuild this machine", "greenfield restore", or "restore everything". For ad-hoc single-file restores, use `backup-ops restore` instead.
documentation
# /bp-iterate Iterate the Fitted Business Plan(s). Manages the **internal canonical** and the **external partner/investor variant**, snapshot-on-version-bump lineage, redaction enforcement between variants, and cross-document coupling. ## When this runs - User says `/bp-iterate`, "iterate the BP," "bump the BP," "update the business plan," "version up the BP," "create / update / refresh the external variant" - A material trigger fires per the BP's own Iteration Log (first 2 new closes / fundi
tools
Run Kopia-based backups of key Windows files and config to an external drive. Use when the user says "back up", "run a backup", "snapshot", "the backup drive is plugged in", or wants to set up / configure backups for the first time. Handles initial repo setup, drive detection by volume label, source enumeration, and snapshot creation with structured exclusions.
testing
Secondary backup operations against the Kopia repo — verify integrity, run maintenance/prune, mirror to a second destination, restore files/folders, or run a quick top-up snapshot of hot directories. Use when the user says "verify backups", "check backup integrity", "prune old snapshots", "restore from backup", "mirror backups to cloud", "quick backup", "top up the backup", or asks about backup health. For the primary backup run, use the `backup` skill instead.