diff --git a/.github/upstream-state/tstack/leaving-pr-comments b/.github/upstream-state/tstack/leaving-pr-comments new file mode 100644 index 0000000..81cf512 --- /dev/null +++ b/.github/upstream-state/tstack/leaving-pr-comments @@ -0,0 +1 @@ +1085050f3baed1ac724caa4a8166145fb2ac88af diff --git a/skills/leaving-pr-comments/SKILL.md b/skills/leaving-pr-comments/SKILL.md new file mode 100644 index 0000000..be31067 --- /dev/null +++ b/skills/leaving-pr-comments/SKILL.md @@ -0,0 +1,44 @@ +--- +name: leaving-pr-comments +description: Use whenever leaving comments on GitHub. +--- + +# Leaving PR Comments + +Prefix every agent-authored comment left on the user's behalf with this GitHub +note callout: + +```md +> [!NOTE] +> 🤖 ** responding on behalf of ** + +Actual comment starts here. +``` + +Use the verified public name of the model that wrote the comment, and the +user's name or GitHub login. + +If the harness does not expose a model name, use the harness name. Do not guess. + +Before posting, check the entire comment, including quoted text and +attachments, for secrets and private details. + +Keep the attribution inside the note and the actual reply outside it. The +context line must start with the robot emoji. Do not add a horizontal rule, +Setext underline, heading, signature footer, or a second attribution. + +Apply this format to top-level PR comments, inline review comments, replies to +bots or reviewers, and written explanations used before resolving or +dismissing feedback. Do not add it to PR descriptions, commit messages, or text +the user explicitly asked to post verbatim without attribution. + +Write the comment itself in a direct style: + +- Lead with the conclusion. +- Cite the relevant code, behavior, check, or reproduction. +- Keep it concise and avoid filler, canned thanks, or status narration. +- Distinguish verified facts from judgment. + +Preview the final Markdown before posting so quoting and blank lines render as +shown. After posting, verify that GitHub returned the comment or review URL. +Resolve a review thread only after its response was posted successfully. diff --git a/skills/leaving-pr-comments/agents/openai.yaml b/skills/leaving-pr-comments/agents/openai.yaml new file mode 100644 index 0000000..aea24ef --- /dev/null +++ b/skills/leaving-pr-comments/agents/openai.yaml @@ -0,0 +1,4 @@ +interface: + display_name: "Leaving PR Comments" + short_description: "Format agent-authored GitHub PR comments" + default_prompt: "Use $leaving-pr-comments when posting this comment on my behalf."