code-change-verification
🎯Skillfrom openai/openai-agents-python
Verifies code changes by analyzing proposed modifications, checking for potential errors, security risks, or unintended consequences before implementation.
Installation
npx skills add https://github.com/openai/openai-agents-python --skill code-change-verificationSkill Details
Overview
# OpenAI Agents SDK [](https://pypi.org/project/openai-agents/)
The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows. It is provider-agnostic, supporting the OpenAI Responses and Chat Completions APIs, as well as 100+ other LLMs.

> [!NOTE]
> Looking for the JavaScript/TypeScript version? Check out [Agents SDK JS/TS](https://github.com/openai/openai-agents-js).
Core concepts:
- [Agents](https://openai.github.io/openai-agents-python/agents): LLMs configured with instructions, tools, guardrails, and handoffs
- [Handoffs](https://openai.github.io/openai-agents-python/handoffs/): A specialized tool call used by the Agents SDK for transferring control between agents
- [Guardrails](https://openai.github.io/openai-agents-python/guardrails/): Configurable safety checks for input and output validation
- [Sessions](#sessions): Automatic conversation history management across agent runs
- [Tracing](https://openai.github.io/openai-agents-python/tracing/): Built-in tracking of agent runs, allowing you to view, debug and optimize your workflows
Explore the [examples](examples) directory to see the SDK in action, and read our [documentation](https://openai.github.io/openai-agents-python/) for more details.
Get started
To get started, set up your Python environment (Python 3.9 or newer required), and then install OpenAI Agents SDK package.
venv
```bash
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install openai-agents
```
For voice support, install with the optional voice group: pip install 'openai-agents[voice]'.
For Redis session support, install with the optional redis group: pip install 'openai-agents[redis]'.
uv
If you're familiar with [uv](https://docs.astral.sh/uv/), installing the package would be even easier:
```bash
uv init
uv add openai-agents
```
For voice support, install with the optional voice group: uv add 'openai-agents[voice]'.
For Redis session support, install with the optional redis group: uv add 'openai-agents[redis]'.
Hello world example
```python
from agents import Agent, Runner
agent = Agent(name="Assistant", instructions="You are a helpful assistant")
result = Runner.run_sync(agent, "Write a haiku about recursion in programming.")
print(result.final_output)
# Code within the code,
# Functions calling themselves,
# Infinite loop's dance.
```
(_If running this, ensure you set the OPENAI_API_KEY environment variable_)
(_For Jupyter notebook users, see [hello_world_jupyter.ipynb](examples/basic/hello_world_jupyter.ipynb)_)
Handoffs example
```python
from agents import Agent, Runner
import asyncio
spanish_agent = Agent(
name="Spanish agent",
instructions="You only speak Spanish.",
)
english_agent = Agent(
name="English agent",
instructions="You only speak English",
)
triage_agent = Agent(
name="Triage agent",
instructions="Handoff to the appropriate agent based on the language of the request.",
handoffs=[spanish_agent, english_agent],
)
async def main():
result = await Runner.run(triage_agent, input="Hola, ¿cómo estás?")
print(result.final_output)
# ¡Hola! Estoy bien, gracias por preguntar. ¿Y tú, cómo estás?
if __name__ == "__main__":
asyncio.run(main())
```
Functions example
```python
import asyncio
from agents import Agent, Runner, function_tool
@function_tool
def get_weather(city: str) -> str:
return f"The weather in {city} is sunny."
agent = Agent(
name="Hello world",
instructions="You are a helpful agent.",
tools=[get_weather],
)
async def main():
result = await Runner.run(agent, input="What's the weather in Tokyo?")
print(result.final_output)
# The w
More from this repository5
I apologize, but I cannot generate a specific description for the "openai-knowledge" skill based solely on the README provided. The README describes the OpenAI Agents SDK generally, but does not me...
Automatically analyzes code repositories and generates additional unit tests to improve overall test coverage and identify potential gaps in existing test suites.
Automatically executes and validates example code snippets from the OpenAI Agents SDK repository to ensure they run correctly and demonstrate proper usage.
Based on the README, I cannot definitively determine the specific purpose of the "final-release-review" Claude Code skill. The README provides an overview of the OpenAI Agents SDK but does not ment...
Generates concise, informative summaries of pull request drafts to help developers quickly understand proposed code changes.