All skills
paulrberg avatar

/yeet

@11c939a
by Paul Bergpaulrberg/agent-skills94 stars
7

Use for GitHub PR/issue/discussion workflows: create/update PRs, issues, or discussions and post issue or discussion comments; triggers include yeet.

Use this Skill: https://skilld.dev/gh/paulrberg/agent-skills/yeet

This session only. Nothing lands on disk.

referencescomment-discussion.md

≈691 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Discussion Comment Workflow

Add a top-level comment, reply to a discussion comment, or edit an existing comment with gh discussion comment. Load posting.md before the write.

Validate and Parse the Target

Requires authenticated GitHub CLI >= 2.97.0. Use the first discussion read as auth validation and resolve <skill-dir> to the absolute directory containing the owning SKILL.md.

Accept these forms:

  • owner/repo#123 <comment>
  • owner/repo 123 <comment>
  • #123 <comment> or 123 <comment> (infer the repository from origin)
  • https://github.com/owner/repo/discussions/123 <comment>
  • A discussion comment URL or node ID for a reply or edit

Everything after the target is the comment context. Reject a missing target or empty body with a precise error. A discussion number or URL targets a top-level comment. A comment URL or node ID targets a reply by default. Use --edit only with an existing comment URL or node ID; deletion is not part of this workflow.

Read Context

For a discussion target, fetch the discussion and recent comments before writing:

gh discussion view <number-or-url> --repo "<owner>/<repo>" --json number,url,title,body,comments

For a comment target, fetch its thread and the parent discussion:

gh discussion view <comment-url-or-id> --repo "<owner>/<repo>" --json number,url,comments

Match the thread's register, avoid duplicate or unnecessary pings, and follow writing.md > Informal Tone.

Review and Post

Run posting.md > External-disclosure Review on the exact comment body before posting. Use --body-file for multiline content (or a quoted heredoc when supplying --body):

# Top-level comment
gh discussion comment <discussion-number-or-url> --repo "<owner>/<repo>" --body-file "<comment-file>"

# Reply to a comment
gh discussion comment <comment-url-or-id> --repo "<owner>/<repo>" --body-file "<reply-file>"

# Edit a comment or reply
gh discussion comment <comment-url-or-id> --repo "<owner>/<repo>" --edit --body-file "<new-body-file>"

Use posting.md > Error Handling and Idempotency after any nonzero, timeout, or connection-loss result. Reread the discussion or comment thread and treat a matching authored body as a possible partial success; do not post a duplicate. Verify the resulting comment URL or body with gh discussion view, then display the ### ✅ Comment posted or ### ✅ Comment updated receipt from SKILL.md.

Examples

owner/repo#123 "This also reproduces on macOS."
https://github.com/owner/repo/discussions/123#discussioncomment-456 "Here's the missing reproduction step."
https://github.com/owner/repo/discussions/123#discussioncomment-456 --edit "Updated with the verified command."

Source: SKILL.md on GitHub

2 warnings5d5 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    The 'yeet' skill provides robust workflows for managing GitHub Pull Requests, issues, and discussions using the GitHub CLI. It implements strong security practices, including a mandatory 'External-disclosure Review' to prevent accidental credential exfiltration and safe YAML parsing for GitHub issue forms. While it processes external data from GitHub, its primary purpose and built-in review gates mitigate risks of indirect prompt injection.

  • Socket5d

    No alerts

  • Snyk5d

    Risk: MEDIUM · 1 issue

  • Runlayer7mo

    10/10 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 11c939a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 6 days ago
compatibility
Authenticated GitHub CLI >= 2.97.0
coordination
exempt
effort
high
Other metadata
argument-hint
<create-pr|update-pr|create-issue|update-issue|issue-claude-code|issue-codex-cli|issue-sablier|comment-issue|create-discussion|update-discussion|comment-discussion> [options]
skill-dependencies
[
  "cli-gh"
]

README badge

README badge for paulrberg/agent-skills/yeet