Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/generation-workflow-guide.mdA 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.javascriptA 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.pythonA 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.bashA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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