Skip to main content

Overview

Codex CLI uses a hybrid approach: custom prompts for user-invokable commands and Agent Skills for reference documentation. Impeccable transforms its source format into Codex-compatible prompts with uppercase variable syntax and comprehensive skill files.
Codex CLI is OpenAI’s code-focused CLI tool. Skills and custom prompts are available in recent versions.

Installation

1

Install Codex CLI

2

Download the bundle

Visit impeccable.style and download the Codex CLI bundle, or copy from the repository:
3

Verify installation

In Codex CLI, type /prompts:audit - the command should be recognized.
Codex CLI installs globally (in ~/.codex/), not per-project. All projects share the same skills and prompts.

File Structure

Codex CLI uses a unique directory structure:

Key Differences

  1. Global installation: Everything lives in ~/.codex/ (not per-project)
  2. Skills directory: Uses .codex/skills/ (not .codex/commands/)
  3. Prompt prefix: Commands are invoked as /prompts:name (not just /name)

Skill Format

Codex CLI skills use YAML frontmatter with argument hints:

How Arguments Work

Codex CLI uses uppercase variable syntax ($ARGNAME) instead of lowercase placeholders:

Argument Syntax

Variable Transformation

Codex transforms arguments into uppercase variables:

Argument Hints

The argument-hint field in frontmatter shows users the expected syntax:
Codex displays this hint when users type the command name.

Provider-Specific Transformations

The build system applies these transformations for Codex CLI:

1. Uppercase Variables

Argument placeholders become uppercase variables:

2. Argument Hints

Codex generates argument hints from the args array:
Required arguments use <name>, optional use [NAME=<value>].

3. Skill Structure

Codex CLI uses the Agent Skills standard (same as Cursor and Claude Code) for skill files:

4. Reference Files

Reference files are copied into reference/ subdirectories, preserving the full content of domain-specific guides.

Usage Examples

Basic Command

Runs audit on entire interface.

With Argument

Audits the checkout flow.

Multiple Arguments

Adapts header component for mobile devices.

Complex Workflow

Available Skills

Impeccable includes 17 user-invokable prompts for Codex CLI:

Codex CLI Features

Custom Prompts System

Codex CLI organizes user-invokable commands as custom prompts with the /prompts: prefix:

Skills for Reference

Codex treats skills as reference documentation rather than invokable commands. They’re loaded automatically when prompts reference them:

Global Installation

Unlike other providers, Codex skills are global:
This means you install once and all projects benefit.

Argument Validation

Codex validates arguments based on argument-hint:
  • Required arguments (<name>) must be provided
  • Optional arguments ([NAME=<value>]) can be omitted
  • Codex prompts for missing required arguments

Quirks & Limitations

Prompts Prefix Required

Codex commands must use /prompts: prefix. Typing /audit won’t work - use /prompts:audit instead.

Uppercase Variables Only

Codex uses $ARGNAME (uppercase) not {{argname}} or {{args}}:

Global Scope

Skills affect all projects. You can’t have different skills per project.

No Per-Project Override

Codex doesn’t support project-specific skills. Everything in ~/.codex/ applies globally.

Argument Syntax

Codex uses KEY=value syntax (not space-separated):

Troubleshooting

Commands Not Found

1

Check installation location

Ensure files are in ~/.codex/skills/ (not project directory)
2

Use correct prefix

Type /prompts:audit (not /audit)
3

Verify file structure

Check that ~/.codex/skills/audit/SKILL.md exists
4

Restart Codex CLI

Fully quit and restart to reload skills

Arguments Not Working

If $ARGNAME appears literally in responses:
  1. Verify you’re using KEY=value syntax (not space-separated)
  2. Check argument name matches the hint exactly (case-sensitive)
  3. Ensure the skill body uses uppercase $ARGNAME

Skills Not Loading

If prompts can’t find the frontend-design skill:
  1. Verify ~/.codex/skills/frontend-design/SKILL.md exists
  2. Check YAML frontmatter is valid
  3. Ensure name field matches directory name
  4. Look for file permission issues

Migration from Other Providers

From Cursor or Claude Code

Codex uses uppercase variables:

From Gemini CLI

Codex supports named arguments (Gemini only has {{args}}):

Invocation Changes

Codex requires the /prompts: prefix:

Best Practices

1. Use Descriptive Variable Names

2. Make Arguments Optional When Possible

Design prompts that work with or without arguments:

3. Leverage Reference Skills

Explicitly invoke comprehensive skills:

4. Use Argument Hints

Provide clear hints so users know the expected syntax:

5. Chain Prompts for Workflows

Codex excels at sequential refinement:

6. Remember Global Scope

Since skills are global, design them to work across different projects:

Learn More