home/productivity/fix-bug-goal

Fix Bug.goal

GPTClaudeDeepSeek··1,068 copies·updated 2026-07-14
fix-bug-goal.prompt
# Codex Prompt: Fix Bug

## Target Tool

OpenAI Codex CLI or Codex-style coding-agent goal mode.

## Purpose

Use this prompt when there is a specific reproducible bug and the safest fix is a small code, test, documentation, or prompt-template change.

## Inputs To Fill

| Input | Description | Example |
| --- | --- | --- |
| `{bug}` | The observed problem. | `safe_autofix.py --check misses missing final newlines` |
| `{reproduction}` | Exact steps that demonstrate the bug. | `Run command X; observe output Y` |
| `{expected}` | The correct behavior. | `Command reports the file and exits nonzero` |
| `{actual}` | The current behavior. | `Command exits 0` |
| `{suspected_files}` | Files/tests to inspect first. | `scripts/safe_autofix.py`, `tests/test_safe_autofix.py` |
| `{checks}` | Required validation. | `focused unittest plus repo checks` |

## Full Prompt

fill the variables

This prompt has 6 variables. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.

{bug}{reproduction}{expected}{actual}{suspected_files}{checks}
Unlock with Pro →

when to use it

Community prompt sourced from the open-source GitHub repo Yaked1/ai-lab-codex-workbench (MIT). A "Fix Bug.goal" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

productivitycommunitydeveloper

source

Yaked1/ai-lab-codex-workbench · MIT