@@ -8,6 +8,34 @@ When working in this repository:
88- Do not revert unrelated user changes.
99- Prefer opening a pull request instead of pushing directly to ` main ` , unless the user explicitly asks to push to ` main ` .
1010
11+ ## Issue-First Pull Request Workflow
12+
13+ Use an issue before opening a pull request for:
14+
15+ - bug reports and bug fixes;
16+ - reliability or security fixes;
17+ - MVP features or launch-checklist work;
18+ - user-facing UX or terminal-output changes.
19+
20+ Workflow:
21+
22+ 1 . Read the PRD and relevant documentation.
23+ 2 . Create a ` codex/ ` branch and prepare the implementation locally.
24+ 3 . Add or update tests, documentation, and personal development notes.
25+ 4 . Run the relevant verification gates.
26+ 5 . Before committing, pushing, or opening the PR, stop and ask the user to
27+ create a GitHub issue. Provide a ready-to-use issue title and body.
28+ 6 . Wait for the user to provide the issue number.
29+ 7 . Commit and push the verified work, then open a PR that includes
30+ ` Closes #<issue-number> ` in the PR body.
31+ 8 . Give the user the PR link so they can review and merge it. The merge should
32+ close the linked issue automatically.
33+
34+ Do not create the GitHub issue on the user's behalf unless they explicitly ask.
35+ Small documentation-only, repository-process, typo, dependency-maintenance, or
36+ CI housekeeping changes may proceed without an issue unless the user requests
37+ one.
38+
1139## Commits
1240
1341* Keep the user's Git identity as the primary author whenever possible.
0 commit comments