Apply the OpenAI SDK compliance checklist to audit files or directories and produce a Markdown report with findings and suggested fixes. Use when asked to "check compliance", "run compliance check", or "audit against OpenAI SDK rules".
**Owner:** QA
Audit a target (file set or directory) against `.claude/checklists/openai-sdk-compliance-checklist.yaml` and deliver a Markdown report with evidence and actionable fixes.
- Stop on first HIGH unless `--exhaustive` is requested.
- Stop if findings_count > 25.
- **A1. Primitives Only**: Orchestration uses only `run()`/`Runner.run()` and `handoff()`; no extra verbs like `routeAgent` or `pipeTo`.
- **A2. Tool Categories Valid**: Every tool is one of: Function | Hosted | Agent-as-Tool | MCP.
- **A3. No Custom Routing**: No bespoke agent-to-agent communication (axios/fetch/custom) beyond SDK patterns.
- **A4. Tool Input Schema (Zod)**: All tools define parameters via `tool({ parameters: z.object({...}) })`.
- **A5. Structured Outputs (Zod)**: Agents with non-text outputs declare `outputType: z.object({...})`.
- **A6. Single RunContext<T>**: One canonical `RunContext<T>` shared across agents/tools/guardrails.
- **A7. History Threading**: Conversation history flows via `result.history` → next `run()`.
- **A8. Model Settings Casing**: Uses `modelSettings.toolChoice` (camelCase), not `tool_choice`.
- **A9. Tracing Enabled/Declared**: Tracing wired to Langfuse (or explicitly disabled with rationale).
- **A10. Vision & Whisper Usage**: Use OpenAI Vision for images/PDFs and Whisper for audio; custom file analysis only for text formats.
- **A11. Deterministic IDs via Context**: IDs (userId, wid, aid, etc.) come from `RunContext`; never inferred or generated by agents.
- Mark PASS/FAIL with evidence (file path + line/snippet).
- For FAIL, provide a concrete fix that matches the rule’s `fix` guidance.
- Preserve `severity` and `autofix` flags from the checklist.
- **Summary**: counts by severity + decision (READY | NEEDS_REVISION | BLOCKED).
- **Findings**: list items with `id`, `severity`, `file`, `symbol` (if known), `evidence`, `fix`, `autofix`.
- **Suggestions**: targeted next steps based on findings.
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/compliancecheck/raw