Repository navigation
skills(triage): drop exclamation marks from comment templates - #361
Merged
Merged
Conversation
The Bash tool rewrites every literal exclamation mark in a command string to backslash-bang before bash parses the command, so comment bodies posted via gh issue comment with heredoc or --body strings render with visible "\\!" corruption. The triage templates' "Thanks for reporting this\!" / "Thanks for the suggestion\!" greetings were the trigger; running-in-ci's general "use Write + --body-file when the body contains \!" warning fires too late when the template itself contains the character. Replace each greeting's exclamation mark with a period and add a short inline note pointing future authors at Write + --body-file when they genuinely need to include one.
tend-agent
commented
Apr 30, 2026
tend-agent
left a comment
Collaborator
Author
There was a problem hiding this comment.
CI lint is failing — the new explanatory note on line 168 contains `!` (bang immediately followed by backtick) twice, which the forbid bang-backtick in plugin skill files pre-commit hook rejects (refs #234, #243, #244). Inline suggestion below mirrors the prose form used in running-in-ci/SKILL.md:356 ("rewrites every exclamation mark to a literal backslash-bang") and keeps the example phrases inside double quotes, avoiding the poisoned sequence.
Will push the fix directly since this PR is bot-authored.
The note added in the prior commit contained `\!` (bang followed by backtick) twice, tripping the forbid bang-backtick pre-commit hook. Mirror the prose form used in running-in-ci/SKILL.md. Co-Authored-By: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Symptom
Triage bot posted a comment on issue #360 opening with
Thanks for the detailed write-up\!— a literal backslash-bang where the template intends an exclamation mark. The Bash tool rewrites every!in a command string to\!before bash parses it, so any comment body posted viagh issue comment --body "..."(or<<EOFheredoc) that contains an exclamation mark ships visibly corrupted.Why this slipped past the existing guidance
running-in-ci/SKILL.mdalready warns: "Use the Write tool for any comment body containing an exclamation mark, then pass the file togh ... --body-file." But the triage skill's own templates (lines 172, 178, 184, 192, 198, 204, 210, 218) literally contain exclamation-mark greetings — "Thanks for reporting this!", "Thanks for the suggestion!", "Thanks for reaching out!" — so a bot following the template via the heredoc pattern recommended in the same skill at line 166 hits the rewrite. The trigger is in the template itself; the general warning fires too late.Evidence
Two confirmed user-facing corruptions in posted issue comments since 2026-04-01, both matching the template opener pattern:
Thanks for the detailed write-up\!(this run, run 25179241285)Thanks for the detailed writeup and cross-posted repro\!Scan recipe used:
Three other matches in the #217 thread are intentional discussion of this same bug class (the issue was about the bash escape itself), not corruption.
Fix
Replace
!with.across all 8 templates inplugins/tend-ci-runner/skills/triage/SKILL.md, and add a short inline note explaining that the templates intentionally avoid exclamation marks. The note redirects future authors to the Write +--body-filepath if they ever need an exclamation mark (e.g. quoting a user verbatim).This is a structural fix at the trigger: removing the literal
!characters the bot copies prevents the failure regardless of which post-path the bot chooses (heredoc vs.--body-file). It does not depend on the bot remembering the general warning.Gate assessment
!); stochastic at the bot (whether the bot recalls running-in-ci's general warning when composing the body). Removing the trigger eliminates the failure mode.Evidence
Evidence gist for
max-sixty/tend2026-04