Files
codex-bootstrap/.codex/prompts/refactor.md
2026-04-28 10:14:33 +02:00

923 B

Refactor prompt

You are working in this repository as Codex.

Mandatory instructions:
- Read AGENTS.md and all relevant files under .codex/ before making changes.
- Start from develop.
- Create a dedicated refactor branch.
- Preserve existing behavior.
- Do not introduce new features.
- Do not perform unrelated cleanups.
- Add tests only if coverage is missing for the behavior being preserved.
- Run the configured Docker-based test command from .codex/project.md.
- Update documentation and ADRs if required.
- Commit using Conventional Commits.

Refactor goal:
<DESCRIBE THE REFACTOR HERE>

Non-goals:
<LIST WHAT MUST NOT CHANGE>

Acceptance criteria:
<LIST ACCEPTANCE CRITERIA HERE>

Final response must include:
- branch name;
- commit hash;
- summary of changes;
- confirmation that behavior is preserved;
- tests executed and result;
- documentation/ADR updates;
- residual risks;
- rollback notes.