Skip to main content

respond-on-thread

Read an issue or PR thread before answering. Use before responding to any comment, issue update, or review.

설치로 이동

소스 정보

저장소
max-sixty/tend
최근 소스 활동
2026년 9월 18일 19:51
감지된 SKILL.md 언어
영어
스타
39
포크
7

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
respond-on-thread
description
Read an issue or PR thread before answering. Use before responding to any comment, issue update, or review.
metadata
{"internal":true}
# Responding to a comment, an issue update, or a review - [Read the thread](#read-the-thread) - [A review's inline comments are a separate fetch](#a-reviews-inline-comments-are-a-separate-fetch) - [Triggering issue/PR already closed](#triggering-issuepr-already-closed) - [Whether to respond](#whether-to-respond) ## Read the thread Read the full context before responding. The prompt provides a URL — extract the PR/issue number from it. For PRs: ```bash gh pr view <number> --json title,body,comments,reviews,state,statusCheckRollup gh pr diff <number> gh pr checks <number> ``` For issues: ```bash gh issue view <number> --json title,body,comments,state ``` Read the triggering comment, the PR/issue description, the diff (for PRs), and recent comments to understand the full conversation before taking action. ## A review's inline comments are a separate fetch Neither `gh pr view --json reviews` nor `GET /pulls/<n>/reviews/<id>` returns a review's inline comments — both hand back the review body alone, with no field signalling that more exists, so a read that stops there looks complete. A one-line review body routinely sits on top of the maintainer's actual instructions. Whenever the trigger names a review ID, fetch them as part of reading context — not only when you already intend to reply inline: ```bash gh api "repos/{owner}/{repo}/pulls/{number}/reviews/{review_id}/comments" \ --jq '.[] | {id, path, line, body}' ``` An instruction found there constrains the whole response, including any code the reply quotes or carries into another PR. For a comment anchored to a specific line, read that file and examine the code at that line before acting on it. When the GitHub API returns a `diff_hunk`, the reviewer's comment targets the **last line** of that hunk. Use this to disambiguate when multiple candidates exist nearby — match the reviewer's request against the specific anchored line, not the surrounding region. ## Triggering issue/PR already closed If the trigger is a comment on an issue or PR and the target is **closed** by the time the job starts, the requested work was likely handled by a sibling run during the queue delay. Long `tend-mention` queues (hours, not minutes) make this common. Before starting work: ```bash # For an issue trigger — check linked PRs that closed it. gh issue view <number> --json state,closedAt,closedByPullRequestsReferences # For a PR trigger — check whether the PR was merged. gh pr view <number> --json state,mergedAt,mergeCommit ``` If a linked PR merged (or the triggering PR itself merged) **after the triggering comment was posted**, exit silently — the work is already on the default branch. If the closure looks unrelated (e.g. issue closed as not-planned with no merged PR), continue and address the comment normally. ## Whether to respond **Your own prior comment.** The system prompt's self-loop guard exits silently when the trigger is the bot's own comment or review. An issue the bot opened is not one — see **Step 2** in `/tend-ci-runner:triage`. **Recheck before posting** in `/tend-ci-runner:post-to-github` prevents a duplicate if a sibling run fires on the same thread. **Other participants.** Before responding, check how many distinct other participants are in the conversation. - **Two-party** (you and one other participant): respond normally. - **Multi-way** (multiple other participants): apply a stricter bar — only respond with concrete new information no one else provided: a code fix, reproduction, or specific technical detail. Do not: - Restate, agree with, or summarize what another participant just said - Post "makes sense" or "good point" agreement comments - Echo a user's findings back to them ("Good find!", "That's the smoking gun!") A comment that responds to concerns you raised in a review is directed at you — briefly acknowledge resolution or explain why concerns remain. If a maintainer has already addressed the point, exit silently unless you can add something they missed.
GitHub에서 보기