← Set up your agent guides

How to set up OpenAI Codex for SpecDD

How-To Set up your agent Beginner 1021001HOWTO-1021001

HOWTO-1021001Set up your agentBeginner

This guide shows you how to set up OpenAI Codex for SpecDD so Codex can work from local .sdd contracts instead of relying on long prompts.

The dedicated Codex plugin packages the shared SpecDD skills for Codex’s plugin system. In the SpecDD tools reference, this is the documented Codex install path.

Prerequisites

Before you start, make sure you have:

Steps

1. Check the project setup

From the project root, confirm that SpecDD has been initialized:

AGENTS.md
CLAUDE.md
.specdd/
  bootstrap.md
  bootstrap.project.md

If those files are missing, initialize the project:

specdd init

Then add or confirm the root .sdd file named after the selected content root directory.

2. Install the Codex plugin

Source and install details: github.com/specdd/plugin-codex

Install the SpecDD marketplace and plugin:

codex plugin marketplace add specdd/specdd --ref main
codex plugin add specdd@specdd

The plugin exposes the shared SpecDD skills for orientation, planning, implementation, review, tests, docs, tracing, task management, risk assessment, refactoring, debugging, and CLI-assisted setup work.

3. Open the project in Codex

Start Codex in the repository root or selected content root.

SpecDD is path-based. The root matters because bootstrap files, root specs, and / paths are resolved from that selected content root.

4. Verify SpecDD skill behavior

Use a small request:

Orient in this SpecDD project.

For a project with an existing feature spec, ask:

Explain the Itinerary spec.

Codex should report the relevant bootstrap/spec context, describe the authority it found, and avoid jumping straight to unrequested edits.

5. Use task-focused prompts

After setup, keep prompts short:

Plan the Itinerary validation change.
Implement the open validation task.

SpecDD is an amazing way to keep these prompts small because the durable context lives in Git beside the code.

Common mistakes

How to verify the result

Codex is ready for SpecDD when:

← Set up your agent guides