
create-pr-review-from-comments
by dimfeld
SKILL.md
name: create-pr-review-from-comments description: Converts "AI" comments in local files into Github PR review comments
Find the current jj branch name using: jj log -r 'latest(heads(ancestors(@) & bookmarks()), 1)' --limit 1 --no-graph -T local_bookmarks | tr -d '*'
Then use gh pr list --head <branch-name> to get the number of the PR.
Use jj status to see what files have changes in them.
interface Comment {
file: string;
startLine?: number;
line: number
text: string;
}
interface Input {
pr: number;
status?: 'comment' | 'requestChanges' | 'approve';
body: string;
comments: Comment[];
}
Find all files that have "AI:" comments or AI_COMMENT_START and AI_COMMENT_END comment blocks in them. Extract the comments into an array of Comment structures.
These comments only exist locally, they won't be in the committed code being reviewed. So when calculating line numbers, account for the actual line numbers without the comments. It may help to run jj diff --color-words on the files to get the original line numbers.
After you've done that, display the comments and ask if the user wants to modify them or if they want to set a particular status value. If there's a review body they want to provide.
Generate a type of type input, save it as JSON to a temporary file, and pass it to scripts/create_review.ts.
GITHUB_TOKEN=$(gh auth token) bun ~/.claude/skills/pr-comments/scripts/create_review.ts <tempfile>
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon