Individual skill
codex-goals
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.
skills/.experimental/codex-goals/SKILL.md
Source commit cf93c57cac89d6fc3e4194686000411567f5caf3
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- Yes
- Observed behavior
- Not checked yet
- Last checked
- Nov 5, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 222
- Repository last updated
- Aug 15, 2026
- License
- MIT
Observed agent integration: codex
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
AGENTS.mddoc · 9,269 bytesSKILL.mdcore · 8,698 bytesassets/templates/_template.mddoc · 861 bytesgotchas.mddoc · 212 bytesmetadata.jsonasset · 913 bytesreferences/_sections.mddoc · 2,978 bytesreferences/bound-blocked-stop-condition.mddoc · 2,404 bytesreferences/bound-iteration-policy.mddoc · 2,382 bytesreferences/bound-respect-budget.mddoc · 2,399 bytesreferences/bound-tools-and-files.mddoc · 2,072 bytesreferences/craft-let-codex-draft-it.mddoc · 2,771 bytesreferences/craft-six-components.mddoc · 2,900 bytesreferences/craft-strengthen-weak-goals.mddoc · 2,323 bytesreferences/craft-template-pattern.mddoc · 2,549 bytesreferences/evidence-audit-before-completion.mddoc · 2,329 bytesreferences/evidence-budget-is-not-completion.mddoc · 2,438 bytesreferences/evidence-honest-blockers.mddoc · 2,711 bytesreferences/fit-prompt-vs-goal.mddoc · 2,196 bytesreferences/fit-skip-for-vague-targets.mddoc · 2,037 bytesreferences/fit-three-required-properties.mddoc · 2,383 bytesreferences/fit-when-to-use.mddoc · 2,144 bytesreferences/life-clear-stale-goals.mddoc · 2,225 bytesreferences/life-inspect-with-slash-goal.mddoc · 1,980 bytesreferences/life-pause-during-detours.mddoc · 2,146 bytesreferences/life-set-with-slash-goal.mddoc · 2,433 bytesreferences/outcome-measurable-end-state.mddoc · 1,721 bytesreferences/outcome-name-the-artifact.mddoc · 1,964 bytesreferences/outcome-narrow-but-discoverable.mddoc · 2,029 bytesreferences/outcome-quantify-thresholds.mddoc · 1,791 bytesreferences/research-anti-patterns.mddoc · 3,258 bytesreferences/research-build-claim-inventory.mddoc · 2,776 bytesreferences/research-define-evidence-standard-first.mddoc · 2,836 bytesreferences/research-preserve-epistemic-ledger.mddoc · 2,985 bytesreferences/verify-include-constraints.mddoc · 1,988 bytesreferences/verify-multiple-checks-when-needed.mddoc · 2,307 bytesreferences/verify-name-the-surface.mddoc · 1,979 bytesreferences/verify-surface-must-be-runnable.mddoc · 2,290 bytes
Read excerpt
# 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"](https://developers.openai.com/cookbook/examples/codex/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