Back to list
dimfeld

create-pr-review-from-comments

by dimfeld

6🍴 0📅 Jan 21, 2026

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

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon