choplin/my-agent-skills/code-review-session-import-pr
- community
Checking that the SKILL.md file is still in the repository.
Imports GitHub PR review comments as open items in a code-review session record, keeping the comment id, author, inline location, thread, and replied flag in a companion PR ledger.
Install
npx vskill@latest install choplin/my-agent-skills/code-review-session-import-prSKILL.md
Import PR Comments (ingestion)
Add review items from a GitHub Pull Request's review comments. The generic item goes into review.md; the PR-specific data goes into a separate sources/pr.json ledger, so PR bookkeeping never mixes into review state.
Trigger phrases: "import PR comments", "PRコメントを取り込んで", "PRレビューをインポート"
Input
review_dir— where the record lives (default: standalone; seecode-review-session-base
skill (references/procedures/review-init-guide.md)).
- An open PR on the current branch.
Process
1. Resolve the record and PR
- Resolve
review_dir; ensurereview.mdexists (create viacode-review-session-base
skill (references/procedures/review-init-guide.md) if not).
- Find the open PR:
gh pr view --json number,url,statefor the current branch.
If none or not OPEN/DRAFT: stop and report "No open PR found for the current branch."
- Derive owner/repo:
gh repo view --json nameWithOwner --jq '.nameWithOwner'.
2. Fetch comments
- Review bodies:
gh pr view --json reviews --jq '.reviews[] | {id, author: .author.login, body, state}'— drop empty bodies and DISMISSED reviews. - Inline comments:
gh api repos/{owner}/{repo}/pulls/{number}/comments --jq '.[] | {id, author: .user.login, body, path, line: (.original_line // .line), diff_hunk}'.
3. Exclude already-imported
Read {review_dir}/sources/pr.json (create { "comments": {} } if absent). Skip any comment whose id is already recorded there with imported: true. If none remain: report "No new PR comments to import." and stop.
4. Preview and confirm
Wait for confirmation.
5. Write items + ledger
For each new comment:
- Item in `review.md` (see
code-review-session-baseskill (references/contracts/review-state.md)):
- Source:
pr:comment/{commentId} - Status:
open - Detail: the comment body (and, for inline,
{path} L{line}) - Summary: a one-line gist
- Record in `sources/pr.json`, keyed by comment id:
``json { "comments": { "{commentId}": { "author": "{login}", "type": "inline|review-body", "path": "{path}", "line": {line}, "url": "{url}", "imported": true, "replied": false } } } ``
Update the Resolved: X / Y denominator to the new total.
6. Report
Notes
- Classification/approach is decided in
code-review-session-resolve, not here — this skill
only records the raw comment as an open item. (An inline comment with a clear ask resolves quickly there; a vague review-body gets discussed.)
sources/pr.jsonis the single home for PR-specific state (author, location,
replied). review.md stays generic.
Success Criteria
- [ ] Only new comments imported (deduped via
sources/pr.json) - [ ] Preview shown and confirmed before writing
- [ ] Each comment → an
openitem (Source: pr:comment/{id}) + asources/pr.jsonrecord - [ ] PR-specific data kept out of
review.md
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/code-review-session/code-review-session-import-pr/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/choplin/my-agent-skills/code-review-session-import-pr)