create-agent
Installation
SKILL.md
Scaffold or develop an agent: $ARGUMENTS
Before Starting
- Search OpenAI docs for the latest Agents SDK patterns:
- Use
mcp__openai-docs__search_openai_docswith query "Agents SDK agent definition" to confirm currentAgentconstructor andrun()patterns - Use
mcp__openai-docs__search_openai_docswith query "Agents SDK tools" for tool definition patterns
- Use
- Read existing agent definitions to understand project conventions:
{{AGENTS_DIR}}/chat-coaches/index.ts— simple agent (tenant-driven prompt, single model)- Read 1-2 files in the ai-lab-agent repo at
{{PROJECT_ROOT}}/{{AGENTS_DIR}}/ai-lab/index.tsfor the function-based config pattern (instructions/tools/modelSettings as functions receiving RunContext) {{PROJECT_ROOT}}/{{AGENTS_DIR}}/writing-assistant/index.ts— multi-mode agent with per-mode temperature/token configs{{PROJECT_ROOT}}/{{AGENTS_DIR}}/seo-expert/index.ts— tool-heavy agent with ordered tool execution
- Read the shared infrastructure:
{{AGENTS_DIR}}/shared/enhanced-agent-bridge.ts— bridge class that wraps agent execution{{AGENTS_DIR}}/shared/types.ts— ChatKitRequest, ChatKitEvent, WritingContext types