openai · OpenAI Platform Docs
Code generation
A guide on implementing code generation workflows using GPT-5 and Codex, covering model selection, integration via the Responses API, and evaluating frontend generation quality.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Code generation
A guide on implementing code generation workflows using GPT-5 and Codex, covering model selection, integration via the Responses API, and evaluating frontend generation quality.
When To Use
Use when you need to implement automated code writing, reviewing, or editing capabilities into an application using OpenAI models or Codex.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/generation-workflow-guide.md | A guide detailing options and methods for code generation using OpenAI models including Codex and GPT. | Questions about a guide detailing options and methods for code generation using OpenAI models including Codex and GPT. |
examples/generation-openai-platform-docs-generation.javascript | A JavaScript code example demonstrating how to use the OpenAI SDK to perform code generation tasks with reasoning effort enabled. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the OpenAI SDK to perform code generation tasks with reasoning eff... |
examples/generation-openai-python-generation-client.python | A Python script demonstrating how to use the OpenAI client to perform code generation tasks with reasoning effort settings. | Exact payloads, commands, or snippets shown in A Python script demonstrating how to use the OpenAI client to perform code generation tasks with reasoning effort set... |
examples/generation-openai-api-generation-curl-request.bash | A bash curl command demonstrating how to send a code generation request to the OpenAI API using a JSON payload. | Exact payloads, commands, or snippets shown in A bash curl command demonstrating how to send a code generation request to the OpenAI API using a JSON payload. |
What This Skill Covers
- Writing, reviewing, editing, and answering questions about code is one of the primary use cases for OpenAI models today. This guide walks through your option...
- Main sections:
Get started,Use Codex,Integrate with coding models,Frontend development,Next steps.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.openai.com/api/docs/guides/code-generation.md
