用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/alexanderop/dotfiles --skill review-coderabbit命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Facilitate interactive brainstorming sessions for feature ideas using structured questioning rounds. Use when asked to "brainstorm", "explore an idea", "flesh out a feature", "help me think through", or when the user presents a raw feature concept that needs refinement. Guides users through metrics, visualization, goals, implementation details, and scope to produce a complete feature spec.
Review current changes with parallel subagents
Check GitHub pipeline status and plan fixes if failing
基于 SOC 职业分类
正在显示 SKILL.md
| name | review-coderabbit |
| description | Review CodeRabbit comments on current PR and implement valid fixes |
| allowed-tools | Bash(gh pr view:*), Bash(gh api:*), Bash(git rev-parse:*), Bash(git status), Bash(pnpm type-check), Bash(pnpm lint), Task, Read, Edit, Glob, Grep, TodoWrite |
I have gathered information about the current PR. Here are the results:
<current_branch>
!git rev-parse --abbrev-ref HEAD
</current_branch>
<pr_info>
!gh pr view --json number,title,url 2>/dev/null || echo "No PR found for current branch"
</pr_info>
<coderabbit_review>
!gh pr view --json reviews --jq '.reviews[] | select(.author.login == "coderabbitai") | .body' 2>/dev/null | head -500
</coderabbit_review>
<coderabbit_comments>
!gh api repos/{owner}/{repo}/pulls/$(gh pr view --json number -q .number)/comments --jq '.[] | select(.user.login == "coderabbitai") | {id: .id, path: .path, line: .line, body: (.body | split("\n")[0:3] | join("\n"))}' 2>/dev/null
</coderabbit_comments>
For each substantive comment, spawn a subagent to analyze it in isolation:
Use Task tool with subagent_type="general-purpose" for each comment:
- Read the actual file and relevant context
- Check if the suggestion aligns with project conventions (CLAUDE.md)
- Determine verdict: VALID, INVALID, or PARTIALLY VALID
- If partially valid, note what's correct and what's not
Launch multiple agents in parallel for efficiency.
Create a summary table:
| Comment | File | Verdict | Recommendation |
|---|---|---|---|
| ... | ... | ... | ... |
Categorize into:
Before implementing, ask the user:
"I found X valid fixes to implement. Would you like me to proceed?"
pnpm type-check && pnpm lint
After implementing fixes, reply to each CodeRabbit comment to resolve the conversation:
For FIXED comments - Reply indicating the fix was applied:
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments/{comment_id}/replies \
-f body="Fixed: [brief description of what was done]"
For INVALID comments - Reply explaining why it was already correct or not applicable:
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments/{comment_id}/replies \
-f body="Already implemented: [explanation] / Not applicable: [reason]"
For SKIPPED comments - Reply explaining why it was intentionally skipped:
gh api repos/{owner}/{repo}/pulls/{pr_number}/comments/{comment_id}/replies \
-f body="Skipped: [reason - e.g., inconsistent with codebase patterns, over-defensive, etc.]"
Use the comment IDs from the <coderabbit_comments> section above.
Key rules from CLAUDE.md to check against:
any, enum, or type assertions (as T)tryCatch() from @/lib/tryCatch (not native try/catch)RouteNames from @/router (not string literals)src/components/ui/ must NOT be modified