ask-matt
無料Ask which skill or flow fits your situation. A router over the skills in this repo.
日本語の概要は準備中です。原文の説明を表示しています。
Fetches PR review comments, triages them (fix, challenge, or skip), applies holistic fixes, resolves threads, and posts a summary. Use when the user asks to check review feedback, address PR comments, fix review issues, or handle review feedback.
日本語の概要は準備中です。原文の説明を表示しています。
実行スコア 未検証
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
When the user asks to check or fix review feedback on a PR (e.g. on JesusFilm/core):
From context (branch, issue number) or ask. Prefer looking up via gh pr view --json number,url from the current branch. Fall back to gh api by head branch or listing PRs.
Use GraphQL to get review threads with thread IDs (needed later to resolve them). REST does not expose isResolved or thread IDs.
gh api graphql -f query='
query($owner:String!,$repo:String!,$pr:Int!) {
repository(owner:$owner,name:$repo) {
pullRequest(number:$pr) {
reviewThreads(first:100) {
nodes {
id
isResolved
comments(first:20) {
nodes { id body author { login } path line createdAt }
}
}
}
}
}
}' -f owner=OWNER -f repo=REPO -F pr=NUMBER
Filter to isResolved === false. Collect every comment per thread together — thread context matters.
Pagination: The query above fetches the first 100 threads and 20 comments each. For large PRs that exceed these limits, paginate using
pageInfo { hasNextPage endCursor }and passafter: endCursorin follow-up queries. Nested pagination (threads × comments) requires custom looping —gh api graphql --paginateonly handles a single connection.
Before writing any code, read all unresolved threads and the surrounding source code, then classify each into one of:
| Category | When | Action |
|---|---|---|
| Fix | Comment is correct and pragmatic | Plan the code change |
| Challenge | Comment is wrong, illogical, overly pedantic, contradicts project conventions, or would make the code worse | Draft a respectful reply explaining why (with evidence) |
| Skip | Marked "nit", "optional", "minor", or already resolved by another fix | Note it; no action unless user asks |
How to challenge well:
api-journeys/src/.... Changing it here would diverge from the established convention without clear benefit."Present the triage to the user for confirmation before proceeding. Format:
## Triage
**Will fix:**
- Thread 1: [summary] → [planned change]
- Thread 3: [summary] → [planned change]
**Will challenge:**
- Thread 2: [summary] → [draft reply]
**Will skip:**
- Thread 4: [summary] — marked optional
Critical: do not fix comments one-by-one in isolation.
fix:, refactor:, chore:). Group related changes into a single commit rather than one commit per comment.npx nx run-many -t lint,type-check --projects=<affected>.git push origin HEAD (or git push --set-upstream origin HEAD if needed). Do not use --force; if unavoidable, use --force-with-lease.
For each thread that was fixed, resolve it:
gh api graphql -f query='
mutation($threadId:ID!) {
resolveReviewThread(input:{threadId:$threadId}) {
thread { id isResolved }
}
}' -f threadId=THREAD_ID
Do not resolve threads that were challenged or skipped.
For each "Challenge" thread, reply inline on the thread via gh api:
gh api repos/OWNER/REPO/pulls/PR/comments/COMMENT_ID/replies \
-f body="Your reply here"
Or if the thread is a top-level review comment, fall back to a PR-level comment:
gh pr comment PR_NUMBER --body "Your reply here"
Add a PR comment summarising everything. Resolve the commit SHA first — do not rely on shell variable expansion inside heredocs:
COMMIT_SHA=$(git rev-parse --short HEAD)
gh pr comment NUMBER --body "## Review feedback addressed ($COMMIT_SHA)
**Fixed:**
- \`src/api.ts:42\` — [brief change description]
**Challenged:**
- \`src/util.ts:30\` — [brief reasoning — see inline reply]
**Skipped (optional/nit):**
- [thread summary] — [reason]
"
Important: Do not use
<<'EOF'(single-quoted heredoc) — it prevents shell variable expansion and renders$COMMIT_SHAas a literal string. Usegh pr comment --body "..."with double-quoted strings or unquoted heredocs (<<EOF) so that$COMMIT_SHAis interpolated.
gh pr view --json number from the current branch; fall back to gh api by head branch.まだレビューはありません。使ってみた感想をお寄せください。
ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。
まだコメントはありません。最初のコメントを書いてみませんか。
Ask which skill or flow fits your situation. A router over the skills in this repo.
日本語の概要は準備中です。原文の説明を表示しています。
Build applications where agents are first-class citizens. Use this skill when designing autonomous agents, creating MCP tools, implementing self-modifying systems, or building apps where features are outcomes achieved by agents operating in a loop.
日本語の概要は準備中です。原文の説明を表示しています。
Run comprehensive agent-native architecture review with scored principles
日本語の概要は準備中です。原文の説明を表示しています。
Explore requirements and approaches through collaborative dialogue before writing a right-sized requirements document and planning implementation. Use for feature ideas, problem framing, when the user says 'let's brainstorm', or when they want to think through options before deciding what to build. Also use when a user describes a vague or ambitious feature request, asks 'what should we build', 'help me think through X', presents a problem with multiple valid solutions, or seems unsure about scope or direction — even if they don't explicitly ask to brainstorm.
日本語の概要は準備中です。原文の説明を表示しています。
Clean up local branches whose remote tracking branch is gone. Use when the user says "clean up branches", "delete gone branches", "prune local branches", "clean gone", or wants to remove stale local branches that no longer exist on the remote. Also handles removing associated worktrees for branches that have them.
日本語の概要は準備中です。原文の説明を表示しています。
Structured code review using tiered persona agents, confidence-gated findings, and a merge/dedup pipeline. Use when reviewing code changes before creating a PR.
日本語の概要は準備中です。原文の説明を表示しています。