Agent skill

Codex Goals

by pproenca in pproenca/dot-skills

Patterns and anti-patterns for using OpenAI Codex Goals — the persistent objectives feature introduced in Codex 0.128.0.

MITAuto-check passedDevelopment

Install Codex Goals

skills CLI
$ npx skills add pproenca/dot-skills --skill codex-goals -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install pproenca/dot-skills codex-goals --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/pproenca/dot-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.experimental/codex-goals .claude/skills/codex-goals && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
codex-goals
GitHub stars
214
Token cost
~2.1k tokens
SKILL.md length
734 words
Files
37 (incl. references, assets)
Skills in repo
182
Repo updated
First seen
Licence
MIT

At a glance

Patterns and anti-patterns for using OpenAI Codex Goals — the persistent objectives feature introduced in Codex 0.128.0.

  • Works in 8 steps: Goal Fit Decisions (CRITICAL) → Outcome Definition (CRITICAL) → Verification Surface (CRITICAL) → …
  • Debugging a /goal invocation
  • SKILL.md covers When to Apply, Rule Categories by Priority, Quick Reference and How to Use, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Codex Goals is an agent skill from pproenca/dot-skills. Patterns and anti-patterns for using OpenAI Codex Goals — the persistent objectives feature introduced in Codex 0.128.0. Use this skill whenever writing, reviewing, or debugging a /goal invocation, deciding whether a task should be a Goal at all, drafting a research Goal that needs an evidence ledger, or diagnosing a Goal that completed against the wrong surface. Triggers on /goal, "Codex Goal", "Codex goals", "persistent objective", "evidence-based completion", "iteration policy", "blocked stop condition", or…

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 39 other files, including reference files and assets (for example `AGENTS.md`, `assets/templates/_template.md` and `gotchas.md`).

It sits in Development. The repository describes itself as: A collection of AI agent skills following the Agent Skills open format. The licence is MIT.

When your agent uses it

  • Debugging a /goal invocation
  • Deciding whether a task should be a Goal at all
  • Drafting a research Goal that needs an evidence ledger
  • Diagnosing a Goal that completed against the wrong surface

Example prompts

  • “Codex Goal”
  • “Codex goals”
  • “persistent objective”
  • “/codex-goals”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Goal Fit Decisions (CRITICAL)
  2. Outcome Definition (CRITICAL)
  3. Verification Surface (CRITICAL)
  4. Boundaries & Iteration (HIGH)
  5. Lifecycle Commands (HIGH)
  6. Evidence-Based Completion (HIGH)
  7. Crafting Strong Goals (MEDIUM)
  8. Research Goals & Anti-Patterns (MEDIUM)

What it can do on your machine

Read from SKILL.md and the folder at commit cf93c57. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • developers.openai.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Codex Goals loads about 2.1k tokens when it runs, and up to ~21k if it reads all its reference files. Until then it costs about 190 tokens; SKILL.md has 734 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~190
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~21k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from pproenca/dot-skills at commit cf93c57, republished under its MIT licence (© pproenca). 734 words, ~2,150 tokens.

