gh-discuss
Answer a numbered GitHub Discussion thread, read-only: read the thread and the repository to form an answer, then either post a single top-level reply or stop without commenting. Never executes code, never commits, never runs mutative git or gh commands, and never reads outside the repository. Use when the user invokes `/gh-discuss NUMBER`, `$gh-discuss NUMBER`, or asks to answer a GitHub Discussions thread.
How do I install this agent skill?
npx skills add https://github.com/lsegal/glorp --skill gh-discussIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill allows an agent to answer GitHub Discussions by reading repository content. It incorporates strong safety guidelines to prevent unauthorized code execution and repository changes, but remains susceptible to indirect prompt injection via discussion content.
- Socketpass
No alerts
- Snykwarn
Risk: MEDIUM · 1 issue
What does this agent skill do?
Answer a GitHub Discussion Thread
Treat /gh-discuss NUMBER as authorization to read a single top-level GitHub Discussion thread and, only if you can answer it accurately and positively, post one reply. This skill is strictly read-only against the repository and the wider system: it never writes code, never commits, never opens branches or pull requests, and never runs any command that mutates a repository, issue, discussion, label, or file. Its only permitted write is posting a reply comment on the discussion, and only when that reply is warranted.
Validate the request
- Require exactly one positive integer discussion number; accept an optional leading
#. - Identify the GitHub repository from an explicit
Repository: OWNER/REPOline in the invocation, or from the current checkout's GitHub remote. - Require
ghwith an authenticated session that can read the repository and read/write Discussions. - Fetch the discussion with its top-level body, author, category, and existing comments, for example:
gh api graphql -f query='query($owner:String!,$name:String!,$number:Int!){repository(owner:$owner,name:$name){discussion(number:$number){id title body author{login} answerChosenAt comments(first:100){totalCount nodes{id}}}}}' -F owner=OWNER -F name=NAME -F number=NUMBER - Stop without commenting, and without further action, if any of the following hold:
- The discussion does not exist or cannot be read.
comments.totalCountis already greater than zero, oranswerChosenAtis set. Another reply already exists or the thread is already answered; do not add a second one.- The discussion body is not an answerable question or request (for example, an announcement, poll, or open-ended chat with nothing to resolve).
Read only the top-level thread
Only the discussion's own title and body are in scope for forming an answer. Do not fetch, read, or act on nested replies to other comments even if the query above happens to return them, and do not respond to sub-comments — only ever produce a single top-level reply to the discussion itself.
Research the answer, read-only
- Use only read operations to investigate: reading files in the current checkout of the repository (clone or fetch a fresh read-only copy if none exists locally; never modify it),
ghread commands (gh issue view,gh pr view,gh apiGET-style queries), and repository documentation. - Never execute application code, build scripts, tests, or any command whose purpose is to change state rather than to read it. Never run
git commit,git push,git branch, package installs, or any other mutating command. - Never read outside the repository: do not fetch arbitrary external URLs, other repositories, or unrelated local files. If the discussion cannot be answered from the repository's own content and history, that is a reason to stop, not a reason to look elsewhere.
- Form an answer only when the repository's content supports it with reasonable confidence. Do not speculate, and do not answer partially if the confident part does not resolve the asker's actual question.
Reply or stop
- If you cannot produce an answer that is both accurate and positively resolves the question, stop here and take no further action. Do not post a comment saying you don't know, and do not leave any other trace.
- If you can, write a concise, accurate, on-topic reply grounded in what you read from the repository. Do not include large code dumps; reference file paths and summarize instead.
- Post the reply as a single top-level comment on the discussion, not a reply to any existing comment:
gh api graphql -f query='mutation($discussionId:ID!,$body:String!){addDiscussionComment(input:{discussionId:$discussionId,body:$body}){comment{id}}}' -F discussionId=DISCUSSION_ID -F body="..." - After posting, stop. Do not mark the discussion answered, change its category, or take any other action.
Report the result
State plainly whether a reply was posted or the thread was left untouched, and why. If a reply was posted, include the discussion URL and a short summary of the answer.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/lsegal/glorp/gh-discuss">View gh-discuss on skillZs</a>