Create or reuse one canonical GitHub planning issue from local discussion and keep it as the source of truth. Use when the user says create a plan or create an issue for the discussed task.
Create one canonical planning issue and avoid duplicates.
Use when the user says:
ok create an issuecreate a plancreate issue for this taskcreate a plan for issue #<n>gh-csi workflow create-or-reuse-plan-issue \
--issue "<issue or url, optional>" \
--title "<title>" \
--objective "<objective>" \
--scope "<scope>" \
--constraints "<constraints>" \
--acceptance "<acceptance criteria>" \
--decisions "<latest decisions>" \
--open-questions "<open questions>" \
--json
--issue is provided and issue is not yet canonical, script preserves existing title/body by mapping them into canonical sections (objective/scope) instead of replacing with placeholders.reused: true, continue using that issue; do not create another.Report:
#number + URL)created|reused<!-- gh-csi:plan v1 -->)--issue), treat canonical issues with linked PR references as ineligible candidates.