Download SKILL.mdSave it as .claude/skills/codex-goals/SKILL.md (or your agent's skills folder). This skill also uses 36 other files; get the full folder from GitHub.
name
codex-goals
description
Patterns and anti-patterns for using OpenAI Codex Goals — the persistent objectives feature introduced in Codex 0.128.0. Use this skill whenever writing, reviewing, or debugging a `/goal` invocation, deciding whether a task should be a Goal at all, drafting a research Goal that needs an evidence ledger, or diagnosing a Goal that completed against the wrong surface. Triggers on `/goal`, "Codex Goal", "Codex goals", "persistent objective", "evidence-based completion", "iteration policy", "blocked stop condition", or any user message describing a multi-turn Codex task with a defined finish line. Trigger even if the user doesn't explicitly mention Goals — if they're typing "/goal" or asking Codex to "keep going until X", this skill applies.

OpenAI Codex Goals Best Practices

Reference for writing and managing Codex Goals — the persistent objective feature introduced in Codex 0.128.0. "Best practices" here means the patterns and anti-patterns that determine whether a Goal completes against the right evidence vs. silently against the wrong surface. Contains 31 rules across 8 categories, ordered by how much they affect whether a Goal completes correctly. Derived from the official OpenAI cookbook article "Using Goals in Codex".

When to Apply

Reference these guidelines when:

  • Deciding whether a task warrants a /goal or a normal prompt
  • Drafting or strengthening a /goal invocation
  • Reviewing a Goal someone else wrote before activating it
  • Debugging a Goal that completed against the wrong verification surface
  • Setting up a research Goal where exact proof may not be available
  • Managing Goal lifecycle (pause, resume, clear) across thread sessions
  • Writing the iteration policy or blocked stop condition for a long-running Goal
  • Diagnosing a Goal that hit its budget without completing

Rule Categories by Priority

PriorityCategoryImpact (worst rule)Prefix
1Goal Fit DecisionsCRITICALfit-
2Outcome DefinitionCRITICAL / HIGHoutcome-
3Verification SurfaceCRITICAL / HIGHverify-
4Boundaries & IterationHIGHbound-
5Lifecycle CommandsHIGHlife-
6Evidence-Based CompletionHIGHevidence-
7Crafting Strong GoalsMEDIUMcraft-
8Research Goals & Anti-PatternsMEDIUMresearch-

Individual rule impacts are listed inline in the per-rule frontmatter.

Quick Reference

1. Goal Fit Decisions (CRITICAL)
2. Outcome Definition (CRITICAL)
3. Verification Surface (CRITICAL)
4. Boundaries & Iteration (HIGH)
Show full SKILL.md (307 more words)Show less
5. Lifecycle Commands (HIGH)
6. Evidence-Based Completion (HIGH)
7. Crafting Strong Goals (MEDIUM)
  • craft-six-components — Define Six Components in Every Strong Goal — Outcome, Verification, Constraints, Boundaries, Iteration Policy, Blocked Stop
  • craft-template-pattern — Use the Canonical "verified by … while preserving … Use … Between iterations … If blocked …" Pattern
  • craft-let-codex-draft-it — Ask Codex to Draft the Goal from a Plain-Language Description, Then Tighten
  • craft-strengthen-weak-goals — Strengthen a Weak Goal by Naming the End State, Verification Surface, and Constraints
8. Research Goals & Anti-Patterns (MEDIUM)

How to Use

Read individual reference files for detailed explanations and worked examples comparing weak vs strong Goal text:

Each rule file contains:

  • A 2-4 sentence explanation of WHY the rule matters
  • An "Incorrect" example of a weak Goal or anti-pattern
  • A "Correct" example showing how to strengthen it
  • Reference back to the cookbook section it derives from

Reference Files

FileDescription
AGENTS.mdCompiled TOC built by build-agents-md.js
references/_sections.mdCategory definitions and impact ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information
gotchas.mdFailure points discovered through use

© pproenca, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 36 other files (references, assets) in skills/.experimental/codex-goals of pproenca/dot-skills.

  • SKILL.md
  • AGENTS.md
  • assets/templates/_template.md
  • gotchas.md
  • metadata.json
  • references/_sections.md
  • references/bound-blocked-stop-condition.md
  • references/bound-iteration-policy.md
  • references/bound-respect-budget.md
  • references/bound-tools-and-files.md
  • references/craft-let-codex-draft-it.md
  • references/craft-six-components.md
  • references/craft-strengthen-weak-goals.md
  • references/craft-template-pattern.md
  • references/evidence-audit-before-completion.md
  • references/evidence-budget-is-not-completion.md
  • references/evidence-honest-blockers.md
  • references/fit-prompt-vs-goal.md
  • … and 19 more

Open the folder on GitHubat commit cf93c57

Compare with similar skills

Codex Goals next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Codex Goals compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codex Goals this skillpproenca/dot-skills214—~2.1kAutomated safety check: PassMIT
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k24 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
Greplooponyx-dot-app/onyx32k4 repos~3.3kAutomated safety check: PassMIT

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 24 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed
  • Guidelines

    akash-network/node

    Behavioral guidelines to reduce common LLM coding mistakes. An agent skill from akash-network/node.

    1.1k GitHub starsUsed in 22 repos~577 tokens
    DevelopmentAuto-check passed

More from pproenca/dot-skills

All 182 skills in this repo
  • Audio Voice Recovery

    pproenca/dot-skills

    Audio forensics and voice recovery guidelines for CSI-level audio analysis.

    214 GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Codemod React Pipeline

    pproenca/dot-skills

    Guided, scripted pipeline for running JSX/TSX/React codemods safely across large legacy codebases.

    214 GitHub stars~1.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Dev Rfc

    pproenca/dot-skills

    Create well-structured RFCs and technical proposals for software projects.

    214 GitHub stars~3.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Dx Harness

    pproenca/dot-skills

    Developer-experience friction auditing and fixing — slow onboarding, repeated manual setup steps, missing bootstrap/reset/seed scripts, undiscoverable conventions.

    214 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Language Spec Author

    pproenca/dot-skills

    Turn a rough idea for a language into a complete, implementable specification — a DSL, query, config/data, template, or protocol language — by interviewing the author dimension by dimension until…

    214 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Python Pep Author

    pproenca/dot-skills

    Drafting Python Enhancement Proposals (PEPs) — proposing a Python language feature, a standard library change, an interoperability standard, or an informational/process document for the Python…

    214 GitHub stars~2.1k tokensUpdated 1 mo ago
    Auto-check passed

Categories

Questions about Codex Goals

What does Codex Goals do?

Patterns and anti-patterns for using OpenAI Codex Goals — the persistent objectives feature introduced in Codex 0.128.0. Codex Goals is an agent skill from pproenca/dot-skills.0.

When should I use Codex Goals?

Codex Goals fits situations like: debugging a /goal invocation; deciding whether a task should be a Goal at all; drafting a research Goal that needs an evidence ledger; diagnosing a Goal that completed against the wrong surface.

How do I install Codex Goals in Claude Code?

Run `npx skills add pproenca/dot-skills --skill codex-goals -a claude-code`. Or copy the skill folder (skills/.experimental/codex-goals in pproenca/dot-skills) into .claude/skills/codex-goals in your project. Claude Code loads it when a task matches its description.

How do I install Codex Goals in Codex?

Run `npx skills add pproenca/dot-skills --skill codex-goals -a codex`. Or copy the skill folder (skills/.experimental/codex-goals in pproenca/dot-skills) into .agents/skills/codex-goals in your project. Codex loads it when a task matches its description.

Can I use Codex Goals in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pproenca/dot-skills --skill codex-goals -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/codex-goals, .gemini/skills/codex-goals, .github/skills/codex-goals and .opencode/skills/codex-goals in your project.

What does Codex Goals need to run?

SKILL.md names no scripts, command-line tools or credentials: Codex Goals is instructions for the agent only.

Does Codex Goals access the network?

SKILL.md names 1 domain. As links in the text: developers.openai.com. This is read from the text; nothing was executed.

Is Codex Goals safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Codex Goals use?

Codex Goals is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Codex Goals use?

About 2.1k tokens (SKILL.md is roughly 8.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 19k tokens, read only when the agent opens those files.

What are the alternatives to Codex Goals?

Skills that share tags, products or a category with Codex Goals: Finishing a Development Branch (obra/superpowers, 296k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars) and Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codex Goals?

pproenca (a GitHub user) maintains it in pproenca/dot-skills, which has 214 GitHub stars. The repository holds 182 skills in this directory. The repository was last updated on August 15, 2026.

Source: pproenca/dot-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.