用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/johnkerl/dotfiles --skill jkaddrcom命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | jkaddrcom |
| description | Action GitHub PR review comments. Provide a PR URL to fix all open comments, or a specific comment URL to fix one. |
If given a specific comment URL (e.g. https://github.com/org/repo/pull/123#discussion_r456789):
gh api /repos/{owner}/{repo}/pulls/comments/{comment_id}git commit -m "Address review comment: <brief what you did>"gh api --method POST /repos/{owner}/{repo}/pulls/{pr}/comments/{comment_id}/replies \
-f body="Done in $(git rev-parse HEAD)"
# Get the thread node_id for this comment's thread
THREAD_ID=$(gh api graphql -f query='{
repository(owner: "{owner}", name: "{repo}") {
pullRequest(number: {pr}) {
reviewThreads(first: 100) {
nodes { id isResolved comments(first: 1) { nodes { databaseId } } }
}
}
}
}' --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.comments.nodes[0].databaseId == {comment_id}) | .id')
gh api graphql -f query="mutation { resolveReviewThread(input: { threadId: \"$THREAD_ID\" }) { thread { isResolved } } }"
If given a PR URL (or no arg — detect the current branch's open PR with gh pr view):
isResolved directly, unlike the REST comments list):
gh api graphql -f query='{
repository(owner: "{owner}", name: "{repo}") {
pullRequest(number: {pr}) {
reviewThreads(first: 100) {
nodes {
id isResolved
comments(first: 10) {
nodes { databaseId body path originalLine author { login } }
}
}
}
}
}
}' --jq '[.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)]'
gh api /repos/{owner}/{repo}/pulls/comments/{comment_id} and process it using the single-comment flow above, one commit per commentOn ambiguous comments: if you're not sure what a comment is asking, say so and ask before making a change — don't guess on a commit.
On comments that require discussion rather than a fix: reply explaining why you're not changing it, don't commit.
Format up an LLM answer into consistent personal markdown style — sentence-case headings and bullet lead-ins, plain dash bullets, no emoji, straight em-dash handling, italics not bold, optional 100-col wrap. Pass a file path to clean in place, or paste raw text to get the cleaned result back in chat.
A decorator on top of /loop with 5-minute timer and autocancel
Review the current branch's diff from a skeptic's perspective before pushing. Optional arg selects the reviewer persona.
基于 SOC 职业分类