Skip to content

running-in-ci: show heredoc form in line-wrap example - #338

Merged
max-sixty merged 1 commit into
mainfrom
wrapping
Apr 27, 2026
Merged

max-sixty merged 1 commit into
mainfrom
wrapping

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The previous bad/good pair showed a bare paragraph; the actual failure mode is wrapping inside a gh pr create heredoc, so both examples now show that form. Also folded the "Write tool doesn't reflow" sentence and the scope disclaimer into adjacent prose to cut ~25% of the section.

Refs #321 — the prior anti-example didn't fully prevent the failure in practice (e.g. worktrunk#2434).

This was written by Claude Code on behalf of Maximilian.

The previous bad/good pair showed a bare paragraph; the actual failure mode is wrapping inside a `gh pr create` heredoc, so both examples now show that form. Also folded the "Write tool doesn't reflow" sentence and the scope disclaimer into adjacent prose to cut redundancy.

Co-Authored-By: Claude <[email protected]>
@max-sixty
max-sixty merged commit a806a14 into main Apr 27, 2026
5 checks passed
@max-sixty
max-sixty deleted the wrapping branch April 27, 2026 15:18
max-sixty added a commit that referenced this pull request Apr 27, 2026
The skill tells Claude to write GitHub-bound prose as single-line
paragraphs, but the file itself was wrapped at ~100 chars — the
surrounding context taught the opposite of the rule, which is one
explanation for why bot PR/issue bodies kept shipping with hard wraps
even after the explicit rule landed in #321 / #338.

Mechanical unwrap with a small script (`.tmp/unwrap_md.py`, gitignored):
consecutive prose lines joined into single lines, list items joined
per-bullet. Fenced code blocks, HTML wrapper tags (`<example>`, `<bad>`,
`<good>`), frontmatter, and the bad/good example contents inside the
line-wrap section are preserved exactly — the bad example is *meant* to
demonstrate wrapping. 693 → 528 lines, no semantic changes. `pre-commit`
clean.

Follow-up to #338. If wrapped bot bodies still appear over the next
handful of PRs, next escalation is a PostToolUse hook with `flowmark
--width 0` (see #338 discussion).

> _This was written by Claude Code on behalf of Maximilian._

Co-authored-by: Claude <[email protected]>
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.

2 participants