Codex skill that turns a rough coding idea into a Codex /goal-ready contract.
Обзор
Codex skill that turns a rough coding idea into a Codex /goal-ready contract.
README
goal-forge
Codex skill that turns a rough coding idea into a Codex /goal-ready contract.
Pipeline: rough idea → interviewed SPEC.md → tightened SPEC.md → budgeted GOAL.md → config readiness check.
Goal Forge treats long-running /goal work as a runtime system with five explicit parts:
- Budget — optional ceilings on elapsed time, cost, iterations, or parallel work, with warning and exhaustion behavior.
- Scorecard — the metric, checklist, threshold, regression checks, and stop condition Codex should use to judge progress.
- Feedback loop — the fastest representative check Codex can run repeatedly while iterating, plus the slower final check used before completion.
- Working memory — markdown files such as
PLAN.md,ATTEMPTS.md, andNOTES.mdthat keep multi-hour runs coherent across context compaction. - Human control surface — an optional compact
CONTROL.mdwith task-specific knobs, sidecar inputs, resource limits, and pivot gates the user can inspect or tune while a goal runs.
A request such as 5 hour budget max compiles into an explicit contract:
max_elapsed_time: 5h
warning_at: 4h30m
check_interval: 15m
on_warning: checkpoint_and_prioritize
on_exhaustion: checkpoint_and_stop
extension_policy: explicit_user_approval
The budget is a ceiling, not a target. The run should finish as soon as done_when passes. Prompt-level budgets guide agent behavior; use an external supervisor when hard process termination is required.
Modes
- Interview — open-ended interview that forces decisions on scope, architecture, edge cases, verification, and resource budgets. Hard gate: spec is not “done” until
done_whenhas user-approved measurable criteria. - Tighten — read
SPEC.mdskeptically; surface ambiguities with two interpretations + a recommendation. - Compile — emit
GOAL.mdusing the XML block structure inreferences/goal_prompt_blocks.md. Weak specs route back to Interview/Tighten, especially when scorecard, feedback loop, budget semantics, or long-run working memory are missing. - Check config — run
scripts/inspect_codex_config.pyfor a read-only report on Codex version, project trust, and the full autonomous/goalconfig.
Install
Drop the folder into your Codex skills directory:
git clone https://github.com/michaelpersonal/goal-forge.git ~/.codex/skills/goal-forge
Then invoke from Codex with $goal-forge or any of the natural-language triggers in SKILL.md’s frontmatter.
Autonomous /goal config
For multi-hour autonomous /goal sessions, the skill checks ~/.codex/config.toml against this target configuration:
model = "gpt-5.5"
model_context_window = 1050000
model_auto_compact_token_limit = 997500
model_reasoning_effort = "high"
plan_mode_reasoning_effort = "xhigh"
approval_policy = "never"
sandbox_mode = "danger-full-access"
[features]
goals = true
model_reasoning_effort = "high" is for execution work. plan_mode_reasoning_effort = "xhigh" is for the planning pass. model_auto_compact_token_limit = 997500 lets long sessions compact context before they hit the hard context limit.
Use approval_policy = "never" and sandbox_mode = "danger-full-access" only in project paths you have explicitly marked trusted. They give the agent unsupervised filesystem access.
Run the inspector from a target project root:
python3 ~/.codex/skills/goal-forge/scripts/inspect_codex_config.py --project-path "$PWD"
The report prints autonomous_goal_status: ready only when the config, feature flag, Codex version, and project trust are aligned.
Layout
goal-forge/
├── SKILL.md
├── agents/openai.yaml UI metadata + implicit invocation
├── references/
│ ├── goal_prompt_blocks.md GOAL.md XML structure, including budget, scorecard, feedback loop, and working memory
│ ├── budget_contract.md Budget normalization, warning, exhaustion, and extension rules
│ ├── config_checklist.md Long-running /goal config notes
│ ├── control_surface_templates.md Optional CONTROL.md knobs and sidecar collaboration patterns
│ ├── standard_execution_rules.md Compile-time execution rules
│ └── working_memory_templates.md PLAN.md, ATTEMPTS.md, and NOTES.md scaffolds
└── scripts/
└── inspect_codex_config.py Read-only config readiness report
Credits
Inspired by @ynkzlk’s blog post Codex /goal: A Six-Hour Run, which makes the case that long-running /goal runs succeed or fail on upfront specification discipline: explicit measurable done_when criteria, XML-structured prompts, and context architecture that keep the agent from taking shortcuts. This skill operationalizes that discipline as a repeatable pipeline.
License
MIT. See LICENSE.
Рекомендуемые инструменты
Попробуйте другой запрос или уберите фильтр.
Установка
npx skillfish add michaelpersonal/goal-forge