Skip to content

Prevent create-pr from adding hard line breaks#74

Open
haacked wants to merge 1 commit intomainfrom
haacked/create-pr-no-wrap
Open

Prevent create-pr from adding hard line breaks#74
haacked wants to merge 1 commit intomainfrom
haacked/create-pr-no-wrap

Conversation

@haacked
Copy link
Copy Markdown
Owner

@haacked haacked commented Apr 17, 2026

Summary

  • Replace the fenced text code-block preview in the create-pr skill with a plain-prose format. Code blocks don't soft-wrap in terminal rendering, which was encouraging hard line breaks to fit display width — those breaks leaked into the actual PR body sent to GitHub.
  • Add explicit rules requiring natural line structure: paragraphs and bullet items on single lines, no mid-sentence or mid-bullet wrapping.

Test plan

  • Invoke /create-pr on a branch and confirm the preview displays without a surrounding code fence
  • Verify the generated gh pr create --body output contains no inserted hard line breaks within paragraphs or bullets

Replace the fenced code block preview format with plain prose. Code
blocks don't soft-wrap in terminal rendering, which encourages the model
to insert hard line breaks to fit display width—those breaks then leak
into the actual PR body sent to GitHub.

Add explicit rules: body content must preserve natural line structure
(paragraphs and list items on single lines, no mid-sentence wrapping).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant