codex-goal-writer
Skill1 starsChanged 2 months agoMITView on GitHub
Use this skill when the user wants to write, improve, review, or convert a task into a Codex CLI `/goal` prompt for long-running work with clear scope, validation, checkpoints, and stopping conditions.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- RayShark/codex-goal-writertheir own version, first seen Jul 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- RayShark/codex-goal-writer★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- codebase-inventorySkill
- code-commentsSkill
- generate-specSkill
- git-commitSkill
- glab-mr-reviewSkill
- glab-mrSkill
- handoff-auditSkill
- jira-apiSkill
- linear-task-lifecycleSkill
- reject-and-redoSkill
- setup-serenaSkill
- setup-skill-syncSkill
- subagent-goSkill
- wtSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 8 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this skill when the user asks to:
- Very specific: line 16
write a /goal prompt
- Distinctive: line 19
create a reusable prompt template for goal-driven Codex work
- Distinctive: line 21
Prefer planning instead when the user only wants analysis, has not decided to implement, or does not have a verifiable stopping condition …
- Distinctive: line 31
Stop condition: the externally checkable state that means the goal is done.
- Distinctive: line 34
If critical details are missing, ask at most three concise questions.
- Distinctive: line 53
Prefer commands that pass, artifacts that exist, previews that load, eval scores, or migration parity.
- Distinctive: line 54
Avoid vague endings like "improve quality" or "make it better".
- Very specific: line 61
If the task is complex, recommend putting detailed requirements in PLAN.md and make /goal reference it.
- Very specific: line 111
Do not turn an open-ended backlog into one /goal.
- Distinctive: line 112
Keep the generated prompt direct and actionable.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex Goal Writer
Purpose
Turn rough task intent into a durable Codex CLI /goal prompt. The prompt should make the objective, boundaries, verification loop, pause conditions, and stopping condition explicit enough for long-running autonomous work.
When to Use
Use this skill when the user asks to:
- write a
/goalprompt - turn a feature, migration, refactor, experiment, deployment loop, eval loop, or prototype into a long-running Codex objective
- review whether a proposed
/goalprompt is good enough - create a reusable prompt template for goal-driven Codex work
Prefer planning instead when the user only wants analysis, has not decided to implement, or does not have a verifiable stopping condition yet.
Inputs
Gather these from the user request or surrounding context:
- Objective: the single durable outcome to complete.
- Context: files, docs, issues, plans, logs, or repo instructions Codex must read first.
- Scope: allowed files, folders, modules, systems, and forbidden areas.
- Validation: commands, artifacts, screenshots, checks, evals, or acceptance criteria.
- Stop condition: the externally checkable state that means the goal is done.
- Pause conditions: cases where Codex should stop and ask before proceeding.
If critical details are missing, ask at most three concise questions. Prioritize end state, validation evidence, and allowed or forbidden scope.
Workflow
- Decide whether
/goalis appropriate.- Good fit: long-running work, one durable objective, repeatable validation, clear stop condition.
- Poor fit: loose backlog, unclear requirements, pure brainstorming, or one-off question.
- Convert the task into a structured goal prompt with these sections:
- Objective
- Context
- Scope
- Non-goals
- Execution
- Validation
- Pause conditions
- Stop condition
- Make the stop condition verifiable.
- Prefer commands that pass, artifacts that exist, previews that load, eval scores, or migration parity.
- Avoid vague endings like "improve quality" or "make it better".
- Keep boundaries explicit.
- Name what Codex may change.
- Name what Codex must not change.
- Include compatibility, UI, API, data, or product behavior that must be preserved.
- If the task is complex, recommend putting detailed requirements in
PLAN.mdand make/goalreference it.
Output
Return a paste-ready prompt in this shape:
/goal [complete one objective], without stopping until [verifiable end state].
Objective:
- [One durable objective.]
Context:
- Read first: [AGENTS.md / CLAUDE.md / PLAN.md / issue / docs / key files].
- Background: [short project or task context].
Scope:
- Allowed changes: [files, folders, modules].
- Do not change: [forbidden areas].
- Preserve: [behavior, UI, API, data format, compatibility].
Non-goals:
- [Explicit things Codex should not expand into.]
Execution:
- Work in checkpoints and keep a short progress log.
- Before each checkpoint, state the immediate intent.
- After each checkpoint, run the relevant validation.
- Prefer minimal changes aligned with existing project patterns.
Validation:
- Run: [command or artifact check].
- Run: [command or artifact check].
- If validation fails, inspect the failure, make the smallest targeted fix, and rerun.
Pause conditions:
- Pause only if [specific blocking or risky conditions].
Stop condition:
- Stop when [specific commands pass / artifact works / score is reached].
- Final report must include changed files, validation evidence, and remaining risks.Constraints
- The objective must be singular.
- The stop condition must be externally checkable.
- Scope and non-goals must be explicit.
- Validation commands or artifacts must be named whenever possible.
- Pause conditions must be concrete.
- Do not turn an open-ended backlog into one
/goal. - Keep the generated prompt direct and actionable.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

